9
9
pull_request :
10
10
paths-ignore :
11
11
- ' **.md'
12
- env :
13
- # Default minimum version of Go to support.
14
- DEFAULT_GO_VERSION : " ~1.21"
15
12
16
13
permissions :
17
14
contents : read
@@ -21,10 +18,13 @@ jobs:
21
18
name : Unit Tests
22
19
runs-on : ubuntu-22.04
23
20
steps :
21
+ - name : Checkout repository
22
+ uses : actions/checkout@v4
23
+
24
24
- name : Install Go
25
25
uses : actions/setup-go@v5
26
26
with :
27
- go-version : ${{ env.DEFAULT_GO_VERSION }}
27
+ go-version-file : ' go.mod '
28
28
29
29
- name : Setup Environment
30
30
run : |
39
39
path : ~/go/pkg/mod
40
40
key : ${{ runner.os }}-${{ env.cache-name }}-${{ hashFiles('**/go.sum') }}
41
41
42
- - name : Checkout repository
43
- uses : actions/checkout@v4
44
-
45
42
- name : Workspace Init
46
43
run : make workspace-init
47
44
@@ -62,12 +59,12 @@ jobs:
62
59
uses : actions/checkout@v4
63
60
64
61
- name : Set up QEMU
65
- uses : docker/setup-qemu-action@master
62
+ uses : docker/setup-qemu-action@v3
66
63
with :
67
64
platforms : all
68
65
- name : Set up Docker Buildx
69
66
id : buildx
70
- uses : docker/setup-buildx-action@master
67
+ uses : docker/setup-buildx-action@v3
71
68
- name : Build
72
69
uses : docker/build-push-action@v4
73
70
with :
78
75
cache-from : type=gha,scope=${{ github.ref_name }}-ofo
79
76
cache-to : type=gha,scope=${{ github.ref_name }}-ofo
80
77
- name : Run Trivy vulnerability scanner
81
- uses : aquasecurity/trivy-action@master
78
+ uses : aquasecurity/trivy-action@0.27.0
82
79
with :
83
- input : / github/ workspace/open-feature-operator-local.tar
80
+ input : ${{ github. workspace }} /open-feature-operator-local.tar
84
81
format : " template"
85
82
template : " @/contrib/sarif.tpl"
86
83
output : " trivy-results.sarif"
90
87
with :
91
88
sarif_file : " trivy-results.sarif"
92
89
- name : Upload image as artifact
93
- uses : actions/upload-artifact@v3
90
+ uses : actions/upload-artifact@v4
94
91
with :
95
92
name : open-feature-operator-local-${{ github.sha }}
96
93
path : ${{ github.workspace }}/open-feature-operator-local.tar
0 commit comments