fix up and download artifacts
CI / Test Setup Trivy amd64 (pull_request) Successful in 8s
CI / Test Merge SARIF Files (pull_request) Successful in 17s
CI / Test Get Images From Files (pull_request) Successful in 31s
CI / Test Setup Trivy arm64 (pull_request) Successful in 47s
CI / Test Setup DB (pull_request) Successful in 1m14s

This commit is contained in:
2026-02-25 21:42:07 +01:00
parent 20d90e73fe
commit d1c36874e5
+5 -5
View File
@@ -43,7 +43,7 @@ jobs:
trivy config --cache-dir "$TRIVY_CACHE_DIR" --exit-code 0 --format sarif --output config-sarif.json . trivy config --cache-dir "$TRIVY_CACHE_DIR" --exit-code 0 --format sarif --output config-sarif.json .
env: env:
TRIVY_CACHE_DIR: ${{ runner.temp }}/trivy TRIVY_CACHE_DIR: ${{ runner.temp }}/trivy
- uses: actions/upload-artifact@v4 - uses: https://github.com/ChristopherHX/gitea-upload-artifact@v4
with: with:
name: config-sarif name: config-sarif
path: config-sarif.json path: config-sarif.json
@@ -105,7 +105,7 @@ jobs:
if: steps.get-images.outputs.images == '[]' || steps.scan.outputs.count == '0' if: steps.get-images.outputs.images == '[]' || steps.scan.outputs.count == '0'
run: | run: |
echo '{"version":"2.1.0","$schema":"https://raw.githubusercontent.com/oasis-tcs/sarif-spec/master/Schemata/sarif-schema-2.1.0.json","runs":[]}' > image-sarif.json echo '{"version":"2.1.0","$schema":"https://raw.githubusercontent.com/oasis-tcs/sarif-spec/master/Schemata/sarif-schema-2.1.0.json","runs":[]}' > image-sarif.json
- uses: actions/upload-artifact@v4 - uses: https://github.com/ChristopherHX/gitea-upload-artifact@v4
with: with:
name: image-sarif name: image-sarif
path: image-sarif.json path: image-sarif.json
@@ -125,13 +125,13 @@ jobs:
exit 1 exit 1
- name: Download config SARIF - name: Download config SARIF
if: inputs.scan-config if: inputs.scan-config
uses: actions/download-artifact@v4 uses: https://github.com/ChristopherHX/gitea-download-artifact@v4
with: with:
name: config-sarif name: config-sarif
path: config-sarif-artifact path: config-sarif-artifact
- name: Download image SARIF - name: Download image SARIF
if: inputs.scan-images if: inputs.scan-images
uses: actions/download-artifact@v4 uses: https://github.com/ChristopherHX/gitea-download-artifact@v4
with: with:
name: image-sarif name: image-sarif
path: image-sarif-artifact path: image-sarif-artifact
@@ -159,7 +159,7 @@ jobs:
run: | run: |
echo "merged-sarif-artifact=merged-sarif" >> "$GITHUB_OUTPUT" echo "merged-sarif-artifact=merged-sarif" >> "$GITHUB_OUTPUT"
echo "merged-sarif-path=merged-sarif.json" >> "$GITHUB_OUTPUT" echo "merged-sarif-path=merged-sarif.json" >> "$GITHUB_OUTPUT"
- uses: actions/upload-artifact@v4 - uses: https://github.com/ChristopherHX/gitea-upload-artifact@v4
with: with:
name: merged-sarif name: merged-sarif
path: merged-sarif.json path: merged-sarif.json