1515 - " README.md"
1616 - " docs/**"
1717
18- env :
19- GO_VERSION : ' ~1.21'
20-
2118jobs :
2219 lint :
2320 runs-on : ubuntu-latest
3027 - name : Setup go
3128 uses : actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5
3229 with :
33- go-version : ${{ env.GO_VERSION }}
30+ go-version-file : ' flagd/go.mod '
3431 - run : make workspace-init
3532 - run : make lint
3633
4239 - name : Setup go
4340 uses : actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5
4441 with :
45- go-version : ${{ env.GO_VERSION }}
42+ go-version-file : ' flagd/go.mod '
4643 - run : make workspace-init
4744 - run : make generate-docs
4845 - name : Check no diff
6057 - name : Setup go
6158 uses : actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5
6259 with :
63- go-version : ${{ env.GO_VERSION }}
60+ go-version-file : ' flagd/go.mod '
6461 - run : make workspace-init
6562 - run : make test
6663 - name : Upload coverage to Codecov
7875 - name : Setup go
7976 uses : actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5
8077 with :
81- go-version : ${{ env.GO_VERSION }}
78+ go-version-file : ' flagd/go.mod '
8279
8380 - name : Set up QEMU
8481 uses : docker/setup-qemu-action@master
10097 - name : Run Trivy vulnerability scanner
10198 uses : aquasecurity/trivy-action@master
10299 with :
103- input : /github/workspace/flagd-local.tar
104- format : " template"
105- template : " @/contrib/sarif.tpl"
100+ input : ${{ github.workspace }}/flagd-local.tar
101+ format : " sarif"
106102 output : " trivy-results.sarif"
107103 severity : " CRITICAL,HIGH"
108104
@@ -123,7 +119,7 @@ jobs:
123119 - name : Setup go
124120 uses : actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5
125121 with :
126- go-version : ${{ env.GO_VERSION }}
122+ go-version-file : ' flagd/go.mod '
127123
128124 - name : Workspace init
129125 run : make workspace-init
0 commit comments