diff --git a/.github/workflows/snyk.yaml b/.github/workflows/snyk.yaml new file mode 100644 index 00000000..5808a67f --- /dev/null +++ b/.github/workflows/snyk.yaml @@ -0,0 +1,34 @@ +name: Snyk test + +on: + - pull_request + +jobs: + security: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + - uses: snyk/actions/setup@master + with: + snyk-version: v1.1032.0 + + - uses: actions/setup-java@v3 + with: + distribution: temurin + java-version: 17 + + - name: Setup Gradle + uses: gradle/gradle-build-action@v2 + + - name: Run Snyk to check for vulnerabilities + env: + SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }} + run: > + snyk test + --all-projects + --configuration-matching="^runtimeClasspath$" + --fail-on=upgradable + --org=radar-base + --policy-path=.snyk + --severity-threshold=high