ci(scorecard): use safe artifact name and add SARIF pre-upload debug

This commit is contained in:
adrian adewunmi 2026-07-09 11:43:08 +01:00
parent 98d5bac4e8
commit 1cc4c372e3
1 changed files with 9 additions and 1 deletions

View File

@ -58,10 +58,18 @@ jobs:
# Upload the results as artifacts (optional). Commenting out will disable uploads of run results in SARIF
# format to the repository Actions tab.
- name: "Show SARIF file"
run: |
echo "SARIF file listing:"
ls -la results.sarif || true
echo "SARIF file type (if available):"
file results.sarif || true
- name: "Upload artifact"
uses: actions/upload-artifact@v7
with:
name: sarif-file
# Use a simple, lowercase artifact name without spaces to avoid API validation
name: results-sarif
path: results.sarif
retention-days: 5