You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Adds id-token: write to the triage job in daily-datadog-triage.yml. claude-code-action@v1 requests an OIDC token on startup even when authenticated with an API key, so the run failed before reaching the prompt without this permission.
Issues Found
None.
The change is correct and matches the established pattern in this repo. claude-review.yml also runs anthropics/claude-code-action@v1 with anthropic_api_key and grants id-token: write (line 166), confirming the action needs this scope regardless of API-key auth. The inline comment explains the why clearly.
The scope stays minimal: contents: read plus id-token: write. id-token: write only lets the job mint an OIDC token; it does not grant repo write access, and issue writes still come from triage-issues-token rather than GITHUB_TOKEN, so the escalation guarantee noted at lines 49-50 holds.
Areas Reviewed
Security: No new exposure. id-token: write is low-risk and required by the action.
Correctness: Fix addresses a real startup failure, verified against the working sibling workflow.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR adds fix for oidc token generation.
Follow-up to #111