Add Snyk security scanning#3
Open
mayashavin wants to merge 4 commits into
Open
Conversation
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Contributor
There was a problem hiding this comment.
Pull request overview
Adds a GitHub Actions workflow to run Snyk vulnerability scanning on pull requests targeting main, intended to fail builds only for high-severity issues.
Changes:
- Introduces
.github/workflows/snyk.ymlto run Snyk on PRs tomain - Configures Snyk to use
--severity-threshold=high - Requires
SNYK_TOKENto be provided via GitHub Actions secrets
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Comment on lines
+11
to
+13
| - uses: actions/checkout@v4 | ||
| - uses: snyk/actions/node@master | ||
| env: |
Comment on lines
+3
to
+16
| on: | ||
| pull_request: | ||
| branches: [main] | ||
|
|
||
| jobs: | ||
| security: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| - uses: snyk/actions/node@master | ||
| env: | ||
| SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }} | ||
| with: | ||
| args: --severity-threshold=high |
Comment on lines
+10
to
+16
| steps: | ||
| - uses: actions/checkout@v4 | ||
| - uses: snyk/actions/node@master | ||
| env: | ||
| SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }} | ||
| with: | ||
| args: --severity-threshold=high |
Owner
Author
|
@copilot review the comments and fix if applicable |
Addressed in commits dce4057 and cea8fd2. The Snyk action is now pinned to a commit SHA, the workflow matches CI setup ( |
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.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
--severity-threshold=high)Setup required
SNYK_TOKENto the repo's GitHub Actions secretsTest plan
SNYK_TOKENsecret and verify the workflow runs on a PR🤖 Generated with Claude Code