Skip to content

chore(ci): add security workflow with dependency audit, CodeQL, and secret scanning#56

Open
OkeyAmy wants to merge 1 commit into
TestSprite:mainfrom
OkeyAmy:chore/security-ci-pipeline
Open

chore(ci): add security workflow with dependency audit, CodeQL, and secret scanning#56
OkeyAmy wants to merge 1 commit into
TestSprite:mainfrom
OkeyAmy:chore/security-ci-pipeline

Conversation

@OkeyAmy

@OkeyAmy OkeyAmy commented Jun 28, 2026

Copy link
Copy Markdown

Adds a dedicated security CI workflow that runs on every PR and push to main, dev, stg.

Changes

  • .github/workflows/security.yml — new security pipeline (5 jobs, zero external API keys)
  • eslint.security.config.mjs — security-focused ESLint config using eslint-plugin-security
  • eslint.config.mjs — add sandbox/** to ignore list

Security jobs

Job Tool Blocks merge?
Dependency audit npm audit --omit=dev Yes — HIGH/CRITICAL in prod deps
Dependency review GitHub built-in Yes — new vulnerable deps in PR
CodeQL GitHub CodeQL (security-extended) Yes — CWE-22, CWE-918, CWE-73, CWE-116
ESLint security eslint-plugin-security Yes — non-literal fs paths, child_process, ReDoS
Secret scan gitleaks Yes — API keys/tokens in git history

Notes

  • No external API keys required. All jobs use GITHUB_TOKEN (automatic) or run fully offline.
  • Dev dependency vulns (vitest, esbuild) are reported informational-only — they do not block merge since they don't ship to users.
  • eslint.security.config.mjs runs separately from the main lint so security findings surface as their own CI check.

Testing

All locally-runnable steps verified clean before this PR:

  • npm audit --omit=dev --audit-level=high → 0 vulnerabilities
  • npm run lint → 0 errors
  • npm run typecheck → clean
  • npm run build → clean
  • npm test → 1483/1483 pass

… gitignore

Adds a 5-job GitHub Actions security pipeline (dependency audit, dependency
review, CodeQL, ESLint security rules, secret scanning via gitleaks). No
external API keys required — all jobs use GITHUB_TOKEN or npm public registry.

Adds eslint.security.config.mjs for targeted security linting of src/ using
eslint-plugin-security. Updates main eslint config and .gitignore to exclude
the local sandbox directory.
@OkeyAmy OkeyAmy changed the title chore(ci): add security workflow, ESLint security config, and sandbox… chore(ci): add security workflow with dependency audit, CodeQL, and secret scanning Jun 28, 2026
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