We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3863492 commit f85c39bCopy full SHA for f85c39b
.github/workflows/trivy-plugin-test.yml
@@ -15,23 +15,21 @@ on:
15
16
jobs:
17
test:
18
- needs: build
19
runs-on: ubuntu-latest
20
steps:
21
- name: Checkout code
22
uses: actions/checkout@v4
23
24
- - name: Download CLI binaries
25
- uses: actions/download-artifact@v4
+ - name: Set up Go
+ uses: actions/setup-go@v5
26
with:
27
- name: cli-binaries
28
- path: .
+ go-version: '1.21'
+ cache: true
29
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
+ - name: Build CLI
+ run: |
+ go build -o cli-v2 ./cli-v2.go
+ chmod +x cli-v2
35
36
- name: Run Trivy plugin tests
37
run: |
0 commit comments