Skip to content

Commit da01a7c

Browse files
CCM-13883: Trivy Optimisation
1 parent 0de0460 commit da01a7c

3 files changed

Lines changed: 4 additions & 6 deletions

File tree

.github/actions/trivy-iac/action.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ runs:
88
run: |
99
components_exit_code=0
1010
modules_exit_code=0
11-
11+
asdf plugin add trivy || true
12+
asdf install trivy || true
1213
./scripts/terraform/trivy-scan.sh --mode iac ./infrastructure/terraform/components || components_exit_code=$?
1314
./scripts/terraform/trivy-scan.sh --mode iac ./infrastructure/terraform/modules || modules_exit_code=$?
1415

.github/actions/trivy-package/action.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ runs:
77
shell: bash
88
run: |
99
exit_code=0
10-
10+
asdf plugin add trivy || true
11+
asdf install trivy || true
1112
./scripts/terraform/trivy-scan.sh --mode package . || exit_code=$?
1213
1314
if [ $exit_code -ne 0 ]; then

.github/workflows/stage-1-commit.yaml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -163,8 +163,6 @@ jobs:
163163
uses: actions/checkout@v4
164164
- name: "Setup ASDF"
165165
uses: asdf-vm/actions/setup@b7bcd026f18772e44fe1026d729e1611cc435d47 # v4
166-
- name: "Perform Setup"
167-
uses: ./.github/actions/setup
168166
- name: "Trivy IaC Scan"
169167
uses: ./.github/actions/trivy-iac
170168
trivy-package:
@@ -179,8 +177,6 @@ jobs:
179177
uses: actions/checkout@v4
180178
- name: "Setup ASDF"
181179
uses: asdf-vm/actions/setup@1902764435ca0dd2f3388eea723a4f92a4eb8302
182-
- name: "Perform Setup"
183-
uses: ./.github/actions/setup
184180
- name: "Trivy Package Scan"
185181
uses: ./.github/actions/trivy-package
186182
count-lines-of-code:

0 commit comments

Comments
 (0)