Skip to content

Commit

Permalink
updating security scanning
Browse files Browse the repository at this point in the history
  • Loading branch information
tompahoward committed Nov 25, 2020
1 parent de9023b commit 8f40c75
Show file tree
Hide file tree
Showing 4 changed files with 2,455 additions and 136 deletions.
24 changes: 18 additions & 6 deletions .github/workflows/build-and-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -129,13 +129,25 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Run Snyk to check for vulnerabilities
uses: snyk/actions/node@master
env:
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
- uses: actions/checkout@v2

- name: Cache NPM dependencies
uses: actions/cache@v1
with:
path: |
~/.npm
node_modules
key: ${{ runner.OS }}-npm-cache-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.OS }}-npm-cache-
- name: Use Node.js 12.x
uses: actions/setup-node@v1
with:
args: "--dev --fail-on=upgradable"
node-version: 12.x
- run: npm config set script-shell $(which bash)
- run: npm ci
- run: npm run security

build:
if: "! contains(toJSON(github.event.commits.*.message), '[skip-ci]')"
Expand Down
4 changes: 4 additions & 0 deletions .snyk
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Snyk (https://snyk.io) policy file, patches or ignores known vulnerabilities.
version: v1.14.1
ignore: {}
patch: {}
Loading

0 comments on commit 8f40c75

Please sign in to comment.