feat(ci): GitHub security pipeline (OWASP LLM Top 10 + secrets + LaTeX injection) - #19
Merged
Merged
Conversation
hashFiles() is not available in job-level if conditions — only step-level. Replace with a checkout + bash file-existence check that sets a step output, then gate the remaining npm-audit steps on that output. Also add the required glob pattern to the step-level hashFiles call in the semgrep job. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
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. |
Two rules had patterns semgrep cannot parse: - llm08-child-process-exec-dynamic: "..." inside a string literal is not valid semgrep ellipsis syntax — remove pattern-not, flag all exec() calls - llm02-dangerous-set-inner-html: standalone JSX attribute pattern is unreliable to parse — switch to pattern-regex on generic language Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
v3 is deprecated in December 2026. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
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
.github/workflows/security.yml— 5-job security pipeline triggered on every PR (open, synchronize, reopen).github/semgrep/llm-owasp.yaml— custom Semgrep rules for OWASP LLM Top 10 risks specific to a Claude Code pluginJobs
npm auditresumes/web-builder(skips gracefully if not yet committed)grep\write18andshell_escapein.textemplates (arbitrary shell execution)git ls-filesPERSONAL_PROFILE.md,.backup.files, or compiled resumes are accidentally trackedOWASP LLM Top 10 custom rules
innerHTML =,document.write,dangerouslySetInnerHTMLpreinstall/postinstallhooks inpackage.jsoneval(),new Function(), dynamicchild_process.execTest plan
GITLEAKS_LICENSEsecret can be left unset (public repo)resumes/web-buildernot yet committed)\write18in templates)🤖 Generated with Claude Code