ci: harden PAS release environment#22
Merged
Merged
Conversation
There was a problem hiding this comment.
Pull request overview
This PR hardens the release/publishing pipeline by moving npm publishing and GitHub write operations behind a protected GitHub Actions Environment, and by switching release-side writes (commits/tags/releases) to a GitHub App identity (putio-release-bot) instead of the default token.
Changes:
- Documented the protected
releaseEnvironment requirements and where release secrets/vars should live. - Updated the
releaseworkflow job to run in thereleaseEnvironment and to use a GitHub App token for checkout andsemantic-release. - Adjusted the release job tooling setup to use
actions/setup-node+ Corepack +pnpm install.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| CONTRIBUTING.md | Adds release publishing guidance describing the protected release Environment and required secrets/vars. |
| .github/workflows/ci.yml | Moves release publishing behind the release Environment and uses a GitHub App token for release writes. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Comment on lines
76
to
78
| contents: write | ||
| issues: write | ||
| pull-requests: write |
Comment on lines
90
to
+97
| - name: Check out repository | ||
| uses: actions/checkout@v6 | ||
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6 | ||
| with: | ||
| fetch-depth: 0 | ||
| token: ${{ steps.release-bot.outputs.token }} | ||
|
|
||
| - name: Set up Vite+ | ||
| uses: voidzero-dev/setup-vp@v1 | ||
| - name: Set up Node.js | ||
| uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6 |
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.
Summary
Changed
Risks
Verification
Complexity