Skip to content

🤖 CI: Re-enable Snyk code scans for any pushes to the main branches #34

🤖 CI: Re-enable Snyk code scans for any pushes to the main branches

🤖 CI: Re-enable Snyk code scans for any pushes to the main branches #34

Workflow file for this run

name: Snyk Vulnerability Scan
on:
push:
branches:
- master
- main
- development
- release/**
workflow_dispatch:
# Reusable workflow : Usually called by a `snapshot` workflow
workflow_call:
jobs:
scan:
name: Run Vulnerability Scan with Snyk
runs-on: ubuntu-latest
if: "!contains(github.event.head_commit.message, '[ci skip]')"
steps:
- uses: actions/checkout@master
- name: Run Snyk to check for vulnerabilities
uses: snyk/actions/maven-3-jdk-11@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@v3
with:
sarif_file: snyk.sarif