Repository navigation
fix(ci): require app tokens in downstream release templates - #401
Merged
Merged
Conversation
There was a problem hiding this comment.
Pull request overview
This PR hardens the downstream workspace release workflow templates to avoid protected-branch/ruleset failures by removing github.token usage on write paths and requiring explicit GitHub App tokens (Commit App vs Release App) for different classes of operations.
Changes:
- Added explicit Commit/Release GitHub App token generation and routed write operations to the appropriate app token across downstream release workflows.
- Removed
github.tokenfallbacks in auth resolution and write-path steps (commit-action, PR operations, etc.). - Documented the downstream “token model” and required secrets, and updated changelogs accordingly.
Reviewed changes
Copilot reviewed 9 out of 9 changed files in this pull request and generated 6 comments.
Show a summary per file
| File | Description |
|---|---|
| docs/DOWNSTREAM_RELEASE.md | Documents required app secrets and the split Commit/Release token responsibilities. |
| docs/CROSS_REPO_RELEASE_GATE.md | Documents gate contract expectations for downstream token usage on write paths. |
| CHANGELOG.md | Adds an Unreleased entry describing the downstream token requirement change. |
| assets/workspace/.devcontainer/CHANGELOG.md | Mirrors the root changelog entry in the workspace template. |
| assets/workspace/.github/workflows/prepare-release.yml | Generates Commit/Release app tokens and routes protected writes to Commit App token; PR ops to Release App token. |
| assets/workspace/.github/workflows/release-core.yml | Removes github.token fallback, generates app tokens, and uses Commit App token for protected branch writes. |
| assets/workspace/.github/workflows/release-publish.yml | Removes github.token fallback and uses explicit Release App token as the fallback auth token. |
| assets/workspace/.github/workflows/release.yml | Uses explicit Release App token for rollback issue creation. |
| assets/workspace/.github/workflows/sync-issues.yml | Removes github.token fallback from cache deletion and commit-action steps, using app token output instead. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
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.
Description
Hardens downstream release workflow templates to avoid protected-branch failures by requiring explicit Commit/Release app tokens instead of falling back to
github.tokenon write paths.Type of Change
fix-- Bug fixfeat-- New featuredocs-- Documentation onlychore-- Maintenance task (deps, config, etc.)refactor-- Code restructuring (no behavior change)test-- Adding or updating testsci-- CI/CD pipeline changesbuild-- Build system or dependency changesrevert-- Reverts a previous commitstyle-- Code style (formatting, whitespace)Modifiers
!) -- This change breaks backward compatibilityChanges Made
assets/workspace/.github/workflows/prepare-release.ymlassets/workspace/.github/workflows/release-core.ymlgithub.tokenfallback in auth resolutioncommit-actionwritesassets/workspace/.github/workflows/release-publish.ymlgithub.tokenfallback in auth resolutionassets/workspace/.github/workflows/release.ymlassets/workspace/.github/workflows/sync-issues.ymlgithub.tokenfallback from cache deletion and commit-action stepsdocs/DOWNSTREAM_RELEASE.mddocs/CROSS_REPO_RELEASE_GATE.mdCHANGELOG.mdassets/workspace/.devcontainer/CHANGELOG.mdChangelog Entry
Changed
assets/workspace/.github/workflows/prepare-release.yml,release-core.yml,release-publish.yml,release.yml, andsync-issues.ymlto removegithub.tokenfallback from protected write operationsdocs/DOWNSTREAM_RELEASE.mdanddocs/CROSS_REPO_RELEASE_GATE.mdTesting
just test)Manual Testing Details
github.tokenusages remain inassets/workspace/.github/workflows/*.yml.origin/release/0.3.1and has no merge conflicts.Checklist
docs/templates/, then runjust docs)CHANGELOG.mdin the[Unreleased]section (and pasted the entry above)Additional Notes
Assumes downstream repositories provide both
COMMIT_APP_*andRELEASE_APP_*secrets, matching the documented gate contract.Refs: #400