Repository navigation
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #52 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 7 7
Lines 80 107 +27
Branches 11 17 +6
=========================================
+ Hits 80 107 +27 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Gumball12
marked this pull request as ready for review
October 12, 2026 01:15
This branch has not been 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.
Motivation
release.createdevent and checked out the release tag implicitly, allowing an attacker with tag/release permissions to publish arbitrary, unreviewed code withNPM_TOKEN.maincan be published.Description
.github/workflows/publish.yamlto trigger onrelease.publishedinstead ofrelease.createdto reduce attack surface for premature releases.ref: refs/tags/${{ github.event.release.tag_name }}to theactions/checkoutstep so the job ref is deliberate and auditable.git fetch --no-tags origin main, verifiesgit merge-base --is-ancestor "$GITHUB_SHA" origin/main, and enforces the release tag equalsv<packages/text-vide/package.json version>usingnode -p.lint,test,build, andnpm publishsteps so the publish flow remains functionally the same when validations pass.Testing
pnpm run lintin the repository and it completed successfully.pnpm run testandpnpm run buildwere not executed here but remain unchanged in the workflow.Codex Task