From d33edd2fad5e4cc0e06365604aea1185816ea9ba Mon Sep 17 00:00:00 2001 From: nicolasestrem <103498114+nicolasestrem@users.noreply.github.com> Date: Mon, 19 Oct 2026 21:18:29 +0200 Subject: [PATCH] fix(actions): pin third-party actions to full commit SHAs Pin the three refs CodeQL flagged as actions/unpinned-tag so workflows no longer resolve mutable tags at run time: - opencode.yml: anomalyco/opencode/github@latest (moving tag) pinned to 77fc88c8ade8e5a620ebbe1197f3a572d29ae91a (peeled refs/tags/latest^{}) - claude.yml / claude-code-review.yml: anthropics/claude-code-action@v1 pinned to 5eb090f3c3afd701a0672cd32981197ca27688f6 (peeled refs/tags/v1^{}) Human tags kept as trailing comments so Dependabot can still update pins. Closes CodeQL alerts #1, #2, #3 once merged to main and re-analyzed. --- .github/workflows/claude-code-review.yml | 2 +- .github/workflows/claude.yml | 2 +- .github/workflows/opencode.yml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/claude-code-review.yml b/.github/workflows/claude-code-review.yml index b5e8cfd..f1c77a2 100644 --- a/.github/workflows/claude-code-review.yml +++ b/.github/workflows/claude-code-review.yml @@ -33,7 +33,7 @@ jobs: - name: Run Claude Code Review id: claude-review - uses: anthropics/claude-code-action@v1 + uses: anthropics/claude-code-action@5eb090f3c3afd701a0672cd32981197ca27688f6 # v1 with: claude_code_oauth_token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }} plugin_marketplaces: 'https://github.com/anthropics/claude-code.git' diff --git a/.github/workflows/claude.yml b/.github/workflows/claude.yml index 73a6971..5ad2f6e 100644 --- a/.github/workflows/claude.yml +++ b/.github/workflows/claude.yml @@ -32,7 +32,7 @@ jobs: - name: Run Claude Code id: claude - uses: anthropics/claude-code-action@v1 + uses: anthropics/claude-code-action@5eb090f3c3afd701a0672cd32981197ca27688f6 # v1 with: claude_code_oauth_token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }} diff --git a/.github/workflows/opencode.yml b/.github/workflows/opencode.yml index 51c1a96..68b8396 100644 --- a/.github/workflows/opencode.yml +++ b/.github/workflows/opencode.yml @@ -32,7 +32,7 @@ jobs: persist-credentials: false - name: Run opencode - uses: anomalyco/opencode/github@latest + uses: anomalyco/opencode/github@77fc88c8ade8e5a620ebbe1197f3a572d29ae91a # latest @ 2026-10-19 env: OPENCODE_API_KEY: ${{ secrets.OPENCODE_API_KEY }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}