Skip to content

Commit f85c39b

Browse files
committed
[PLUTO-1411] Add trivy test
1 parent 3863492 commit f85c39b

File tree

1 file changed

+8
-10
lines changed

1 file changed

+8
-10
lines changed

.github/workflows/trivy-plugin-test.yml

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -15,23 +15,21 @@ on:
1515

1616
jobs:
1717
test:
18-
needs: build
1918
runs-on: ubuntu-latest
2019
steps:
2120
- name: Checkout code
2221
uses: actions/checkout@v4
2322

24-
- name: Download CLI binaries
25-
uses: actions/download-artifact@v4
23+
- name: Set up Go
24+
uses: actions/setup-go@v5
2625
with:
27-
name: cli-binaries
28-
path: .
26+
go-version: '1.21'
27+
cache: true
2928

30-
- name: Select Linux binary
31-
run: mv cli-v2-linux cli-v2
32-
33-
- name: Make binary executable
34-
run: chmod +x cli-v2
29+
- name: Build CLI
30+
run: |
31+
go build -o cli-v2 ./cli-v2.go
32+
chmod +x cli-v2
3533
3634
- name: Run Trivy plugin tests
3735
run: |

0 commit comments

Comments
 (0)