Skip to content

ci(pr-automation): inherit reviewer secrets - #1895

Merged
Benoît Cortier (CBenoit) merged 6 commits into
masterfrom
cbenoit-fix-reviewer-pipeline-secret
Sep 4, 2026
Merged

Benoît Cortier (CBenoit) merged 6 commits into
masterfrom
cbenoit-fix-reviewer-pipeline-secret

Conversation

@CBenoit

@CBenoit Benoît Cortier (CBenoit) commented Sep 3, 2026 •

Copy link
Copy Markdown
Member

Work around actions/runner#4453 by opting into caller secret propagation so environment-scoped provider secrets resolve in the reusable reviewer jobs. Keep the called workflow trusted because inheritance also exposes caller-accessible secrets.

Co-authored-by: Copilot App [email protected]

Declare and pass the Helmcode API key across the reusable workflow boundary so specialist reviewers can invoke the provider.

Co-authored-by: Copilot App <[email protected]>
Copilot AI balanced review requested due to automatic review settings September 3, 2026 20:31
@github-actions github-actions Bot added needs-review A human reviewer is the current next actor risk/unknown Risk could not be determined automatically; needs maintainer-level scrutiny scope/tooling Build, CI, release, or developer tooling size/S Size: up to 199 counted lines and 5 files; exceeds XS in either measure labels Sep 3, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The caller cannot forward the documented environment-scoped secret, so the change does not achieve its stated purpose.

Once you've addressed the issues Copilot identified, you can request another Copilot review.

Pull request overview

Attempts to forward the Helmcode API key into the reusable review workflow.

Changes:

  • Declares and passes the provider secret.
  • Updates workflow assertions.

Protocol and prose reviews were skipped as unrelated.

File summaries
File Description
.github/workflows/review-pipeline.yml Declares the reusable-workflow secret.
.github/workflows/labeler.yml Passes the secret from the caller.
.github/pr-automation/automation.test.js Verifies secret wiring.
Review details
  • Files reviewed: 3/3 changed files
  • Comments generated: 1
  • Review effort level: Balanced

Comment thread .github/workflows/labeler.yml Resolved
Document that the Helmcode key is repository-scoped and explicitly forwarded to the reusable reviewer workflow.

Co-authored-by: Copilot App <[email protected]>
@github-actions github-actions Bot added risk/low Self-contained change with no cross-crate behavioral effect and removed risk/unknown Risk could not be determined automatically; needs maintainer-level scrutiny labels Sep 3, 2026
@CBenoit
Benoît Cortier (CBenoit) requested a balanced review from Copilot September 3, 2026 22:17
Allow environment-scoped provider secrets to resolve in the reusable reviewer workflow by opting into caller secret propagation.

Co-authored-by: Copilot App <[email protected]>
@CBenoit Benoît Cortier (CBenoit) changed the title ci(pr-automation): pass reviewer provider secret ci(pr-automation): inherit reviewer secrets Sep 3, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

Secret inheritance does not resolve the environment-scoped key, and the new regression assertion is ineffective.

Once you've addressed the issues Copilot identified, you can request another Copilot review.

Review details
  • Files reviewed: 2/2 changed files
  • Comments generated: 2
  • Review effort level: Balanced

Comment thread .github/workflows/labeler.yml Resolved
@github-actions github-actions Bot added size/XS Size: up to 49 counted lines and 2 files and removed size/S Size: up to 199 counted lines and 5 files; exceeds XS in either measure labels Sep 3, 2026
Keep the regression test focused on the required caller inheritance instead of asserting an unrelated workflow_call layout.

Co-authored-by: Copilot App <[email protected]>
Record the hosted-runner workaround and its trust implications beside the reusable workflow call.

Co-authored-by: Copilot App <[email protected]>
@github-actions github-actions Bot added risk/unknown Risk could not be determined automatically; needs maintainer-level scrutiny and removed risk/low Self-contained change with no cross-crate behavioral effect labels Sep 3, 2026
Remove the source-text assertion that only repeated the workflow line introduced by this change.

Co-authored-by: Copilot App <[email protected]>
@github-actions github-actions Bot added risk/low Self-contained change with no cross-crate behavioral effect and removed risk/unknown Risk could not be determined automatically; needs maintainer-level scrutiny labels Sep 3, 2026
@CBenoit
Benoît Cortier (CBenoit) merged commit 6ce5a01 into master Sep 4, 2026
43 checks passed
@CBenoit
Benoît Cortier (CBenoit) deleted the cbenoit-fix-reviewer-pipeline-secret branch September 4, 2026 01:12

This branch was previously deployed

1 inactive deployment
llm-providers — ceb457d3 Deployed Sep 3, 2026 by CBenoit via Classify pull request #4925
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs-review A human reviewer is the current next actor risk/low Self-contained change with no cross-crate behavioral effect scope/tooling Build, CI, release, or developer tooling size/XS Size: up to 49 counted lines and 2 files

Development

Successfully merging this pull request may close these issues.

2 participants