Skip to content

Commit 5b09357

Browse files
committed
fix: [#251] sanitize Docker image names for artifact naming
1 parent 382f430 commit 5b09357

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/docker-security-scan.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,11 +106,15 @@ jobs:
106106
exit-code: "1"
107107
scanners: "vuln" # Focus on CVEs, not secrets
108108

109+
- name: Sanitize image name for artifact
110+
id: sanitize
111+
run: echo "name=$(echo '${{ matrix.image }}' | tr '/:' '-')" >> $GITHUB_OUTPUT
112+
109113
- name: Upload SARIF artifact
110114
uses: actions/upload-artifact@v4
111115
if: always()
112116
with:
113-
name: sarif-third-party-${{ matrix.image }}
117+
name: sarif-third-party-${{ steps.sanitize.outputs.name }}
114118
path: "trivy-results.sarif"
115119
retention-days: 30
116120

0 commit comments

Comments
 (0)