File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 4747 uses : github/codeql-action/init@68bde559dea0fdcac2102bfdf6230c5f70eb485e # ratchet:github/codeql-action/init@v4
4848 with :
4949 languages : ${{ matrix.language }}
50+ build-mode : ${{ matrix.language == 'java-kotlin' && 'manual' || 'none' }}
5051
5152 - name : Build Java
5253 if : matrix.language == 'java-kotlin'
Original file line number Diff line number Diff line change @@ -101,42 +101,3 @@ jobs:
101101 grype-gradle-report.txt
102102 ${{ steps.scan.outputs.json }}
103103 retention-days : 30
104-
105- depcheck :
106- name : Dependency Check (Gradle)
107- if : false # disabled — NVD API reliability issues; re-enable when stable
108- runs-on : ubuntu-latest
109- permissions :
110- contents : read
111- steps :
112- - name : Checkout
113- uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # ratchet:actions/checkout@v6
114-
115- - uses : actions/setup-java@be666c2fcd27ec809703dec50e508c2fdc7f6654 # ratchet:actions/setup-java@v5
116- with :
117- distribution : temurin
118- java-version : 25
119- cache : gradle
120-
121- - name : Cache NVD database
122- uses : actions/cache@27d5ce7f107fe9357f9df03efb73ab90386fccae # ratchet:actions/cache@v5
123- with :
124- path : ~/.gradle/dependency-check-data/
125- key : depcheck-db
126- save-always : true
127-
128- - name : Run OWASP Dependency Check
129- timeout-minutes : 180
130- env :
131- NVD_API_KEY : ${{ secrets.NVD_API_KEY }}
132- OSS_INDEX_USERNAME : ${{ secrets.OSS_INDEX_USERNAME }}
133- OSS_INDEX_TOKEN : ${{ secrets.OSS_INDEX_TOKEN }}
134- run : ./gradlew dependencyCheckAggregate --info
135-
136- - name : Upload report
137- if : always()
138- uses : actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # ratchet:actions/upload-artifact@v7
139- with :
140- name : dependency-check-report
141- path : ${{ github.workspace }}/build/reports/dependency-check*
142- retention-days : 30
Original file line number Diff line number Diff line change 3333 packages : write
3434 id-token : write
3535 attestations : write
36+ artifact-metadata : write
3637
3738 steps :
3839 - uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # ratchet:actions/checkout@v6
Original file line number Diff line number Diff line change @@ -9,7 +9,6 @@ buildscript {
99
1010plugins {
1111 id ' com.diffplug.spotless' version ' 8.4.0' apply false
12- id ' org.owasp.dependencycheck' version ' 12.2.2'
1312 id ' org.cyclonedx.bom' version ' 3.2.4'
1413 id ' com.github.node-gradle.node' version ' 7.1.0' apply false
1514}
@@ -87,15 +86,6 @@ allprojects {
8786 url = ' https://repo.eclipse.org/content/groups/releases/'
8887 }
8988 }
90- dependencyCheck {
91- nvd. apiKey = System . getenv(" NVD_API_KEY" )
92- analyzers. ossIndex. username = System . getenv(" OSS_INDEX_USERNAME" )
93- analyzers. ossIndex. password = System . getenv(" OSS_INDEX_TOKEN" )
94- analyzers. ossIndex. url = ' https://api.guide.sonatype.com/'
95- failBuildOnCVSS = 5
96- suppressionFile = rootProject. file(' gradle-suppressions.xml' ). toString()
97- failOnError = false
98- }
9989}
10090
10191
You can’t perform that action at this time.
0 commit comments