Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 33 additions & 0 deletions .github/workflows/snyk.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Snyk Security Scan

on:
pull_request:
push:
branches:
- main

jobs:
snyk:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v4

- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 18

- name: Install Snyk CLI
run: npm install -g snyk

- name: Authenticate Snyk
run: snyk auth ${{ secrets.SNYK_TOKEN }}

- name: Run Snyk Test
if: github.ref != 'refs/heads/main'
run: snyk test --severity-threshold=high

- name: Run Snyk Monitor
if: github.ref == 'refs/heads/main'
run: snyk monitor
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# Goof - Snyk's vulnerable demo app
Demo change
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bug: Unintended Demo Content in README

The "Demo change" line in README.md appears to be temporary demo or test content accidentally committed. It breaks the README's formatting by inserting between the title and badge, serves no documentation purpose, and the PR title "Demo branch" reinforces its temporary nature.

Fix in Cursor Fix in Web

[![Known Vulnerabilities](https://snyk.io/test/github/snyk/goof/badge.svg?style=flat-square)](https://snyk.io/test/github/snyk/goof)

A vulnerable Node.js demo application, based on the [Dreamers Lab tutorial](http://dreamerslab.com/blog/en/write-a-todo-list-with-express-and-mongodb/).
Expand Down