Skip to content

Commit

Permalink
Refactor Snyk action config
Browse files Browse the repository at this point in the history
  • Loading branch information
pvannierop committed Oct 11, 2024
1 parent 5d71c4b commit 75bd451
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 21 deletions.
25 changes: 4 additions & 21 deletions .github/workflows/snyk.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,29 +6,12 @@ on:
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
- name: Run Snyk to check for JDK vulnerabilities
uses: snyk/actions/gradle-jdk17@master
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
with:
args: --all-projects --configuration-matching="^runtimeClasspath$" --fail-on=upgradable --org=radar-base --policy-path=.snyk --severity-threshold=high
8 changes: 8 additions & 0 deletions .snyk
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Snyk (https://snyk.io) policy file, patches or ignores known vulnerabilities.
version: v1.25.0
# ignores vulnerabilities until expiry date; change duration by modifying expiry date
ignore:
patch: {}
exclude:
global:
- scripts/requirements.txt

0 comments on commit 75bd451

Please sign in to comment.