Skip to content

test: planted findings for the security workflows (do not merge) - #96

Closed
bryanfawcett wants to merge 3 commits into
stagingfrom
claude/sec94-selftest-tmp
Closed

bryanfawcett wants to merge 3 commits into
stagingfrom
claude/sec94-selftest-tmp

Conversation

@bryanfawcett

Copy link
Copy Markdown
Member

Runtime test for #95: planted Semgrep findings (TS + Astro frontmatter) and a vulnerable lodash lockfile. Both checks must FAIL here. Closed without merging.

🤖 Generated with Claude Code

bryanfawcett and others added 3 commits October 7, 2026 21:06
Two workflows for the enterprise rulesets in #94, each run
on every pull request into the default branch and staging:

- dependency-review.yml: actions/dependency-review-action (fails on new
  high or critical advisories) plus npm, pnpm, cargo and pip-audit runs
  on the lockfiles a change touches. Passes when nothing changed.
- reusable-semgrep.yml: the open-source Semgrep CLI (image pinned by
  digest, no token, metrics off), community packs for TypeScript,
  JavaScript, React, Python, Rust, secrets and the OWASP Top 10,
  diff-aware against the base commit, with Astro frontmatter and scripts
  extracted so the TypeScript rules read them.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GHjaH1Vt2dVLWU68iz8tFq
Signed-off-by: Bryan Fawcett <bryan@nyuchi.com>
Review findings on #95:
- run npm, pnpm and cargo audit on copies of the lockfile in an empty
  directory, with the registry on the command line, so a pull request's
  .npmrc, .pnpmfile.cjs or .cargo/audit.toml can neither run code nor
  silence the audit;
- resolve ranged requirements files with uv pip compile --no-build, fall
  back to the exact pins, and warn rather than fail when nothing can be
  pinned; drop git and URL references before pip-audit;
- scan Astro extracts in a scratch git repo holding the base and head
  versions, with Semgrep's baseline, so only new findings count;
- show Semgrep's scan summary in the log.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GHjaH1Vt2dVLWU68iz8tFq
Signed-off-by: Bryan Fawcett <bryan@nyuchi.com>
Signed-off-by: Bryan Fawcett <bryan@nyuchi.com>
@bryanfawcett
bryanfawcett force-pushed the claude/sec94-selftest-tmp branch from 3e52ce4 to dce7bcc Compare October 7, 2026 13:15
@bryanfawcett

Copy link
Copy Markdown
Member Author

Runtime test for #95 done (all three checks failed on the planted findings, as intended). Closing without merging.

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.

1 participant