Repository navigation
Conversation
Co-Authored-By: Claude <svc-devxp-claude@slack-corp.com>
|
Draft
3 tasks done
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #731 +/- ##
=======================================
Coverage 99.86% 99.86%
=======================================
Files 8 8
Lines 732 732
=======================================
Hits 731 731
Misses 1 1 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
# Conflicts: # .github/workflows/release.yml
Co-Authored-By: Claude <svc-devxp-claude@slack-corp.com>
Co-Authored-By: Claude <svc-devxp-claude@slack-corp.com>
This branch was successfully deployed
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
This pull request creates the release pull request with a GitHub App token, so its checks start without a maintainer approving each run, and keeps that token out of every job that runs npm.
changelogjob holds no write token now. It installs withnpm ci --ignore-scripts, runsnpm run versionwithout pushing, and uploads what changed as aversion.patchartifact. The version title from the "Decide next version" step reaches it as a job output. ItsGITHUB_TOKENdrops tocontents: read, and its checkout no longer persists credentials.release-prjob runs no npm and no repository code, and it's the only job that mints the app token, scoped to this repository withcontentsandpull-requestswrite. It checks out withpersist-credentials: false, downloads the patch, refuses it if it holds anything but regular files, and runschangesets/actionwithversion-script: git apply …. The action commits the same changes and opens or updates the draft release pull request with the same title and body as before. With a version script set and nonode_modules, it never loads repository code.release-prreadsGH_APP_CLIENT_IDandGH_APP_PRIVATE_KEYfrom a newrelease-prenvironment limited tomain, with no required reviewers, so pushes tomaindon't wait on anyone and thepublishenvironment stays as it is. The job runs only frommain, so a dispatch from another branch no longer opens a release pull request for that branch. Release commits are now authored by the app instead ofgithub-actions[bot].github-actions[bot]wait inaction_requireduntil a maintainer approves them: 12 of the last 30 runs onchangeset-release/mainwaited.The
changelogjob can no longer push, sonpm run versionhas no token that could move thevXtags, which slackapi/slack-health-score#254 tracked. The same change is in slackapi/slack-health-score#259 so both actions release the same way.Running the
changelogsteps against a test changeset and applying the patch to a clean checkout of the same commit gave an identical tree (checked in node-slack-sdk and manifest-schema), and a patch that adds a symlink fails the check.zizmor .githubreports no new findings. This stays a draft until therelease-prenvironment and its secrets are saved.Requirements
🤖 Generated with Claude Code