Skip to content

ci: add Snyk dependency and code scanning - #38

Merged
michaelsanford merged 3 commits into
mainfrom
ci/add-snyk-scanning
Aug 27, 2026
Merged

michaelsanford merged 3 commits into
mainfrom
ci/add-snyk-scanning

Conversation

@michaelsanford

Copy link
Copy Markdown
Owner

Adds .github/workflows/snyk.yml, running Snyk Open Source (dependency CVEs) and
Snyk Code (SAST) on push, pull request, and weekly. SARIF is published to the
Code scanning tab; pushes to main also snapshot the dependency tree to snyk.io.

Adds scripts/Invoke-SnykScan.ps1 so the same scans can be run locally.

Adds `.github/workflows/snyk.yml`, running Snyk Open Source (dependency CVEs) and
Snyk Code (SAST) on push, pull request, and weekly. SARIF is published to the
Code scanning tab; pushes to `main` also snapshot the dependency tree to snyk.io.

Adds `scripts/Invoke-SnykScan.ps1` so the same scans can be run locally.
@github-actions

github-actions Bot commented Aug 27, 2026 •

Copy link
Copy Markdown

Coverage Report

Status Category Percentage Covered / Total
🔵 Lines 80.07% 1238 / 1546
🔵 Statements 78.74% 1326 / 1684
🔵 Functions 69.68% 285 / 409
🔵 Branches 71.11% 1135 / 1596
File CoverageNo changed files found.
Generated in workflow #106 for commit bba82d2 by the Vitest Coverage Report Action

Exit code 2 means the scan did not run (typically a missing SNYK_TOKEN); reporting it as a high-severity finding sent the reader to the wrong place.
@github-advanced-security

Copy link
Copy Markdown

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:

  • The 'Security' tab will display more code scanning analysis results (e.g., for the default branch).
  • Depending on your configuration and choice of analysis tool, future pull requests will be annotated with code scanning analysis results.
  • You will be able to see the analysis results for the pull request's branch on this overview once the scans have completed and the checks have passed.

For more information about GitHub Code Scanning, check out the documentation.

Suppresses PSAvoidUsingWriteHost with a justification -- colourised console output is the point of the script -- and drops the -Monitor switch from repos with no Snyk Open Source step, where it was declared but unused.
@michaelsanford
michaelsanford merged commit 986a6ed into main Aug 27, 2026
9 of 10 checks passed
@michaelsanford
michaelsanford deleted the ci/add-snyk-scanning branch August 27, 2026 22:11
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