forked from aquasecurity/trivy
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d6a5a15
commit 1cbb451
Showing
1 changed file
with
49 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -82,6 +82,22 @@ jobs: | |
with: | ||
aqua_version: v1.25.0 | ||
|
||
- name: Generate image list digest | ||
id: image-digest | ||
run: | | ||
IMAGE_LIST=$(skopeo list-tags docker://ghcr.io/aquasecurity/trivy-test-images) | ||
DIGEST=$(echo "$IMAGE_LIST" | sha256sum | cut -d' ' -f1) | ||
echo "digest=$DIGEST" >> $GITHUB_OUTPUT | ||
- name: Restore test images from cache | ||
uses: actions/cache@v4 | ||
id: restore-test-images | ||
with: | ||
path: integration/testdata/fixtures/images | ||
key: cache-test-images-${{ steps.image-digest.outputs.digest }} | ||
restore-keys: | ||
cache-test-images- | ||
|
||
- name: Run integration tests | ||
run: mage test:integration | ||
|
||
|
@@ -122,6 +138,22 @@ jobs: | |
with: | ||
aqua_version: v1.25.0 | ||
|
||
- name: Generate image list digest | ||
id: image-digest | ||
run: | | ||
IMAGE_LIST=$(skopeo list-tags docker://ghcr.io/aquasecurity/trivy-test-images) | ||
DIGEST=$(echo "$IMAGE_LIST" | sha256sum | cut -d' ' -f1) | ||
echo "digest=$DIGEST" >> $GITHUB_OUTPUT | ||
- name: Restore test images from cache | ||
uses: actions/cache@v4 | ||
id: restore-test-images | ||
with: | ||
path: integration/testdata/fixtures/images | ||
key: cache-test-images-${{ steps.image-digest.outputs.digest }} | ||
restore-keys: | ||
cache-test-images- | ||
|
||
- name: Run module integration tests | ||
shell: bash | ||
run: | | ||
|
@@ -142,6 +174,23 @@ jobs: | |
uses: aquaproj/[email protected] | ||
with: | ||
aqua_version: v1.25.0 | ||
|
||
- name: Generate image list digest | ||
id: image-digest | ||
run: | | ||
IMAGE_LIST=$(skopeo list-tags docker://ghcr.io/aquasecurity/trivy-test-vm-images) | ||
DIGEST=$(echo "$IMAGE_LIST" | sha256sum | cut -d' ' -f1) | ||
echo "digest=$DIGEST" >> $GITHUB_OUTPUT | ||
- name: Restore test VM images from cache | ||
uses: actions/cache@v4 | ||
id: restore-test-vm-images | ||
with: | ||
path: integration/testdata/fixtures/vm-images | ||
key: cache-test-vm-images-${{ steps.image-digest.outputs.digest }} | ||
restore-keys: | ||
cache-test-vm-images- | ||
|
||
- name: Run vm integration tests | ||
run: | | ||
mage test:vm | ||
|