Skip to content

Commit 180f2a5

Browse files
authored
Scan latest releases for vulnerabilities. (#343)
1 parent 182d7c0 commit 180f2a5

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

.github/workflows/serverless-vuln-scan.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,22 @@ jobs:
4848
exit-code: 1
4949
format: table
5050

51+
- name: Scan latest released image with trivy
52+
uses: aquasecurity/trivy-action@6e7b7d1fd3e4fef0c5fa8cce1229c54b2c9bd0d8 # v0.24.0
53+
with:
54+
image-ref: "public.ecr.aws/datadog/lambda-extension:latest"
55+
ignore-unfixed: true
56+
exit-code: 1
57+
format: table
58+
59+
- name: Scan latest-alpoine released image with trivy
60+
uses: aquasecurity/trivy-action@6e7b7d1fd3e4fef0c5fa8cce1229c54b2c9bd0d8 # v0.24.0
61+
with:
62+
image-ref: "public.ecr.aws/datadog/lambda-extension:latest-alpine"
63+
ignore-unfixed: true
64+
exit-code: 1
65+
format: table
66+
5167
- name: Scan amd64 image with grype
5268
uses: anchore/scan-action@d43cc1dfea6a99ed123bf8f3133f1797c9b44492 # v4.1.0
5369
with:
@@ -66,6 +82,24 @@ jobs:
6682
severity-cutoff: low
6783
output-format: table
6884

85+
- name: Scan latest release image with grype
86+
uses: anchore/scan-action@d43cc1dfea6a99ed123bf8f3133f1797c9b44492 # v4.1.0
87+
with:
88+
image: "public.ecr.aws/datadog/lambda-extension:latest"
89+
only-fixed: true
90+
fail-build: true
91+
severity-cutoff: low
92+
output-format: table
93+
94+
- name: Scan latest-alpine release image with grype
95+
uses: anchore/scan-action@d43cc1dfea6a99ed123bf8f3133f1797c9b44492 # v4.1.0
96+
with:
97+
image: "public.ecr.aws/datadog/lambda-extension:latest-alpine"
98+
only-fixed: true
99+
fail-build: true
100+
severity-cutoff: low
101+
output-format: table
102+
69103
- name: Scan binary files with grype
70104
uses: anchore/scan-action@d43cc1dfea6a99ed123bf8f3133f1797c9b44492 # v4.1.0
71105
with:

0 commit comments

Comments
 (0)