diff --git a/.github/workflows/ci-build.yml b/.github/workflows/ci-build.yml index 4a232f1..567f475 100644 --- a/.github/workflows/ci-build.yml +++ b/.github/workflows/ci-build.yml @@ -24,12 +24,12 @@ jobs: contents: read steps: - - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 + - uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3 - name: "Set up the .NET SDK" - uses: actions/setup-dotnet@67a3573c9a986a3f9c594539f4ab511d57bb3ce9 # v4.3.1 + uses: actions/setup-dotnet@9a946fdbd5fb07b82b2f5a4466058b876ab72bb2 # v5.3.0 with: - dotnet-version: 9.0.x + dotnet-version: 10.0.x - name: "Build the IssueLabeler solution" run: dotnet build IssueLabeler/ --configuration Release diff --git a/.github/workflows/labeler-train.yml b/.github/workflows/labeler-train.yml index 31e08b7..a7c2584 100644 --- a/.github/workflows/labeler-train.yml +++ b/.github/workflows/labeler-train.yml @@ -122,7 +122,7 @@ jobs: has_training_data: ${{ steps.check.outputs.has_training_data }} steps: - name: "Restore Issue Data from Cache" - uses: actions/cache/restore@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3 + uses: actions/cache/restore@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5.0.5 with: path: labeler-cache/issues-data.tsv key: issue-labeler/data/issues/${{ env.CACHE_KEY }} @@ -150,7 +150,7 @@ jobs: has_training_data: ${{ steps.check.outputs.has_training_data }} steps: - name: "Restore Pull Request Data from Cache" - uses: actions/cache/restore@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3 + uses: actions/cache/restore@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5.0.5 with: path: labeler-cache/pulls-data.tsv key: issue-labeler/data/pulls/${{ env.CACHE_KEY }} @@ -178,7 +178,7 @@ jobs: has_training_data: ${{ steps.check.outputs.has_training_data }} steps: - name: "Restore Discussion Data from Cache" - uses: actions/cache/restore@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3 + uses: actions/cache/restore@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5.0.5 with: path: labeler-cache/discussions-data.tsv key: issue-labeler/data/discussions/${{ env.CACHE_KEY }} diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 5834aed..26c70a8 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -7,7 +7,7 @@ on: permissions: {} env: - BASE_IMAGE: mcr.microsoft.com/dotnet/runtime:9.0-noble-chiseled + BASE_IMAGE: mcr.microsoft.com/dotnet/runtime:10.0-noble-chiseled PREDICTOR_IMAGE_NAME: ${{ github.repository }}/predictor PACKAGE_NAME_ESCAPED: issue-labeler%2Fpredictor GITHUB_API_PACKAGE_OWNER: /orgs/dotnet @@ -47,15 +47,15 @@ jobs: published_image_digest: ${{ steps.published-image.outputs.published_image_digest }} steps: - - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 + - uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3 - name: "Set up the .NET SDK" - uses: actions/setup-dotnet@67a3573c9a986a3f9c594539f4ab511d57bb3ce9 # v4.3.1 + uses: actions/setup-dotnet@9a946fdbd5fb07b82b2f5a4466058b876ab72bb2 # v5.3.0 with: - dotnet-version: 9.0.x + dotnet-version: 10.0.x - name: "Log in to the GitHub Container Registry" - uses: docker/login-action@74a5d142397b4f367a81961eba4e8cd7edddf772 # v3.4.0 + uses: docker/login-action@650006c6eb7dba73a995cc03b0b2d7f5ca915bee # v4.2.0 with: registry: ghcr.io username: ${{ github.actor }} @@ -114,7 +114,7 @@ jobs: contents: write steps: - - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 + - uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3 - name: "Commit the `predict` image update and capture workflow pin patch" id: release diff --git a/IssueLabeler/Directory.Build.props b/IssueLabeler/Directory.Build.props index 8272204..0982ceb 100644 --- a/IssueLabeler/Directory.Build.props +++ b/IssueLabeler/Directory.Build.props @@ -2,7 +2,7 @@ - net9.0 + net10.0 true true $(MSBuildThisFileDirectory)artifacts diff --git a/IssueLabeler/Directory.Packages.props b/IssueLabeler/Directory.Packages.props index 5c936eb..ac623f1 100644 --- a/IssueLabeler/Directory.Packages.props +++ b/IssueLabeler/Directory.Packages.props @@ -4,21 +4,16 @@ - - + + - - + + - - - - - - - + + diff --git a/IssueLabeler/src/GitHubClient/GitHubClient.csproj b/IssueLabeler/src/GitHubClient/GitHubClient.csproj index ce9e773..522c4dd 100644 --- a/IssueLabeler/src/GitHubClient/GitHubClient.csproj +++ b/IssueLabeler/src/GitHubClient/GitHubClient.csproj @@ -11,9 +11,6 @@ - - - diff --git a/IssueLabeler/tests/Common.Tests/Common.Tests.csproj b/IssueLabeler/tests/Common.Tests/Common.Tests.csproj index cee86d4..9c0c086 100644 --- a/IssueLabeler/tests/Common.Tests/Common.Tests.csproj +++ b/IssueLabeler/tests/Common.Tests/Common.Tests.csproj @@ -1,7 +1,7 @@  - net9.0 + net10.0 enable enable false diff --git a/download/action.yml b/download/action.yml index b6f95a5..60684c3 100644 --- a/download/action.yml +++ b/download/action.yml @@ -46,7 +46,7 @@ runs: - name: "Check for Existing Cache Entry" id: check-cache - uses: actions/cache/restore@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3 + uses: actions/cache/restore@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5.0.5 with: path: ${{ env.DATA_PATH }} key: ${{ env.CACHE_KEY }} @@ -67,9 +67,9 @@ runs: fi - name: "Set up the .NET SDK" - uses: actions/setup-dotnet@67a3573c9a986a3f9c594539f4ab511d57bb3ce9 # v4.3.1 + uses: actions/setup-dotnet@9a946fdbd5fb07b82b2f5a4466058b876ab72bb2 # v5.3.0 with: - dotnet-version: "9.0.x" + dotnet-version: "10.0.x" - name: "Run Downloader" shell: bash @@ -85,7 +85,7 @@ runs: ${{ (inputs.retries && format('--retries "{0}"', inputs.retries)) || '' }} - name: "Save the Downloaded Data to Cache" - uses: actions/cache/save@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3 + uses: actions/cache/save@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5.0.5 with: path: ${{ env.DATA_PATH }} key: ${{ env.CACHE_KEY }} diff --git a/promote/action.yml b/promote/action.yml index 5b22ce5..380a638 100644 --- a/promote/action.yml +++ b/promote/action.yml @@ -43,7 +43,7 @@ runs: - name: "Check for Existing Staged Cache Entry" id: check-staged - uses: actions/cache/restore@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3 + uses: actions/cache/restore@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5.0.5 with: path: ${{ env.CACHE_PATH }} key: ${{ env.STAGED_KEY }} @@ -53,7 +53,7 @@ runs: - name: "Check for Existing Backup Cache Entry" if: ${{ steps.check-staged.outputs.cache-hit == 'true' }} id: check-backup - uses: actions/cache/restore@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3 + uses: actions/cache/restore@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5.0.5 with: path: ${{ env.CACHE_PATH }} key: ${{ env.BACKUP_KEY }} @@ -63,7 +63,7 @@ runs: - name: "Restore Existing Active Cache Entry" if: ${{ steps.check-staged.outputs.cache-hit == 'true' }} id: check-active - uses: actions/cache/restore@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3 + uses: actions/cache/restore@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5.0.5 with: path: ${{ env.CACHE_PATH }} key: ${{ env.ACTIVE_KEY }} @@ -84,7 +84,7 @@ runs: - name: "Cache Backup of Current Active Cache Entry" if: ${{ steps.check-active.outputs.cache-hit == 'true' }} id: backup-file - uses: actions/cache/save@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3 + uses: actions/cache/save@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5.0.5 with: path: ${{ env.CACHE_PATH }} key: ${{ env.BACKUP_KEY }} @@ -96,7 +96,7 @@ runs: rm ${{ env.CACHE_PATH }} - name: "Restore the Staged Cache Entry to Promote" - uses: actions/cache/restore@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3 + uses: actions/cache/restore@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5.0.5 with: path: ${{ env.CACHE_PATH }} key: ${{ env.STAGED_KEY }} @@ -112,7 +112,7 @@ runs: GH_REPO: ${{ github.repository }} - name: "Save the Staged Cache Entry as the ACTIVE Cache Entry" - uses: actions/cache/save@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3 + uses: actions/cache/save@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5.0.5 with: path: ${{ env.CACHE_PATH }} key: ${{ env.ACTIVE_KEY }} diff --git a/restore/action.yml b/restore/action.yml index 81617e0..a358d0d 100644 --- a/restore/action.yml +++ b/restore/action.yml @@ -42,7 +42,7 @@ runs: - name: "Restore Model from Cache" id: restore-cache - uses: actions/cache/restore@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3 + uses: actions/cache/restore@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5.0.5 with: path: "labeler-cache/${{ inputs.type }}-model.zip" key: "issue-labeler/model/${{ inputs.type }}/${{ inputs.cache_key || 'ACTIVE' }}" diff --git a/test/action.yml b/test/action.yml index 30d889f..5251944 100644 --- a/test/action.yml +++ b/test/action.yml @@ -47,16 +47,16 @@ runs: fi - name: "Restore model from cache" - uses: actions/cache/restore@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3 + uses: actions/cache/restore@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5.0.5 with: path: "labeler-cache/${{ inputs.type == 'pulls' && 'pulls' || inputs.type == 'discussions' && 'discussions' || 'issues' }}-model.zip" key: "issue-labeler/model/${{ inputs.type }}/${{ inputs.cache_key || 'staged' }}" fail-on-cache-miss: true - name: "Set up the .NET SDK" - uses: actions/setup-dotnet@67a3573c9a986a3f9c594539f4ab511d57bb3ce9 # v4.3.1 + uses: actions/setup-dotnet@9a946fdbd5fb07b82b2f5a4466058b876ab72bb2 # v5.3.0 with: - dotnet-version: "9.0.x" + dotnet-version: "10.0.x" - name: "Run Tester" shell: bash diff --git a/train/action.yml b/train/action.yml index 98b0645..87d08e8 100644 --- a/train/action.yml +++ b/train/action.yml @@ -39,7 +39,7 @@ runs: - name: "Check for an existing model" id: check-cache - uses: actions/cache/restore@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3 + uses: actions/cache/restore@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5.0.5 with: path: ${{ env.MODEL_PATH }} key: ${{ env.MODEL_CACHE_KEY }} @@ -59,16 +59,16 @@ runs: fi - name: "Restore Data from Cache" - uses: actions/cache/restore@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3 + uses: actions/cache/restore@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5.0.5 with: path: ${{ env.DATA_PATH }} key: ${{ env.DATA_CACHE_KEY }} fail-on-cache-miss: true - name: "Set up the .NET SDK" - uses: actions/setup-dotnet@67a3573c9a986a3f9c594539f4ab511d57bb3ce9 # v4.3.1 + uses: actions/setup-dotnet@9a946fdbd5fb07b82b2f5a4466058b876ab72bb2 # v5.3.0 with: - dotnet-version: 9.0.x + dotnet-version: 10.0.x - name: "Run Trainer" shell: bash @@ -83,7 +83,7 @@ runs: dotnet run -c Release --project "${{ github.action_path }}/../IssueLabeler/src/Trainer" -- "${trainer_args[@]}" - name: "Save Model to Cache" - uses: actions/cache/save@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3 + uses: actions/cache/save@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5.0.5 with: path: ${{ env.MODEL_PATH }} key: ${{ env.MODEL_CACHE_KEY }}