Repository navigation
fix(workflows)!: require explicit signer key delivery - #3348
Open
Bill Berry (WilliamBerryiii) wants to merge 1 commit into
Open
Bill Berry (WilliamBerryiii) wants to merge 1 commit into
Bill Berry (WilliamBerryiii) wants to merge 1 commit into
Conversation
- declare the named governance key for reusable callers - reject empty delivery before generating an App token - cover missing and present keys without printing values 🔐 - Generated by Copilot Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Contributor
Eval Execution |
Codecov Report✅ All modified and coverable lines are covered by tests.
Additional details and impacted files@@ Coverage Diff @@
## main #3348 +/- ##
===========================================
- Coverage 87.57% 23.40% -64.17%
===========================================
Files 91 91
Lines 14896 14896
===========================================
- Hits 13045 3487 -9558
- Misses 1851 11409 +9558
Flags with carried forward coverage won't be shown. Click here to find out more. 🚀 New features to boost your workflow:
|
This branch has not been deployed
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Pull Request
Description
Require an explicit governance-key binding when calling the extension provenance signer. Reject an empty key before generating the GitHub App token, with a diagnostic that does not print the value.
RELEASE_APP_PRIVATE_KEYas the required reusable-workflow secret.This changes the reusable workflow's interface. Current release callers remain pinned to their existing revision and are not changed here. A follow-up must use the reviewed immutable signer revision and its named secret binding together. No release is activated by this pull request.
Related Issue(s)
Related to #3117
Type of Change
Select all that apply:
Code & Documentation:
Infrastructure & Configuration:
AI Artifacts:
hve-builderand addressed all actionable findings.github/instructions/*.instructions.md).github/agents/*.agent.md).github/skills/*/SKILL.md).github/hooks/*/*.json)evals/)Other:
.ps1,.sh,.py)Testing
Validated the two-file commit
8971f4c11945aebfb41ff6e7eeacd88f54e76e53, based on main atf425e943bf228052a23e6bc4810b5faef030314f. In these commands,$worktreeis the isolated PR checkout,$reportis its workflow SARIF output, and$shellcheck[0].FullNameis the installed ShellCheck 0.11.0 executable.npm --prefix $worktree run test:ps -- -TestPath scripts\tests\extension\ExtensionProvenanceSigner.Tests.ps1: passed, 20 tests, zero skipped, using the checkout's pinned Pester 6.2.0.npm --prefix $worktree run test:ps -- -TestPath scripts\tests\security\GitHubAppTokenScope.Tests.ps1: passed, 213 tests, zero skipped, using Pester 6.2.0.npm --prefix $worktree run lint:permissions -- -Path "$worktree\.github\workflows\extension-provenance-signer.yml": passed, all four workflow/job checks.Invoke-ScriptAnalyzer -Path "$worktree\scripts\tests\extension\ExtensionProvenanceSigner.Tests.ps1" -Settings "$worktree\scripts\linting\PSScriptAnalyzer.psd1": passed, zero findings, using PSScriptAnalyzer 1.25.0.git -C $worktree diff f425e943bf228052a23e6bc4810b5faef030314f...HEAD --check: passed.npm run lint:workflows -- --repo-root $worktree --sarif $report --shellcheck $shellcheck[0].FullName: completed with exit 1 for eight existing generated-workflowSC2154findings; no signer-workflow finding.npm --prefix $worktree run security:codeql-gate -- -SarifPath $report -Threshold All: passed. All eight findings match existing tracked generated-code exceptions for Track upstream fixes for generated agentic-workflow scan findings #3137; no exception was added or changed.The full local aggregate, broad suites, hosted checks, environment-secret placement audit and actual signing/publication were not run. Fixtures use a fake key and do not mint an App token.
Checklist
Required Checks
AI Artifact Contributions
hve-builderreview mode to review contributionhve-builderreviewRequired Local Checks
The following local-safe validation commands must pass before merging:
npm run validate:localnpm run validate:docsnpm run spell-checknpm run lint:md-linksSecurity Considerations
Additional Notes
Do not update consumers to a moving branch or add the new binding to the old frozen workflow. After review and merge, record the actual landed commit and coordinate caller/verifier pins separately.
Before activation, an administrator must verify environment-only key placement and independent approval controls without inspecting secret values. This pull request does not change credentials, App grants, branch/tag protections, releases or Marketplace listings.