Repository navigation
fix(ci): split sync workflow auth between commit and release apps - #59
Conversation
There was a problem hiding this comment.
Pull request overview
This PR hardens the sync-main-to-dev.yml GitHub Actions workflow by splitting authentication into two GitHub App tokens, separating least-privilege git/ref operations from broader PR/label operations.
Changes:
- Introduces separate GitHub App tokens (
COMMIT_APP_*andRELEASE_APP_*) in the sync workflow and routes steps to the appropriate token. - Updates workflow header documentation to describe the token split.
- Updates the Unreleased changelog entry for #52 to record the auth-token separation.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
.github/workflows/sync-main-to-dev.yml |
Splits GitHub App auth into commit vs release tokens and re-wires checkout / gh CLI operations accordingly. |
CHANGELOG.md |
Records the token-responsibility split in the Unreleased notes for #52. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 2 out of 2 changed files in this pull request and generated no new comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
- Replaced the previous secrets for the GitHub App ID and private key in the sync-issues workflow with new ones to enhance security and maintain functionality. - Updated CHANGELOG
|
@gerchowl reminder |
Description
This PR finalizes the branch-protection-safe sync flow by tightening auth boundaries and workflow behavior across both sync workflows.
It separates GitHub App responsibilities (commit/ref operations vs PR/label operations), updates issue-sync auth to the commit app, and ensures manual sync output directory input is respected.
Type of Change
feat-- New featurefix-- Bug fixdocs-- 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
.github/workflows/sync-main-to-dev.ymlCOMMIT_APP_*(checkout/git refs) andRELEASE_APP_*(PR/labels).github/workflows/sync-issues.ymlCOMMIT_APP_ID/COMMIT_APP_PRIVATE_KEYworkflow_dispatchoutput-dirinput through to the action withdocsfallbackCHANGELOG.mdUnreleasednotes for issue [BUG] Post-Release sync push to dev rejected by branch protection #52 to capture token split and sync-issues workflow updatesChangelog Entry
Changed
post-release.ymlworkflow; addsync-main-to-dev.ymlthat opens a PR to syncmainintodev, satisfying branch protection on both branchesorigin/mainororigin/devis missing instead of silently treating branches as up to dateworkflow_dispatchhyphenated input access and conflict path robustness (issues: write, safer conflict label handling, clearer manual resolution commands)syncjob and tightening existing-sync-PR detection (search + explicit list limit)COMMIT_APP_*for checkout/ref operations andRELEASE_APP_*for PR/label operations requiring broader scopesRELEASE_APP_*only after re-check confirms sync work remains, reducing unnecessary broader-scope token issuancesync-issues.ymlto useCOMMIT_APP_ID/COMMIT_APP_PRIVATE_KEYfor both checkout token generation and action app auth inputsworkflow_dispatchoutput-dirinput in the action call, with'docs'as the default fallbackTesting
npm test) — 95/95 passedprepare_changelog.py validate)Checklist
CHANGELOG.mdin the[Unreleased]section (and pasted the entry above)Additional Notes
Post-merge validation on
mainshould still confirm no-op early exit and clean no-conflict PR creation paths.Refs: #52