Snyk Vulnerability Scan #12
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
# This workflow automates the process of identifying potential security vulnerabilities | |
# using Snyk. Dependency vulnerability scans will be run when a push is made to the main | |
# branch, on a weekly schedule, and can also be triggered manually. | |
name: Snyk Vulnerability Scan | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: '00 15 * * 1' | |
push: | |
branches: | |
- main | |
jobs: | |
security: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Code | |
uses: actions/checkout@v3 | |
with: | |
ref: 'main' | |
- name: Run Snyk To Check For Vulnerabilities | |
uses: snyk/actions/gradle@master | |
env: | |
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }} | |
with: | |
command: monitor | |
args: --all-sub-projects --org=java-agent --configuration-matching='(^compileClasspath$)|(^runtimeClasspath$)' |