🔧 Snyk Container has been added #1
Workflow file for this run
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 Vulnerability Scanner | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
permissions: | |
contents: read | |
jobs: | |
snyk: | |
permissions: | |
contents: read | |
security-events: write | |
actions: read | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository ${{ github.repository }} | |
uses: actions/checkout@v4 | |
- name: Setup Snyk CLI to check security issues | |
uses: snyk/actions/setup@master | |
env: | |
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }} | |
- name: Authenticate to Snyk API | |
env: | |
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }} | |
run: | | |
snyk config set api=$SNYK_TOKEN | |
snyk auth $SNYK_TOKEN | |
- name: Snyk code get sarif | |
run: snyk code test --sarif-file-output=snyk-code.sarif | |
- name: Upload sarif result | |
uses: github/codeql-action/upload-sarif@v3 | |
with: | |
sarif_file: snyk-code.sarif |