Skip to content

Commit 3b654a9

Browse files
committed
ci: use go version from go.mod for trivy
actions/setup-go@v5 supports using go.mod to install the required version of golang , if any changes are required specific to version we dont need to make changes in 2 places.
1 parent b79aef9 commit 3b654a9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/trivy.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
- name: Install go
1717
uses: actions/setup-go@v5
1818
with:
19-
go-version: 1.23.1
19+
go-version-file: go.mod
2020

2121
- name: Build images from Dockerfile
2222
run: |

0 commit comments

Comments
 (0)