mirror of
https://github.com/docker/compose.git
synced 2026-10-12 02:13:08 +00:00
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. Signed-off-by: Michael Zampani <[email protected]> Co-Authored-By: Claude Sonnet 4.6 (1M context) <[email protected]>
This commit is contained in:
co-authored by
Claude Sonnet 4.6
parent
baaaaa3ff5
commit
d3c800cad0
@@ -8,7 +8,7 @@ on:
|
||||
types: [ready_for_review, opened]
|
||||
|
||||
permissions:
|
||||
contents: read # Required at top level so `GITHUB_TOKEN` for `issue_comment` events can read repository contents.
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
review:
|
||||
@@ -16,15 +16,12 @@ jobs:
|
||||
github.event_name == 'issue_comment' ||
|
||||
github.event_name == 'pull_request_review_comment' ||
|
||||
github.event.pull_request.user.login != 'dependabot[bot]'
|
||||
uses: docker/cagent-action/.github/workflows/review-pr.yml@dba0ca51938c78afb363625363c50582243218d6 # v1.3.1
|
||||
uses: docker/cagent-action/.github/workflows/review-pr.yml@ec4865576952df6285652f2cf8ffb4ad45ff5f80 # v1.4.3
|
||||
# Scoped to the job so other jobs in this workflow aren't over-permissioned
|
||||
permissions:
|
||||
contents: read # Read repository files and PR diffs
|
||||
pull-requests: write # Post review comments and approve/request changes
|
||||
issues: write # Create security incident issues if secrets are detected in output
|
||||
checks: write # (Optional) Show review progress as a check run on the PR
|
||||
secrets:
|
||||
ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}
|
||||
CAGENT_ORG_MEMBERSHIP_TOKEN: ${{ secrets.CAGENT_ORG_MEMBERSHIP_TOKEN }} # PAT with read:org scope; gates auto-reviews to org members only
|
||||
CAGENT_REVIEWER_APP_ID: ${{ secrets.CAGENT_REVIEWER_APP_ID }} # GitHub App ID; reviews appear as your app instead of github-actions[bot]
|
||||
CAGENT_REVIEWER_APP_PRIVATE_KEY: ${{ secrets.CAGENT_REVIEWER_APP_PRIVATE_KEY }} # GitHub App private key; paired with App ID above
|
||||
id-token: write # Fetch app credentials and org membership token via OIDC
|
||||
actions: read # Download artifacts across workflow_run boundaries
|
||||
|
||||
Reference in New Issue
Block a user