chore(release): use GitHub App token instead of PAT#200
Conversation
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughReplaces a static Changes
Sequence Diagram(s)sequenceDiagram
autonumber
actor Maintainer
participant Secrets as "Repo Secrets"
participant TokenAction as "create-github-app-token@v2\n(Generate App Token)"
participant Workflow as "GitHub Actions Workflow"
participant Checkout as "actions/checkout"
participant SemanticRelease as "python-semantic-release / publish-action"
participant GitHub as "GitHub API (Installation Token)"
Maintainer->>Secrets: Provide SEMANTIC_RELEASE_APP_ID & PRIVATE_KEY
Secrets->>TokenAction: supply credentials
TokenAction->>GitHub: request installation token
GitHub-->>TokenAction: return installation token (steps.app-token.outputs.token)
TokenAction-->>Workflow: expose token to subsequent steps
Workflow->>Checkout: pass token to checkout step
Workflow->>SemanticRelease: pass token to release/publish steps
Checkout->>GitHub: perform repo checkout using token
SemanticRelease->>GitHub: perform release/publish using token
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Replace RELEASE_TOKEN PAT with dedicated GitHub App (diffuse-semantic-release) for pushing version commits and tags. This allows removing admin bypass from the branch ruleset so only the app can push directly to main.
45a0543 to
fd3e07a
Compare
Summary
RELEASE_TOKENPAT with dedicateddiffuse-semantic-releaseGitHub App viaactions/create-github-app-tokenTest plan
RELEASE_TOKENsecret after confirmingSummary by CodeRabbit