summaryrefslogtreecommitdiff
path: root/.github/workflows
diff options
context:
space:
mode:
authorYuriy Andamasov <yuriy@vyos.io>2026-05-11 11:19:45 +0300
committerGitHub <noreply@github.com>2026-05-11 11:19:45 +0300
commitcb2fee386137d88643a1fc45abd2744b85b5003f (patch)
tree7b4d1bf4fd7b17abb40bd37e024a642e62acecf4 /.github/workflows
parent07275e060e2ec2acf2bee3d1e3c2fb4bdd976826 (diff)
parenteff4a2e4698a80f4f1f0f3e8b83996dab1dab63d (diff)
downloadvyos-documentation-cb2fee386137d88643a1fc45abd2744b85b5003f.tar.gz
vyos-documentation-cb2fee386137d88643a1fc45abd2744b85b5003f.zip
Merge pull request #1983 from vyos/yuriy/ai-validation-restore-id-token-sagitta
ci(ai-validation, sagitta): restore id-token: write (claude-code-action uses OIDC)
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/ai-validation.yml11
1 files changed, 11 insertions, 0 deletions
diff --git a/.github/workflows/ai-validation.yml b/.github/workflows/ai-validation.yml
index b21d2320..600e4e8b 100644
--- a/.github/workflows/ai-validation.yml
+++ b/.github/workflows/ai-validation.yml
@@ -204,6 +204,17 @@ jobs:
# permissions split issue and PR scopes.
pull-requests: write
issues: write
+ # id-token: write is required by anthropics/claude-code-action@v1.
+ # The action calls actions/core's getIDToken() internally to mint
+ # an OIDC token used for the Claude/Anthropic auth federation
+ # path; without this scope it fails with
+ # `Could not fetch an OIDC token. Did you remember to add
+ # id-token: write to your workflow permissions?`
+ # An earlier Copilot finding suggested dropping this permission as
+ # "unused" — that was wrong: no shell step in this workflow
+ # invokes OIDC directly, but the third-party action does. Verified
+ # by run 25658256103 on PR #1977.
+ id-token: write
steps:
# Pass secrets via env: rather than inlining ${{ secrets.X }} into the
# shell script. GitHub Actions template-expands ${{ ... }} BEFORE bash