Skip to content

Merge pull request #33 from RADAR-base/feature/sentry #8

Merge pull request #33 from RADAR-base/feature/sentry

Merge pull request #33 from RADAR-base/feature/sentry #8

name: Snyk scheduled test
on:
schedule:
- cron: '0 2 1 * *'
push:
branches:
- master
jobs:
security:
runs-on: ubuntu-latest
env:
REPORT_FILE: test.json
steps:
- uses: actions/checkout@v3
- uses: snyk/actions/maven-3-jdk-17@master
name: Run Snyk to check for vulnerabilities
env:
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
with:
args: --all-projects --configuration-matching='^runtimeClasspath$' --fail-on=upgradable --json-file-output=${{ env.REPORT_FILE }} --org=radar-base --policy-path=$PWD/.snyk --severity-threshold=high
- name: Report new vulnerabilities
uses: thehyve/report-vulnerability@master
if: success() || failure()
with:
report-file: ${{ env.REPORT_FILE }}
env:
TOKEN: ${{ secrets.GITHUB_TOKEN }}