99 pull_request :
1010 paths-ignore :
1111 - ' **.md'
12- env :
13- # Default minimum version of Go to support.
14- DEFAULT_GO_VERSION : " ~1.21"
1512
1613permissions :
1714 contents : read
@@ -21,10 +18,13 @@ jobs:
2118 name : Unit Tests
2219 runs-on : ubuntu-22.04
2320 steps :
21+ - name : Checkout repository
22+ uses : actions/checkout@v4
23+
2424 - name : Install Go
2525 uses : actions/setup-go@v5
2626 with :
27- go-version : ${{ env.DEFAULT_GO_VERSION }}
27+ go-version-file : ' go.mod '
2828
2929 - name : Setup Environment
3030 run : |
3939 path : ~/go/pkg/mod
4040 key : ${{ runner.os }}-${{ env.cache-name }}-${{ hashFiles('**/go.sum') }}
4141
42- - name : Checkout repository
43- uses : actions/checkout@v4
44-
4542 - name : Workspace Init
4643 run : make workspace-init
4744
@@ -62,12 +59,12 @@ jobs:
6259 uses : actions/checkout@v4
6360
6461 - name : Set up QEMU
65- uses : docker/setup-qemu-action@master
62+ uses : docker/setup-qemu-action@v3
6663 with :
6764 platforms : all
6865 - name : Set up Docker Buildx
6966 id : buildx
70- uses : docker/setup-buildx-action@master
67+ uses : docker/setup-buildx-action@v3
7168 - name : Build
7269 uses : docker/build-push-action@v4
7370 with :
7875 cache-from : type=gha,scope=${{ github.ref_name }}-ofo
7976 cache-to : type=gha,scope=${{ github.ref_name }}-ofo
8077 - name : Run Trivy vulnerability scanner
81- uses : aquasecurity/trivy-action@master
78+ uses : aquasecurity/trivy-action@0.27.0
8279 with :
83- input : / github/ workspace/open-feature-operator-local.tar
80+ input : ${{ github. workspace }} /open-feature-operator-local.tar
8481 format : " template"
8582 template : " @/contrib/sarif.tpl"
8683 output : " trivy-results.sarif"
9087 with :
9188 sarif_file : " trivy-results.sarif"
9289 - name : Upload image as artifact
93- uses : actions/upload-artifact@v3
90+ uses : actions/upload-artifact@v4
9491 with :
9592 name : open-feature-operator-local-${{ github.sha }}
9693 path : ${{ github.workspace }}/open-feature-operator-local.tar
0 commit comments