Skip to content

Commit dcc7efb

Browse files
jugonzalez12claude
andauthored
general-pr-review: declare ANTHROPIC_API_KEY for workflow_call (#120)
The workflow_call block declared no secrets, so a caller could only reach ANTHROPIC_API_KEY through secrets: inherit, which forwards every secret the calling repository can see. Declaring it lets callers pass that one secret instead. No behaviour change for existing consumers. The managed-repository ruleset runs this workflow against each repo through its own pull_request trigger rather than workflow_call, so the declaration is inert there and the secret keeps resolving from the org secret. A code search across ConductorOne and ductone finds no workflow_call references to this file today. Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
1 parent 8c8b76b commit dcc7efb

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

.github/workflows/general-pr-review.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
on:
22
pull_request:
33
types: [opened, reopened, synchronize, ready_for_review]
4-
workflow_call: {}
4+
workflow_call:
5+
secrets:
6+
ANTHROPIC_API_KEY:
7+
required: true
58
concurrency:
69
group: general-pr-review-${{ github.workflow_ref }}-${{ github.event.pull_request.number || github.run_id }}
710
cancel-in-progress: true

0 commit comments

Comments
 (0)