You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
ci: support OIDC workload federation for pin automation App mode - #40
↑ Workflow contract tests (63/63), npm run lint, catalog/pin checks, and actionlint all pass. ↑ Verified actions/create-github-app-token@v3.4.0-beta falls back to GitHub Actions OIDC when private-key is empty. ↓ Temporary v3.4.0-beta pin lacks v3.4.0's undici 6.29.1 bump (only OIDC-capable upstream release; documented in workflows for GA upgrade). ↓ Live GitHub Actions OIDC token exchange against the App workload federation policy has not yet been observed in a real release run.
Summary
Enable keyless GitHub Actions OIDC (workload federation) for zero-touch pin automation App mode so github/plugin-marketplace-starter does not need to store a long-lived PIN_APP_PRIVATE_KEY secret:
Update actions/create-github-app-token in .github/workflows/update-pins.yml and .github/workflows/complete-pin-validation.yml to 305e4aec4e2000ce216527e282f0749f47637923 (v3.4.0-beta), the only OIDC-capable upstream release today (tracked inline to upgrade to GA once OIDC ships on main with v3.4.0's undici 6.29.1 bump), while keeping optional PIN_APP_PRIVATE_KEY support.
Grant id-token: write to update-pins.yml and complete-pin-validation.yml (both default-branch-only and scoped to environment: pin-automation); validate.yml remains read-only without id-token: write.
Update workflow contract tests and App-mode documentation in docs/checks-and-evals.md and plugins/marketplace-maintainer/skills/update-remote-pins/references/remote-pins.md (including the private org-owned App prerequisite for OIDC).
Pin actions/create-github-app-token to v3.4.0-beta and grant id-token: write
to update-pins.yml and complete-pin-validation.yml so App mode can mint
installation tokens via GitHub Actions OIDC without storing PIN_APP_PRIVATE_KEY.
Retains optional PIN_APP_PRIVATE_KEY fallback when the secret is configured.
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
The reason will be displayed to describe this comment to others. Learn more.
🟡 Changes recommended
The beta App-token action pin reintroduces an unpatched undici dependency in both workflows, and the OIDC documentation omits required App ownership and visibility restrictions.
Document that OIDC workload federation requires a private App owned by the
repository's organization (with PIN_APP_PRIVATE_KEY retained for public or
externally owned Apps), and note the temporary v3.4.0-beta pin in both
workflows until OIDC ships in a stable release.
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
concern:91f6469f0e975e9e (Use an OIDC-capable revision with the undici security fix): v3.4.0-beta is the only OIDC-capable upstream release today; documented the temporary pin and missing undici 6.29.1 bump inline in both workflows for upgrade once OIDC ships in GA.
concern:6621ac08f7be758d (Document OIDC eligibility limits and retain the private-key alternative): stated the private org-owned App prerequisite and retained PIN_APP_PRIVATE_KEY in docs/checks-and-evals.md and remote-pins.md.
concern:8d9320048a2fe048: overview summary of the two resolved findings above.
Disposition for review 6141402177:
concern:7daac5351b4f7d9c / concern:092b4fd2a0fa1479 (Assert vetted OIDC-capable App action revision in tests): declined intentionally — matching /^actions\/create-github-app-token@[0-9a-f]{40}$/ follows this repo's existing action-pin test convention (e.g. .github/scripts/update-pins.test.mjs:962 for actions/checkout) so routine upgrades from the temporary v3.4.0-beta SHA to GA do not break unit tests, while id-token: write and client-id remain asserted in .github/scripts/update-pins.test.mjs:913 and .github/scripts/pin-validation.test.mjs:614.
The reason will be displayed to describe this comment to others. Learn more.
LGTM — OIDC permission scoping, workflow isolation, contract tests, and documentation all check out cleanly:
id-token: write is limited to the two default-branch-only workflows running in environment: pin-automation (update-pins.yml and complete-pin-validation.yml), while validate.yml stays strictly contents: read (now asserted in pin-validation.test.mjs).
Verified actions/create-github-app-token@305e4aec4e2000ce216527e282f0749f47637923 (v3.4.0-beta) falls back to GitHub Actions OIDC when private-key is empty while preserving PIN_APP_PRIVATE_KEY when set. Although v3.4.0-beta predates actions/create-github-app-token#406 (undici6.29.1), @octokit/request uses Node 24's native fetch and @actions/http-client only calls the runner's internal ACTIONS_ID_TOKEN_REQUEST_URL endpoint without custom Agent options; the temporary beta pin and follow-up upgrade are clearly documented inline.
docs/checks-and-evals.md and plugins/marketplace-maintainer/skills/update-remote-pins/references/remote-pins.md accurately note that GitHub App OIDC requires a private App owned by the repository's organization (retaining PIN_APP_PRIVATE_KEY for public or externally owned Apps). (Non-blocking setup note: since both jobs specify environment: pin-automation, the default OIDC sub claim resolves to repo:<owner>/<repo>:environment:pin-automation, so branch/event restrictions rely on pin-automation's branch policy and/or explicit ref/event_name claim conditions in the App's federation policy.)
The reason will be displayed to describe this comment to others. Learn more.
🔵 Needs a closer look
The App-action pin assertions accept any 40-character SHA, allowing a regression to a private-key-only revision to pass tests despite breaking App mode without PIN_APP_PRIVATE_KEY.
No open issues 🎉
1 previously missed issue
In code that hasn't changed since last review
Assert vetted OIDC-capable App action revision in tests
.github/scripts/update-pins.test.mjs:913
Both App-action assertions accept any 40-character SHA, so reverting either workflow to the previous private-key-only revision would pass these tests but break App mode without PIN_APP_PRIVATE_KEY. Add a regression check for the vetted OIDC-capable revision in both workflows; the same gap is in .github/scripts/pin-validation.test.mjs:630.
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
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.
Agent assessment
Self-reported assessment, not an independent review.
Assessed revision:
b398ed94aaf10ced05932e1329f60ccf86d2f2dcnpm run lint, catalog/pin checks, andactionlintall pass.↑ Verified
actions/create-github-app-token@v3.4.0-betafalls back to GitHub Actions OIDC whenprivate-keyis empty.↓ Temporary
v3.4.0-betapin lacksv3.4.0'sundici6.29.1 bump (only OIDC-capable upstream release; documented in workflows for GA upgrade).↓ Live GitHub Actions OIDC token exchange against the App workload federation policy has not yet been observed in a real release run.
Summary
Enable keyless GitHub Actions OIDC (workload federation) for zero-touch pin automation App mode so
github/plugin-marketplace-starterdoes not need to store a long-livedPIN_APP_PRIVATE_KEYsecret:actions/create-github-app-tokenin.github/workflows/update-pins.ymland.github/workflows/complete-pin-validation.ymlto305e4aec4e2000ce216527e282f0749f47637923(v3.4.0-beta), the only OIDC-capable upstream release today (tracked inline to upgrade to GA once OIDC ships onmainwithv3.4.0'sundici6.29.1 bump), while keeping optionalPIN_APP_PRIVATE_KEYsupport.id-token: writetoupdate-pins.ymlandcomplete-pin-validation.yml(both default-branch-only and scoped toenvironment: pin-automation);validate.ymlremains read-only withoutid-token: write.docs/checks-and-evals.mdandplugins/marketplace-maintainer/skills/update-remote-pins/references/remote-pins.md(including the private org-owned App prerequisite for OIDC).Validation
node --test .github/scripts/update-pins.test.mjs .github/scripts/pin-validation.test.mjs— passed (63/63)npm run lint— passed (6/6 skills, 7/7 evals)node .github/scripts/check-local-catalog.mjs— passednode .github/scripts/check-remote-pins.mjs— passedactionlint .github/workflows/update-pins.yml .github/workflows/complete-pin-validation.yml— passed (exit 0)git diff --check— passed