Skip to content

Commit

Permalink
docker-image-scan.yml aktualisieren
Browse files Browse the repository at this point in the history
  • Loading branch information
holomekc authored Apr 1, 2024
1 parent 8da7f99 commit 24e9f2b
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/docker-image-scan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ jobs:
hide-progress: true
cache-dir: .trivy
github-pat: ${{ secrets.GITHUB_TOKEN }}
- name: Run Trivy json result
- name: Run Trivy json result alpine
uses: aquasecurity/[email protected]
with:
image-ref: 'docker.io/holomekc/wiremock-gui:${{ steps.extract-version.outputs.version }}-alpine'
Expand All @@ -107,7 +107,7 @@ jobs:
severity: 'CRITICAL,HIGH'
hide-progress: true
cache-dir: .trivy
- name: Run Trivy sarif result
- name: Run Trivy sarif result alpine
uses: aquasecurity/[email protected]
with:
image-ref: 'docker.io/holomekc/wiremock-gui:${{ steps.extract-version.outputs.version }}-alpine'
Expand All @@ -120,7 +120,7 @@ jobs:
limit-severities-for-sarif: true
hide-progress: true
cache-dir: .trivy
- name: Run Trivy sbom result
- name: Run Trivy sbom result alpine
uses: aquasecurity/[email protected]
with:
image-ref: 'docker.io/holomekc/wiremock-gui:${{ steps.extract-version.outputs.version }}-alpine'
Expand All @@ -146,7 +146,7 @@ jobs:
echo "result=${code}" >> $GITHUB_OUTPUT
cat trivy-result.sarif
- name: Check result
- name: Check result alpine
id: trivy-result-alpine
shell: bash
run: |
Expand All @@ -160,6 +160,10 @@ jobs:
uses: github/codeql-action/upload-sarif@v3
with:
sarif_file: 'trivy-result.sarif'
- name: Upload Trivy alpine scan results to GitHub Security tab
uses: github/codeql-action/upload-sarif@v3
with:
sarif_file: 'trivy-result-alpine.sarif'

docker:
needs: [scan]
Expand Down

0 comments on commit 24e9f2b

Please sign in to comment.