diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 000000000..5ace4600a --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,6 @@ +version: 2 +updates: + - package-ecosystem: "github-actions" + directory: "/" + schedule: + interval: "weekly" diff --git a/.github/scripts/check-actions-updates.sh b/.github/scripts/check-actions-updates.sh deleted file mode 100755 index 94e26a6e6..000000000 --- a/.github/scripts/check-actions-updates.sh +++ /dev/null @@ -1,35 +0,0 @@ -#!/usr/bin/env bash - -set -o errexit -set -o nounset -set -o pipefail - -declare -i update_count=0 - -tmp="$(mktemp)" -readonly tmp - -function cleanup { - rm -f "$tmp" -} - -trap cleanup EXIT - -set +o errexit -npx actions-up --dry-run > "$tmp" 2>&1 -set -o errexit - -if grep -Fq 'would be updated' "$tmp" -then - update_count="$(awk '/would be updated/ { print $1 }' "$tmp")" - declare -ri update_count -fi - -if (( update_count > 0 )) -then - echo "has-updates=true" >> "$GITHUB_OUTPUT" - echo "update-count=$update_count" >> "$GITHUB_OUTPUT" -else - echo "has-updates=false" >> "$GITHUB_OUTPUT" - echo "update-count=0" >> "$GITHUB_OUTPUT" -fi diff --git a/.github/workflows/build-test.yaml b/.github/workflows/build-test.yaml index 9ab26bf8d..44539d118 100644 --- a/.github/workflows/build-test.yaml +++ b/.github/workflows/build-test.yaml @@ -18,11 +18,11 @@ jobs: with: submodules: true - name: Setup .NET SDK - uses: actions/setup-dotnet@2016bd2012dba4e32de620c46fe006a3ac9f0602 # v5.0.1 + uses: actions/setup-dotnet@baa11fbfe1d6520db94683bd5c7a3818018e4309 # v5.1.0 with: global-json-file: global.json - name: Cache NuGet packages - uses: actions/cache@9255dc7a253b0ccc959486e2bca901246202afeb # v5.0.1 + uses: actions/cache@8b402f58fbc84540c8b491a91e594a4576fec3d7 # v5.0.2 with: path: | ~/.nuget/packages @@ -59,11 +59,11 @@ jobs: with: submodules: true - name: Setup .NET SDK - uses: actions/setup-dotnet@2016bd2012dba4e32de620c46fe006a3ac9f0602 # v5.0.1 + uses: actions/setup-dotnet@baa11fbfe1d6520db94683bd5c7a3818018e4309 # v5.1.0 with: global-json-file: global.json - name: Cache installers - uses: actions/cache@9255dc7a253b0ccc959486e2bca901246202afeb # v5.0.1 + uses: actions/cache@8b402f58fbc84540c8b491a91e594a4576fec3d7 # v5.0.2 with: # Note: the cache path is relative to the workspace directory # https://docs.github.com/en/actions/using-workflows/caching-dependencies-to-speed-up-workflows#using-the-cache-action @@ -109,11 +109,11 @@ jobs: with: submodules: true - name: Setup .NET SDK - uses: actions/setup-dotnet@2016bd2012dba4e32de620c46fe006a3ac9f0602 # v5.0.1 + uses: actions/setup-dotnet@baa11fbfe1d6520db94683bd5c7a3818018e4309 # v5.1.0 with: global-json-file: global.json - name: Cache installers - uses: actions/cache@9255dc7a253b0ccc959486e2bca901246202afeb # v5.0.1 + uses: actions/cache@8b402f58fbc84540c8b491a91e594a4576fec3d7 # v5.0.2 with: # Note: the cache path is relative to the workspace directory # https://docs.github.com/en/actions/using-workflows/caching-dependencies-to-speed-up-workflows#using-the-cache-action @@ -150,11 +150,11 @@ jobs: with: submodules: true - name: Setup .NET SDK - uses: actions/setup-dotnet@2016bd2012dba4e32de620c46fe006a3ac9f0602 # v5.0.1 + uses: actions/setup-dotnet@baa11fbfe1d6520db94683bd5c7a3818018e4309 # v5.1.0 with: global-json-file: global.json - name: Cache NuGet packages - uses: actions/cache@9255dc7a253b0ccc959486e2bca901246202afeb # v5.0.1 + uses: actions/cache@8b402f58fbc84540c8b491a91e594a4576fec3d7 # v5.0.2 with: path: | ~/.nuget/packages @@ -188,7 +188,7 @@ jobs: with: submodules: true - name: Setup .NET SDK - uses: actions/setup-dotnet@2016bd2012dba4e32de620c46fe006a3ac9f0602 # v5.0.1 + uses: actions/setup-dotnet@baa11fbfe1d6520db94683bd5c7a3818018e4309 # v5.1.0 with: global-json-file: global.json - name: Download Build (Debug) @@ -229,7 +229,7 @@ jobs: with: submodules: true - name: Setup .NET SDK - uses: actions/setup-dotnet@2016bd2012dba4e32de620c46fe006a3ac9f0602 # v5.0.1 + uses: actions/setup-dotnet@baa11fbfe1d6520db94683bd5c7a3818018e4309 # v5.1.0 with: global-json-file: global.json - name: Download Build (Debug) diff --git a/.github/workflows/check-actions-updates.yml b/.github/workflows/check-actions-updates.yml deleted file mode 100644 index 5dac2ce66..000000000 --- a/.github/workflows/check-actions-updates.yml +++ /dev/null @@ -1,27 +0,0 @@ -name: Check-Actions-Updates - -on: - push: - branches: - - main - pull_request: - workflow_dispatch: - schedule: - - cron: '0 16 * * 2' # Runs Tuesdays at 16:00 UTC - -permissions: - contents: read - -jobs: - check-actions: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 - - id: actions-check - run: ${{ github.workspace }}/.github/scripts/check-actions-updates.sh - - if: steps.actions-check.outputs.has-updates == 'true' - run: | - echo "::error:: Found ${{ steps.actions-check.outputs.update-count }} outdated GitHub Actions. Please update them before merging." - echo "You can update them by running: npx actions-up" - echo "Or manually update the versions in your workflows." - exit 1 diff --git a/.github/workflows/oauth2.yaml b/.github/workflows/oauth2.yaml index c59d3649c..d4b08f9af 100644 --- a/.github/workflows/oauth2.yaml +++ b/.github/workflows/oauth2.yaml @@ -20,10 +20,10 @@ jobs: - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 with: submodules: true - - uses: actions/setup-dotnet@2016bd2012dba4e32de620c46fe006a3ac9f0602 # v5.0.1 + - uses: actions/setup-dotnet@baa11fbfe1d6520db94683bd5c7a3818018e4309 # v5.1.0 with: dotnet-version: 8.x - - uses: actions/cache@9255dc7a253b0ccc959486e2bca901246202afeb # v5.0.1 + - uses: actions/cache@8b402f58fbc84540c8b491a91e594a4576fec3d7 # v5.0.2 with: path: | ~/.nuget/packages diff --git a/.github/workflows/publish-nuget.yaml b/.github/workflows/publish-nuget.yaml index f51eea4b5..663616929 100644 --- a/.github/workflows/publish-nuget.yaml +++ b/.github/workflows/publish-nuget.yaml @@ -17,10 +17,10 @@ jobs: with: submodules: true - name: Setup .NET SDK - uses: actions/setup-dotnet@2016bd2012dba4e32de620c46fe006a3ac9f0602 # v5.0.1 + uses: actions/setup-dotnet@baa11fbfe1d6520db94683bd5c7a3818018e4309 # v5.1.0 with: global-json-file: global.json - - uses: actions/cache@9255dc7a253b0ccc959486e2bca901246202afeb # v5.0.1 + - uses: actions/cache@8b402f58fbc84540c8b491a91e594a4576fec3d7 # v5.0.2 with: path: | ~/.nuget/packages