Skip to content

Commit 84bda2b

Browse files
authored
Merge pull request #751 from aws/trivy-scan-published-artifacts
fix(daily-scan): point Trivy at published artifact dependencies
2 parents 68405ff + d73f9e1 commit 84bda2b

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

.github/workflows/daily-scan.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
## Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
22
## SPDX-License-Identifier: Apache-2.0
33
# Performs a daily scan of:
4-
# * The X-Ray Node.js SDK source code, using Trivy
4+
# * The X-Ray Node.js SDK published artifact dependencies, using Trivy
55
# * Project dependencies, using DependencyCheck
66
#
77
# Publishes results to CloudWatch Metrics.
@@ -77,23 +77,23 @@ jobs:
7777
if: ${{ steps.dep_scan.outcome != 'success' }}
7878
run: less dependency-check-report.html
7979

80-
- name: Perform high severity scan on source code
80+
- name: Perform high severity scan on published artifact dependencies
8181
if: always()
8282
id: high_scan_latest
8383
uses: aquasecurity/trivy-action@97e0b3872f55f89b95b2f65b3dbab56962816478 # v0.34.2
8484
with:
8585
scan-type: 'fs'
86-
scan-ref: '.'
86+
scan-ref: 'scan-target/'
8787
severity: 'CRITICAL,HIGH'
8888
exit-code: '1'
8989

90-
- name: Perform low severity scan on source code
90+
- name: Perform low severity scan on published artifact dependencies
9191
if: always()
9292
id: low_scan_latest
9393
uses: aquasecurity/trivy-action@97e0b3872f55f89b95b2f65b3dbab56962816478 # v0.34.2
9494
with:
9595
scan-type: 'fs'
96-
scan-ref: '.'
96+
scan-ref: 'scan-target/'
9797
severity: 'MEDIUM,LOW,UNKNOWN'
9898
exit-code: '1'
9999

0 commit comments

Comments
 (0)