From 4a8c248d981c4584271bd02d7038257f0f3452ea Mon Sep 17 00:00:00 2001 From: Finnegan's Owner <44065187+pacmano1@users.noreply.github.com> Date: Sun, 25 Oct 2026 11:21:46 -0600 Subject: [PATCH] Pin every action to a full commit SHA Every action in build.yml and release.yml was referenced by a tag its owner can move, which is how the tj-actions/changed-files compromise (March 2025) spread. Each is now pinned to a commit, with its version in a comment. The versions are the newest releases at least 14 days old, the same set the other Diridium plugins pin (proven first in diridium-com/oie-ssh-tunnel-manager#19): - actions/checkout v7.0.1 (2026-07-20), was v4 - actions/setup-java v6.0.1 (2026-09-09), was v4 - actions/cache v6.1.0 (2026-06-26), was v4 - softprops/action-gh-release v2.6.2 (2026-04-12), was v2. It stays on v2 because the next change to release.yml removes it. The v4 actions run on Node 20, which GitHub has deprecated. Every run warned that they were being forced onto Node 24 and that setup-java v4 gets no more updates. The new versions run on Node 24. Checked: each SHA is the commit its tag points to, and both workflows parse. release.yml runs only on a tag, so its new pins first run when the release workflow is next tested. Co-Authored-By: Claude Opus 5.5 --- .github/workflows/build.yml | 6 +++--- .github/workflows/release.yml | 8 ++++---- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 3c588ff..f4c9263 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -29,10 +29,10 @@ jobs: matrix: java: ['17', '21'] steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 - name: Set up JDK ${{ matrix.java }} - uses: actions/setup-java@v4 + uses: actions/setup-java@de7274f081f381c8f8158605e0321c36c376e2e6 # v6.0.1 with: distribution: temurin java-version: ${{ matrix.java }} @@ -51,7 +51,7 @@ jobs: echo "mc_version=$MC_VERSION" >> "$GITHUB_OUTPUT" - name: Cache OIE distribution - uses: actions/cache@v4 + uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0 with: path: .oie-dist key: oie-dist-${{ steps.engine.outputs.mc_version }} diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 4160273..7ff9cce 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -33,10 +33,10 @@ jobs: release: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 - name: Set up JDK 17 - uses: actions/setup-java@v4 + uses: actions/setup-java@de7274f081f381c8f8158605e0321c36c376e2e6 # v6.0.1 with: distribution: temurin java-version: '17' @@ -106,7 +106,7 @@ jobs: echo "mc_version=$MC_VERSION" >> "$GITHUB_OUTPUT" - name: Cache OIE distribution - uses: actions/cache@v4 + uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0 with: path: .oie-dist key: oie-dist-${{ steps.engine.outputs.mc_version }} @@ -138,7 +138,7 @@ jobs: - name: Create DRAFT GitHub Release with assets # Stays a draft: the zip is unsigned. A human signs locally, replaces the # zip and its .sha256 sidecar, and publishes (see RELEASING.md). - uses: softprops/action-gh-release@v2 + uses: softprops/action-gh-release@3bb12739c298aeb8a4eeaf626c5b8d85266b0e65 # v2.6.2 with: draft: true files: |