Skip to content

Commit

Permalink
-add scanning for docker images
Browse files Browse the repository at this point in the history
  • Loading branch information
holomekc committed Dec 26, 2023
1 parent 2f0eed2 commit ede6f09
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/docker-image-scan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,15 @@ jobs:
sha=$(gh api -H "${headers}" "${endpoint}" | jq --raw-output "${jqFilter}")
echo "Trivy DB sha256:${sha}"
echo "::set-output name=sha::${sha}"
- id: ignore-policies
name: Ignore some policies
run: |
cat > .trivyignore << EOL
# Ignore gosu issue. They say they are not affected. Issue will be removed as soon
# as wiremock image updates to a newer gosu verion, which removed runc.
CVE-2023-27561
EOL
- uses: actions/cache@v3
with:
path: .trivy
Expand All @@ -33,6 +42,7 @@ jobs:
ignore-unfixed: true
vuln-type: 'os,library'
severity: 'CRITICAL,HIGH'
hide-progress: true
cache-dir: .trivy
- name: Fix .trivy permissions
run: sudo chown -R $(stat . -c %u:%g) .trivy

0 comments on commit ede6f09

Please sign in to comment.