Skip to content

Security scan: resolve findings (2026-07-29) - #2

Merged
FlyOverCoderKY merged 2 commits into
mainfrom
claude/security-scan-fixes
Jul 30, 2026
Merged

FlyOverCoderKY merged 2 commits into
mainfrom
claude/security-scan-fixes

Conversation

@FlyOverCoderKY

Copy link
Copy Markdown
Contributor

Reviews every finding in docs/securityscan.md against the code, fixes the one
that had something to fix, and records the reasoning that ruled out the other
three. Each item in the report is now marked resolved or disputed.

Dispositions

FINDING-001 — Local stale release artifacts in .release/ — disputed.
The artifacts are untracked and .gitignored, so they are absent from any clean
checkout and from CI. verifyPreparedManifest rejects the stale schema (it
requires a top-level package object and releaseTag === "v" + version) and
additionally rebinds the manifest to the current HEAD commit. There is no
repository change to make.

FINDING-002 — Release job installs npm pinned by version only — disputed.
The step adds no trust beyond what the job already accepts: the same job runs
npm ci for the whole dev tree and takes its Node toolchain from setup-node,
so registry.npmjs.org is already in the job's trust root and pinning npm's
tarball hash would not narrow it. The version is pinned twice — workflow line 57
and REVIEWED_NPM_VERSION in scripts/release-packages.mjs:21, which fails the
release unless the root manifest pins npm@11.18.0 — so silent drift is
impossible, and the preparation job holds no id-token: write.

FINDING-003 — CI runs npm ci on untrusted pull-request code — disputed.
There is nothing for a malicious install script to reach. The trigger is
pull_request, not pull_request_target, so a fork PR runs with a read-only
token from the fork's context; the workflow declares only contents: read,
references no secrets, and has no id-token: write. Publishing is reachable
only from a release: published event on a protected signed tag.

FINDING-004 — README claims the package is unpublished — fixed.
Both READMEs' [!IMPORTANT] note said "its packages are not published" while
@pegma/spine@0.1.1 has been on npm since the last release. npm ships
packages/spine/README.md inside the tarball regardless of the files list, so
consumers were reading stale trust guidance. The note now states that the
package is published, keeping the unstable-API and not-production-ready
warnings.

Release

packages/spine/package.json goes to 0.1.2 with package-lock.json synced,
so the corrected README reaches consumers. No public API changed — the diff is
documentation, the report, and the version bump.

npm run format:check, npm run check, npm test, and npm run release:check
all pass locally.

🤖 Generated with Claude Code

The root and package READMEs told consumers that Pegma's packages are not
published, but `@pegma/spine@0.1.1` has been on npm since the last release.
Stale trust guidance in the shipped README is the one security-scan finding
with something to fix; the other three are annotated as disputed in
docs/securityscan.md with the reasoning that ruled each one out.

Bumps the package to 0.1.2 so the corrected README reaches consumers.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings July 30, 2026 00:21
@cursor

cursor Bot commented Jul 30, 2026

Copy link
Copy Markdown

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.

@github-actions

github-actions Bot commented Jul 30, 2026 •

Copy link
Copy Markdown

Grok Grok Build Review — no issues

Review complete. Nothing actionable to report.

This pull request is correct and ready to merge. FINDING-002 is closed with a content-addressed npm bootstrap in the unprivileged prepare job, FINDING-004 is corrected in both READMEs and shipped via a documentation-only 0.1.2 bump, and the disputes of FINDING-001 and FINDING-003 match the actual ignore rules, manifest validation, and CI permission model. The regression test locks the digest-before-install ordering; no residual defect in the changed paths requires a follow-up.

Reviewed commit e6ad86d · workflow run

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates published-package messaging and records the outcomes of a security scan review, ensuring npm consumers see accurate maturity/publishing guidance while keeping the code/API unchanged.

Changes:

  • Update both READMEs’ [!IMPORTANT] disclaimer to reflect that @pegma/spine is published on npm while still warning about unstable 0.x API / not production-ready status.
  • Bump @pegma/spine version to 0.1.2 and sync the root lockfile entry.
  • Mark each security scan finding as resolved or disputed and document the reasoning in docs/securityscan.md.

Reviewed changes

Copilot reviewed 4 out of 5 changed files in this pull request and generated no comments.

Show a summary per file
File Description
README.md Updates repo-level disclaimer to reflect that @pegma/spine is published.
packages/spine/README.md Updates the package README shipped to consumers with accurate publish status.
packages/spine/package.json Bumps package version to 0.1.2.
package-lock.json Syncs lockfile entry for packages/spine to 0.1.2.
docs/securityscan.md Records per-finding dispositions (resolved/disputed) and adds a disposition review note.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 0027b1dd27

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

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".

Comment thread docs/securityscan.md Resolved
`npm install --global npm@11.18.0` trusted registry-provided metadata,
while every other install in the preparation job is constrained by
package-lock.json integrity hashes. That left the bootstrap as the one
fetch a compromised registry could substitute undetected, and the
substituted npm is what then runs `npm ci` and packs the artifact.

The step now downloads the tarball, checks it against a committed
SHA-256 digest, installs from the verified file, and confirms the active
npm is the reviewed version. FINDING-002 is re-marked resolved rather
than disputed.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@FlyOverCoderKY

Copy link
Copy Markdown
Contributor Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Bravo.

Reviewed commit: e6ad86d77c

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

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".

@FlyOverCoderKY
FlyOverCoderKY merged commit 838aa14 into main Jul 30, 2026
5 checks passed
@FlyOverCoderKY
FlyOverCoderKY deleted the claude/security-scan-fixes branch July 30, 2026 00:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants