Skip to content

ghactions: Trigger snyk on 'pull-request, rather than 'push' #5

ghactions: Trigger snyk on 'pull-request, rather than 'push'

ghactions: Trigger snyk on 'pull-request, rather than 'push' #5

Workflow file for this run

name: Code Scanning with Snyk
on: pull-request
types: [opened, reopened]

Check failure on line 3 in .github/workflows/snyk.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/snyk.yml

Invalid workflow file

You have an error in your yaml syntax on line 3
jobs:
security:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Run Snyk to check for vulnerabilities
uses: snyk/actions/golang@master
continue-on-error: true # To make sure that SARIF upload gets called
env:
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
with:
args: --sarif-file-output=snyk.sarif
- name: Upload result to GitHub Code Scanning
uses: github/codeql-action/upload-sarif@v2
with:
sarif_file: snyk.sarif