Integrating Snyk Security Analysis Tool into Github 2 #10
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 Security Scan | |
on: | |
pull_request: | |
branches: | |
- f24 | |
workflow_call: | |
defaults: | |
run: | |
shell: bash | |
permissions: | |
checks: write | |
contents: read | |
jobs: | |
snyk: | |
runs-on: ubuntu-latest | |
env: | |
SNYK_TOKEN: ${{ secrets.SNYK_KEY }} | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install Node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
- name: NPM Install | |
uses: bahmutov/npm-install@v1 | |
with: | |
useLockFile: false | |
working-directory: ./install | |
- name: Run Snyk Test | |
run: npx snyk test --severity-threshold=high | |
working-directory: ./install |