Skip to content

Commit

Permalink
feat: snyk (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
JonathanHope authored Dec 6, 2023
1 parent e3331d7 commit 80951fe
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,3 +39,8 @@ jobs:
- name: Build
run: npm run build
shell: nix develop --command bash -e {0}
- name: Vulns
run: snyk auth $SNYK_TOKEN && npm run vulns
shell: nix develop --command bash -e {0}
env:
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
1 change: 1 addition & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
buildInputs = with pkgs;[
nodejs_20
jq
snyk
];
shellHook = ''
export PATH=$PWD/tools:$PATH
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
"build-chrome": "./scripts/build.sh chrome",
"build": "npm run clean && npm run build-firefox && npm run build-chrome",
"storybook": "storybook dev -p 6006",
"vulns": "snyk test",
"test": "tap --node-arg=--require=global-jsdom/register --disable-coverage --allow-empty-coverage run"
},
"dependencies": {
Expand Down

0 comments on commit 80951fe

Please sign in to comment.