Skip to content

feat: add paths option to CodeQL action and security-scan workflow#102

Draft
Mrtenz wants to merge 2 commits into
mainfrom
mrtenz/codeql-paths-option
Draft

feat: add paths option to CodeQL action and security-scan workflow#102
Mrtenz wants to merge 2 commits into
mainfrom
mrtenz/codeql-paths-option

Conversation

@Mrtenz

@Mrtenz Mrtenz commented Jul 14, 2026

Copy link
Copy Markdown
Member

Summary

  • Adds an optional paths input to packages/codeql-action (newline-delimited). When set, CodeQL restricts analysis to only those paths — the complement of the existing paths-ignore option.
  • Adds the same paths input to .github/workflows/security-scan.yml and forwards it through to the codeql-action step, so callers can use it end-to-end.
  • Fixes the paths_ignored input description, which said "Comma delimited" but the implementation splits on newlines.

Test plan

  • Existing tests pass (NODE_OPTIONS=--experimental-vm-modules npx jest)
  • Verify a scan with paths: src/ only analyses files under src/

Mrtenz added 2 commits July 14, 2026 13:41
Adds an optional `paths` input (newline-delimited) that maps to the
CodeQL `paths:` config option, restricting analysis to only the listed
paths. Mirrors the existing `paths_ignored` input. Also corrects the
`paths_ignored` description from "Comma delimited" to "Newline-delimited"
to match the actual parsing behaviour.
Adds a `paths` workflow_call input to security-scan.yml and forwards it
to the codeql-action step, so callers can restrict CodeQL analysis to
specific paths end-to-end.
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