Repository navigation
Harden npm release publishing - #1
Conversation
|
Bugbot is not enabled for your account, so this pull request was not reviewed. Enable Bugbot in the Cursor dashboard to get automatic reviews on future PRs. |
|
@codex review |
|
You are seeing this message because GitHub Code Scanning has recently been set up for this repository, or this pull request contains the workflow file for the Code Scanning tool. What Enabling Code Scanning Means:
For more information about GitHub Code Scanning, check out the documentation. |
There was a problem hiding this comment.
Pull request overview
This PR hardens @pegma/audit’s npm publishing by moving to a signed-annotated-tag release flow, separating preparation from the minimal OIDC-enabled publish job, and adding verification/regression coverage so release artifacts are reproducible and retry-safe.
Changes:
- Add a release preparation/publish script (
scripts/release-packages.mjs) with strict repository/tag validation and tarball integrity verification. - Refactor the Publish workflow into unprivileged “prepare” + OIDC-scoped “publish” jobs, and add CodeQL scanning.
- Expand test/TS configs to include root-level release tests, plus release operations documentation updates.
Reviewed changes
Copilot reviewed 12 out of 13 changed files in this pull request and generated 4 comments.
Show a summary per file
| File | Description |
|---|---|
vitest.config.ts |
Expands Vitest discovery to include root tests/**/*.test.ts. |
tsconfig.test.json |
Includes root test files in TypeScript test compilation. |
tests/release-packages.test.ts |
Adds regression tests for release metadata validation, tag authentication, and retry-safe publication decisions. |
scripts/release-packages.mjs |
Implements validated “check/pack/publish” release pipeline with tarball hashing and registry integrity checks. |
scripts/release-packages.d.mts |
Adds TypeScript declarations for the release script exports. |
README.md |
Updates published-status wording and links to the release runbook. |
package.json |
Pins packageManager and adds release:* scripts. |
docs/RELEASING.md |
Adds a signed-tag + trusted publishing release operations runbook. |
docs/PROJECT_PLAN.md |
Updates plan/status to reflect 0.1.0 already published and future trusted publishing. |
AGENTS.md |
Updates agent guidance to match the signed-tag trusted-publisher release procedure. |
.gitignore |
Ignores .release/ artifacts generated by release preparation. |
.github/workflows/publish.yml |
Splits prepare vs publish jobs; enforces signed tag + artifact-based publish with minimal OIDC surface area. |
.github/workflows/codeql.yml |
Adds CodeQL workflow for JS/TS analysis. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
@codex review |
|
@codex review |
|
Codex Review: Didn't find any major issues. Delightful! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
Summary
origin/main@pegma/audit@0.1.0is already on npmValidation
npm ci,npm run format:check,npm run check,npm test,npm run release:checkgit diff --checkExternal npm/GitHub publisher, environment, signer-variable, and tag-ruleset settings are documented but intentionally not mutated.