Snyk Code Test with Snyk to HTML #1
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
name: Snyk Code Test with Snyk to HTML | |
on: | |
workflow_dispatch: | |
workflow_call: | |
jobs: | |
code-test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repo | |
uses: actions/checkout@master | |
- name: Install snyk-to-html | |
run: npm install -g snyk-to-html | |
- name: Setup Snyk Action | |
uses: snyk/actions/setup@master | |
- name: Test Code with Snyk | |
run: snyk code test --json | snyk-to-html -o snyk-code-results.html | |
env: | |
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }} |