From 311334a677d4f74d026d7f8a346e2178ab8af20b Mon Sep 17 00:00:00 2001 From: Greg Anderson Date: Wed, 18 Nov 2026 20:39:13 +0000 Subject: [PATCH 1/2] Pin third-party actions to commit SHAs A moved tag on any action the CI or release workflow uses would put someone else's code into what we ship. Each tag reference is now the commit the tag points at today, with the most specific version tag that names the same commit kept as a trailing comment. The root action.yml pins codeql-action/upload-sarif the same way, so customers who run this action no longer follow a moving v3 tag. Resolved with git ls-remote on 2026-11-18, using the dereferenced commit for annotated tags (cosign-installer, codeql-action). No other change. Co-Authored-By: Claude Opus 5.5 --- .github/workflows/ci.yml | 6 +++--- .github/workflows/release.yml | 14 +++++++------- action.yml | 2 +- 3 files changed, 11 insertions(+), 11 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 15bcb44..3a574c8 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -9,8 +9,8 @@ jobs: test: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 - - uses: actions/setup-go@v5 + - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0 + - uses: actions/setup-go@40f1582b2485089dde7abd97c1529aa768e1baff # v5.6.0 with: go-version-file: go.mod - name: gofmt @@ -49,7 +49,7 @@ jobs: # The published action, run from this checkout against the latest release. runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0 - id: el uses: ./ with: diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index bfc2d1b..b53f408 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -10,8 +10,8 @@ jobs: release: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 - - uses: actions/setup-go@v5 + - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0 + - uses: actions/setup-go@40f1582b2485089dde7abd97c1529aa768e1baff # v5.6.0 with: go-version-file: go.mod - run: go vet ./... && go test -race ./... @@ -35,7 +35,7 @@ jobs: "dist/earlylight_${GITHUB_REF_NAME}_linux_amd64" detectors --format json > dist/detectors.json grep -q "\"version\": \"${GITHUB_REF_NAME}\"" dist/detectors.json (cd dist && sha256sum -- * > checksums.txt) - - uses: sigstore/cosign-installer@v3 + - uses: sigstore/cosign-installer@398d4b0eeef1380460a10c8013a76f728fb906ac # v3.9.1 - name: Sign checksums run: cosign sign-blob --yes --bundle dist/checksums.txt.sigstore.json dist/checksums.txt - name: Publish release @@ -47,15 +47,15 @@ jobs: major="${GITHUB_REF_NAME%%.*}" git tag -f "$major" "$GITHUB_SHA" git push -f origin "refs/tags/$major" - - uses: docker/setup-qemu-action@v3 - - uses: docker/setup-buildx-action@v3 - - uses: docker/login-action@v3 + - uses: docker/setup-qemu-action@c7c53464625b32c7a7e944ae62b3e17d2b600130 # v3.7.0 + - uses: docker/setup-buildx-action@8d2750c68a42422c14e847fe6c8ac0403b4cbd6f # v3.12.0 + - uses: docker/login-action@c94ce9fb468520275223c153574b00df6fe4bcc9 # v3.7.0 with: registry: ghcr.io username: ${{ github.actor }} password: ${{ github.token }} - name: Build and push image - uses: docker/build-push-action@v6 + uses: docker/build-push-action@10e90e3645eae34f1e60eeb005ba3a3d33f178e8 # v6.19.2 with: context: . platforms: linux/amd64,linux/arm64 diff --git a/action.yml b/action.yml index 03d6515..4503cd4 100644 --- a/action.yml +++ b/action.yml @@ -100,7 +100,7 @@ runs: esac - name: Upload SARIF if: ${{ always() && inputs.upload-sarif == 'true' && steps.scan.outputs.sarif != '' }} - uses: github/codeql-action/upload-sarif@v3 + uses: github/codeql-action/upload-sarif@9418214df1f2c4b8128c770156c409013b07d6b9 # v3.39.3 with: sarif_file: ${{ steps.scan.outputs.sarif }} category: earlylight From 84ed0eeeb11b1372357ca0d617f30bc835421ca7 Mon Sep 17 00:00:00 2001 From: Greg Anderson Date: Wed, 18 Nov 2026 20:39:13 +0000 Subject: [PATCH 2/2] Add Dependabot updates for GitHub Actions Weekly, in one grouped PR, so the SHA pins and their version comments move together. Directory "/" covers .github/workflows and the root action.yml. Go modules stay out: the repo has no policy for them yet. Co-Authored-By: Claude Opus 5.5 --- .github/dependabot.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 .github/dependabot.yml diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..9648686 --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,12 @@ +version: 2 +updates: + # Actions are pinned to commit SHAs with the version as a trailing comment. + # Dependabot bumps both. "/" covers .github/workflows and the root action.yml. + - package-ecosystem: github-actions + directory: / + schedule: + interval: weekly + groups: + github-actions: + patterns: + - "*"