Skip to content

Commit c3a7d76

Browse files
committed
ci(snyk): #277 add snyk code sast
1 parent bc056ab commit c3a7d76

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

.github/workflows/pipeline.yml

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -97,17 +97,23 @@ jobs:
9797
name: "Executing dependency vulnerability checks"
9898
env:
9999
NVD_API_KEY: ${{ secrets.NVD_API_KEY }}
100-
sast-code-snyk:
100+
sast-snyk:
101101
runs-on: ubuntu-latest
102102
needs: build
103103
steps:
104104
- uses: actions/checkout@v4
105-
- name: Run Snyk to static code analysis for vulnerabilities
106-
uses: snyk/actions/maven-3-jdk-21@master
105+
- uses: snyk/actions/maven-3-jdk-21@master
106+
name: Run Snyk scan for dependency and license
107107
env:
108108
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
109109
with:
110110
args: --severity-threshold=high
111+
- name: Run Snyk static code analysis
112+
uses: snyk/actions/maven-3-jdk-21@master
113+
env:
114+
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
115+
with:
116+
args: code test
111117
sast-iac-trivy-hadolint:
112118
runs-on: ubuntu-latest
113119
needs: build
@@ -131,7 +137,7 @@ jobs:
131137
- unit-test
132138
- mutation-test
133139
- dependency-vulnerability-analysis
134-
- sast-code-snyk
140+
- sast-snyk
135141
- sast-iac-trivy-hadolint
136142
steps:
137143
- uses: actions/checkout@v4

0 commit comments

Comments
 (0)