|
|
@@ -41,7 +41,7 @@ jobs:
|
|
|
|
if: inputs.scan-config
|
|
|
|
if: inputs.scan-config
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
|
|
|
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
|
|
|
|
- uses: https://gitea.t000-n.de/t.behrendt/trivy-actions/setup-trivy@a6508d695d7bb6137f14372392d5c312c98225cf # 1.4.7
|
|
|
|
- uses: https://gitea.t000-n.de/t.behrendt/trivy-actions/setup-trivy@a6508d695d7bb6137f14372392d5c312c98225cf # 1.4.7
|
|
|
|
- uses: https://gitea.t000-n.de/t.behrendt/trivy-actions/setup-db@a6508d695d7bb6137f14372392d5c312c98225cf # 1.4.7
|
|
|
|
- uses: https://gitea.t000-n.de/t.behrendt/trivy-actions/setup-db@a6508d695d7bb6137f14372392d5c312c98225cf # 1.4.7
|
|
|
|
- run: |
|
|
|
|
- run: |
|
|
|
@@ -57,7 +57,7 @@ jobs:
|
|
|
|
if: inputs.scan-images
|
|
|
|
if: inputs.scan-images
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
|
|
|
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
|
|
|
|
- uses: https://gitea.t000-n.de/t.behrendt/trivy-actions/setup-trivy@a6508d695d7bb6137f14372392d5c312c98225cf # 1.4.7
|
|
|
|
- uses: https://gitea.t000-n.de/t.behrendt/trivy-actions/setup-trivy@a6508d695d7bb6137f14372392d5c312c98225cf # 1.4.7
|
|
|
|
- uses: https://gitea.t000-n.de/t.behrendt/trivy-actions/setup-db@a6508d695d7bb6137f14372392d5c312c98225cf # 1.4.7
|
|
|
|
- uses: https://gitea.t000-n.de/t.behrendt/trivy-actions/setup-db@a6508d695d7bb6137f14372392d5c312c98225cf # 1.4.7
|
|
|
|
- name: Get images from files
|
|
|
|
- name: Get images from files
|
|
|
@@ -102,7 +102,7 @@ jobs:
|
|
|
|
TRIVY_CACHE_DIR: ${{ runner.temp }}/trivy
|
|
|
|
TRIVY_CACHE_DIR: ${{ runner.temp }}/trivy
|
|
|
|
- name: Merge image SARIF files
|
|
|
|
- name: Merge image SARIF files
|
|
|
|
if: steps.get-images.outputs.images != '[]' && steps.scan.outputs.count != '0'
|
|
|
|
if: steps.get-images.outputs.images != '[]' && steps.scan.outputs.count != '0'
|
|
|
|
uses: https://gitea.t000-n.de/t.behrendt/trivy-actions/merge-sarif-files@a6508d695d7bb6137f14372392d5c312c98225cf # 1.4.7
|
|
|
|
uses: https://gitea.t000-n.de/t.behrendt/trivy-actions/merge-sarif-files@1.4.7
|
|
|
|
with:
|
|
|
|
with:
|
|
|
|
files: ${{ steps.scan.outputs.files }}
|
|
|
|
files: ${{ steps.scan.outputs.files }}
|
|
|
|
output-file: image-sarif.json
|
|
|
|
output-file: image-sarif.json
|
|
|
@@ -119,7 +119,7 @@ jobs:
|
|
|
|
if: inputs.scan-fs
|
|
|
|
if: inputs.scan-fs
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
|
|
|
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
|
|
|
|
- uses: https://gitea.t000-n.de/t.behrendt/trivy-actions/setup-trivy@a6508d695d7bb6137f14372392d5c312c98225cf # 1.4.7
|
|
|
|
- uses: https://gitea.t000-n.de/t.behrendt/trivy-actions/setup-trivy@a6508d695d7bb6137f14372392d5c312c98225cf # 1.4.7
|
|
|
|
- uses: https://gitea.t000-n.de/t.behrendt/trivy-actions/setup-db@a6508d695d7bb6137f14372392d5c312c98225cf # 1.4.7
|
|
|
|
- uses: https://gitea.t000-n.de/t.behrendt/trivy-actions/setup-db@a6508d695d7bb6137f14372392d5c312c98225cf # 1.4.7
|
|
|
|
- run: |
|
|
|
|
- run: |
|
|
|
|