Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/claude-issue-triage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@ jobs:
uses: ./.github/actions/claude-issue-triage-action
with:
anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}
github_token: ${{ secrets.PAT_TOKEN }}
github_token: ${{ secrets.GH_TOKEN }}
Copy link

Copilot AI Apr 1, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Trailing whitespace after the secret expression can trigger YAML/style lint failures and makes diffs noisier. Please remove the extra space after ${{ secrets.GH_TOKEN }}.

Suggested change
github_token: ${{ secrets.GH_TOKEN }}
github_token: ${{ secrets.GH_TOKEN }}

Copilot uses AI. Check for mistakes.
3 changes: 2 additions & 1 deletion .github/workflows/claude.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ jobs:
pull-requests: write
issues: write
actions: read
id-token: write
Comment on lines 29 to +32
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Action required

1. Oidc with unpinned action 🐞 Bug ⛨ Security

claude.yml now grants id-token: write while running anthropics/claude-code-action@beta (a
mutable tag), increasing supply-chain impact because a compromised tag update could mint OIDC tokens
in your job context. Pin the third-party action to an immutable commit SHA (or a trusted release
digest) before enabling OIDC token issuance.
Agent Prompt
### Issue description
The workflow grants `id-token: write` but uses `anthropics/claude-code-action@beta`, which is a mutable reference. This increases the supply-chain blast radius because the referenced code can change without being reviewed in this repo.

### Issue Context
`id-token: write` enables OIDC token requests in the job. Third-party actions referenced by mutable tags should be pinned to an immutable commit SHA (or equivalent immutable identifier) before granting sensitive permissions.

### Fix Focus Areas
- .github/workflows/claude.yml[27-45]

### What to change
- Replace `anthropics/claude-code-action@beta` with a commit-SHA-pinned reference (or an immutable release reference provided by the publisher).
- Keep `id-token: write` only if OIDC is still required after the pin.

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools

steps:
- name: Checkout repository
uses: actions/checkout@v4
Expand All @@ -38,7 +39,7 @@ jobs:
- uses: anthropics/claude-code-action@beta
with:
claude_code_oauth_token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }}
github_token: ${{ secrets.PAT_TOKEN }}
github_token: ${{ secrets.GH_TOKEN }}
trigger_phrase: "@claude"
label_trigger: "claude"
direct_prompt: |
Expand Down
Loading