Skip to content

Commit 4725d08

Browse files
committed
fix(ci): configure OWASP Dependency-Check to output SARIF format
- Change format from JSON to SARIF for code scanning upload - Set output directory to reports/ - Update upload path to match generated file location (reports/dependency-check-report.sarif)
1 parent f54e252 commit 4725d08

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/security.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,9 @@ jobs:
178178
with:
179179
project: 'budget-automation'
180180
path: '.'
181-
format: 'JSON'
181+
format: 'SARIF'
182+
args: >
183+
--out reports
182184
183185
- name: Upload Dependency-Check results
184186
uses: github/codeql-action/upload-sarif@v4
@@ -188,7 +190,7 @@ jobs:
188190
github.event.pull_request.head.repo.full_name == github.repository
189191
)
190192
with:
191-
sarif_file: 'dependency-check-report.sarif'
193+
sarif_file: 'reports/dependency-check-report.sarif'
192194
category: 'dependency-check'
193195

194196
license-check:

0 commit comments

Comments
 (0)