Skip to content

ci(snyk): record main's tested dependencies with snyk monitor - #1862

Merged
magic-peach merged 2 commits into
mainfrom
ci/snyk-monitor
Nov 6, 2026
Merged

magic-peach merged 2 commits into
mainfrom
ci/snyk-monitor

Conversation

@magic-peach

Copy link
Copy Markdown
Collaborator

The Snyk workflow's snyk test only passes or fails; nothing it tests reaches the Snyk dashboard. The GitHub integration's own package.json project reads version ranges, not what's installed.

Changes

  • Monitor step: a new step in snyk.yml runs snyk monitor on the same generated lockfile, on pushes to main, the weekly run and manual runs. It records the tested dependencies as the Snyk project reframe-oss/reframe-ci, so the dashboard shows those versions and Snyk emails when a new advisory affects them.
    • Pull requests are only tested, never recorded.
    • The step runs even when the test step finds issues (success() || failure()), so the snapshot stays current. The existing alert step is unchanged.
  • Docs: docs/SECURITY-PIPELINE.md gets the monitor step and the checks main now requires.

Required checks on main

I already updated the main-protection ruleset through the API; it isn't part of this diff. The required checks are now build, Dependency scan, Dependency policy (bun.lock), Secret scan (gitleaks), Workflow lint (actionlint) and security/snyk (akankshatrehun). Snyk reports security/snyk on fork PRs too, and Dependency scan is skipped on them, which counts as passing.

actionlint passes.

On pushes to main, the weekly run and manual runs, the Snyk workflow now
records what it tested as the Snyk project reframe-oss/reframe-ci, so the
dashboard tracks those versions and Snyk alerts on new advisories for
them. Pull requests are only tested. Docs list the checks main now
requires.
@netlify

netlify Bot commented Nov 6, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for reframe-os ready!

Name Link
🔨 Latest commit 2b6cf15
🔍 Latest deploy log https://app.netlify.com/projects/reframe-os/deploys/6aeddc771d635282a0172d21
😎 Deploy Preview https://deploy-preview-1862--reframe-os.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

snyk/actions/node@master ran with SNYK_TOKEN from whatever was last pushed
to that branch. Pinning the action's commit would not be enough: the
action is a wrapper that runs the floating snyk/snyk:node image. Both
steps now run that image by digest, with the arguments and environment
the action's v1.0.0 action.yml passes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@magic-peach
magic-peach merged commit 047d18e into main Nov 6, 2026
23 of 24 checks passed
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