ci(auth): least-privilege app identities (auth refactor)#16
Merged
Conversation
- dependabot auto-merge caller -> automerge app - release.yml: mint the release app for the Create GitHub Release step only; keyless OIDC attestation unchanged Part of modeled-information-format/.github#37
Contributor
There was a problem hiding this comment.
Pull request overview
Refactors GitHub Actions authentication in this repo’s CI to use least-privilege GitHub App identities, aligning the release publishing and Dependabot automerge flows with the app-splitting plan referenced in issue #15 / modeled-information-format/.github#37.
Changes:
- Updates
release.ymlto mint a dedicatedreleaseGitHub App token and use it specifically for creating the GitHub Release. - Updates
dependabot-automerge.ymlto pass theAUTOMERGE_CLIENT_APP_PRIVATE_KEYsecret to the org reusable automerge workflow.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| .github/workflows/release.yml | Adds a “mint GitHub App token” step and switches the release creation step to use that token. |
| .github/workflows/dependabot-automerge.yml | Switches the reusable workflow caller secret from the CI app key to the automerge app key. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
The Create GitHub Release step now uses the release App token; GITHUB_TOKEN no longer needs contents:write. Part of modeled-information-format/.github#37
…n in expression)
Removes any ambiguity in ${{ steps.release_token.outputs.token }}.
Part of modeled-information-format/.github#37
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.
Splits this repo's workflow auth onto the least-privilege apps (epic modeled-information-format/.github#37).
dependabot-automerge.ymlcaller ->automergeapp.release.ymlmints thereleaseapp for the Create GitHub Release step only; keyless OIDC attestation untouched.(Catalog auth is handled in the
.githubhub PR #39; wiring the scorecard caller to theciapp folds into the gate-suite standardization under #37.)Draft until the apps + their variables/secrets are provisioned.
Closes #15
Part of modeled-information-format/.github#37