Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix the Trivy scanner #504

Merged
merged 6 commits into from
Oct 25, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,14 +43,13 @@ jobs:

- name: Create temporary trivy directories
run: |
sudo mkdir $GITHUB_WORKSPACE/trivy-tmp
sudo mkdir $GITHUB_WORKSPACE/trivy-tmp/.cache
mkdir -p $GITHUB_WORKSPACE/trivy-tmp/.cache
echo "TMPDIR=$GITHUB_WORKSPACE/trivy-tmp" >> $GITHUB_ENV
echo "TRIVY_CACHE_DIR=$GITHUB_WORKSPACE/trivy-tmp/.cache" >> $GITHUB_ENV

- name: Scan base image with Trivy
id: trivy-base-scan
uses: aquasecurity/trivy-action@0.20.0
uses: aquasecurity/trivy-action@0.28.0
with:
scan-type: 'image'
image-ref: base_cloudshell
Expand All @@ -64,7 +63,7 @@ jobs:

- name: Scan Tools image with Trivy
id: trivy-tools-scan
uses: aquasecurity/trivy-action@0.20.0
uses: aquasecurity/trivy-action@0.28.0
with:
scan-type: 'image'
image-ref: tools_cloudshell
Expand Down
Loading