From c05a16963b1d2710ef322cfe49e6ce4dce359b48 Mon Sep 17 00:00:00 2001 From: Paul Irwin Date: Fri, 14 Aug 2026 10:15:21 -0600 Subject: [PATCH] Update GitHub Actions to latest versions and pin to commit SHAs Both actions were still on @v1, which is several major versions behind: - actions/checkout v1 -> v7.0.1 - actions/setup-dotnet v1 -> v6.0.0 Pin each to the full commit SHA of its release tag, with the version in a trailing comment so the intent stays readable. Mutable tags can be moved to point at different code after the fact, so a SHA is the only reference that guarantees the workflow runs the code that was reviewed. This is also what GitHub's own hardening guide recommends for third-party actions. Only the `uses:` lines change; job structure, steps and dotnet-version are untouched. Co-Authored-By: Claude Opus 5 (1M context) --- .github/workflows/build.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index cdff9d1..72a4d0b 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -10,9 +10,9 @@ jobs: windows-build: runs-on: windows-latest steps: - - uses: actions/checkout@v1 + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 - name: Setup .NET 10 - uses: actions/setup-dotnet@v1 + uses: actions/setup-dotnet@a98b56852c35b8e3190ac28c8c2271da59106c68 # v6.0.0 with: dotnet-version: 10.x - name: Build JavaToCSharp @@ -29,9 +29,9 @@ jobs: linux-build: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v1 + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 - name: Setup .NET 10 - uses: actions/setup-dotnet@v1 + uses: actions/setup-dotnet@a98b56852c35b8e3190ac28c8c2271da59106c68 # v6.0.0 with: dotnet-version: 10.x - name: Build JavaToCSharp