Skip to content

Commit e227abb

Browse files
authored
[chore] Publish grype code scan results for Windows (#6331)
* [chore] Publish grype code scan results for Windows * Add id to grype run step
1 parent c3bf242 commit e227abb

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.github/workflows/vuln-scans.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,12 +190,18 @@ jobs:
190190
Remove-Item .\cmd\otelcol\otelcol.exe
191191
Remove-Item .\cmd\otelcol\agent-bundle_windows_amd64.zip
192192
- uses: anchore/scan-action@v6
193+
id: anchore-scan
193194
with:
194195
severity-cutoff: "high"
195196
only-fixed: true
196197
add-cpes-if-none: true
197-
output-format: "table"
198+
output-format: sarif
198199
image: "otelcol-windows:latest"
200+
- name: Upload result to GitHub Code Scanning
201+
if: always()
202+
uses: github/codeql-action/upload-sarif@v3
203+
with:
204+
sarif_file: ${{ steps.anchore-scan.outputs.sarif }}
199205

200206
check-snyk-token:
201207
runs-on: ubuntu-24.04

0 commit comments

Comments
 (0)