Harden security across publishing, auth, and input validation#24
Merged
Conversation
- Use ephemeral git -c http.extraheader for token auth instead of rewriting remote URL (prevents token persistence in .git/config on crash) - Add allowCustomCommands root config to gate per-package shell commands from package.json - Validate package names and bump types in bump file parsing - Use --json for npm/pnpm pack output to prevent tarball path injection - Fix changelog formatter path traversal check to resolve symlinks - Add force-push safeguard to reject pushes to main/master branches Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Remove unused log import in config.ts and use Unicode escapes for control character regex in bump-file.ts. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Collaborator
|
The changes in this PR will be included in the next version bump.
|
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This was referenced Apr 21, 2026
Merged
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
git -c http.extraheaderinstead of rewriting the remote URL — prevents token persistence in.git/configif the process crashes mid-push (relevant for self-hosted runners)allowCustomCommandsroot config option so per-packagepublishCommand/buildCommand/checkPublishedinpackage.jsonmust be explicitly allowed by the root config. Commands in.bumpy/_config.jsonpackagesare always trusted.major|minor|patch|none) during bump file parsing--jsonflag for npm/pnpm pack to get deterministic tarball filenames instead of fragile regex parsingrealpathSyncand usepath.relative()check instead of string prefix matchingmain,master, or the current HEAD branchTest plan
bumpy ci releasestill pushes version PR branch correctly withBUMPY_GH_TOKENbumpy publishworks with npm and pnpm pack--jsonoutputpublishCommandthrows withoutallowCustomCommandsin root configallowCustomCommands: trueand glob patterns allow the commands through🤖 Generated with Claude Code