Skip to content

Commit 72d4cef

Browse files
ci: upgrade cagent-action to v1.4.3 with OIDC-based credential fetching
Bump from v1.3.1 to v1.4.3. Remove all explicitly passed secrets — ANTHROPIC_API_KEY, CAGENT_ORG_MEMBERSHIP_TOKEN, CAGENT_REVIEWER_APP_ID, and CAGENT_REVIEWER_APP_PRIVATE_KEY are all now fetched automatically inside the called workflow via OIDC from AWS Secrets Manager. Add id-token: write and actions: read permissions required by the new setup-credentials action. Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
1 parent baaaaa3 commit 72d4cef

1 file changed

Lines changed: 4 additions & 7 deletions

File tree

.github/workflows/pr-review.yml

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,23 +8,20 @@ on:
88
types: [ready_for_review, opened]
99

1010
permissions:
11-
contents: read # Required at top level so `GITHUB_TOKEN` for `issue_comment` events can read repository contents.
11+
contents: read
1212

1313
jobs:
1414
review:
1515
if: >-
1616
github.event_name == 'issue_comment' ||
1717
github.event_name == 'pull_request_review_comment' ||
1818
github.event.pull_request.user.login != 'dependabot[bot]'
19-
uses: docker/cagent-action/.github/workflows/review-pr.yml@dba0ca51938c78afb363625363c50582243218d6 # v1.3.1
19+
uses: docker/cagent-action/.github/workflows/review-pr.yml@ec4865576952df6285652f2cf8ffb4ad45ff5f80 # v1.4.3
2020
# Scoped to the job so other jobs in this workflow aren't over-permissioned
2121
permissions:
2222
contents: read # Read repository files and PR diffs
2323
pull-requests: write # Post review comments and approve/request changes
2424
issues: write # Create security incident issues if secrets are detected in output
2525
checks: write # (Optional) Show review progress as a check run on the PR
26-
secrets:
27-
ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}
28-
CAGENT_ORG_MEMBERSHIP_TOKEN: ${{ secrets.CAGENT_ORG_MEMBERSHIP_TOKEN }} # PAT with read:org scope; gates auto-reviews to org members only
29-
CAGENT_REVIEWER_APP_ID: ${{ secrets.CAGENT_REVIEWER_APP_ID }} # GitHub App ID; reviews appear as your app instead of github-actions[bot]
30-
CAGENT_REVIEWER_APP_PRIVATE_KEY: ${{ secrets.CAGENT_REVIEWER_APP_PRIVATE_KEY }} # GitHub App private key; paired with App ID above
26+
id-token: write # Fetch app credentials and org membership token via OIDC
27+
actions: read # Download artifacts across workflow_run boundaries

0 commit comments

Comments
 (0)