-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
484e6c0
commit f6fb8be
Showing
1 changed file
with
15 additions
and
8 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,20 @@ | ||
name: Example workflow using Snyk | ||
on: push | ||
jobs: | ||
security: | ||
snyk_scan: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@master | ||
- name: Run Snyk to check for vulnerabilities | ||
uses: snyk/actions/node2@master | ||
env: | ||
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }} | ||
with: | ||
command: monitor | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
|
||
- name: Install Snyk CLI | ||
run: | | ||
npm install -g snyk | ||
- name: Authenticate Snyk CLI | ||
run: | | ||
snyk auth ${{ secrets.SNYK_TOKEN }} | ||
- name: Run Snyk to test project dependencies | ||
run: | | ||
snyk test |