Skip to content

Commit

Permalink
fix code scan with podman socket
Browse files Browse the repository at this point in the history
  • Loading branch information
jiridanek committed Jun 28, 2024
1 parent 86ffa65 commit c00223c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .github/workflows/notebook_controller_integration_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ jobs:
systemctl --user daemon-reload
systemctl --user start podman.socket
echo "PODMAN_SOCK=/run/user/${UID}/podman/podman.sock" >> $GITHUB_ENV
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ jobs:
systemctl --user daemon-reload
systemctl --user start podman.socket
echo "PODMAN_SOCK=/run/user/${UID}/podman/podman.sock" >> $GITHUB_ENV
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
Expand Down
4 changes: 3 additions & 1 deletion testing/gha_run_trivy_scan.sh
Original file line number Diff line number Diff line change
Expand Up @@ -74,11 +74,13 @@ EOF

echo "[INFO] running Trivy ${TRIVY_VERSION}"
podman run --rm \
-v ${PODMAN_SOCK}:/var/run/docker.sock \
-v ${REPORT_FOLDER}:/report \
docker.io/aquasec/trivy:${TRIVY_VERSION} \
image \
--scanners vuln,secret \
--exit-code 0 --timeout 30m \
--exit-code 0 \
--timeout 30m \
--severity CRITICAL,HIGH \
--format template --template "@/report/$REPORT_TEMPLATE" -o /report/${REPORT_FILE} \
${IMAGE_NAME}
Expand Down

0 comments on commit c00223c

Please sign in to comment.