Skip to content

Commit

Permalink
ci: use go.mod file for go version, fixes codeql error
Browse files Browse the repository at this point in the history
  • Loading branch information
joelrebel committed Mar 19, 2024
1 parent ec32377 commit 1ee69b1
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,11 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v4

- name: Install Go
uses: actions/setup-go@v4
with:
go-version-file: go.mod

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/push-pr-lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ jobs:
- name: Install Go
uses: actions/setup-go@v4
with:
go-version: '1.22'
go-version-file: go.mod

- name: Checkout code
uses: actions/checkout@v4
- name: golangci-lint
Expand All @@ -25,7 +26,7 @@ jobs:
- name: Install Go
uses: actions/setup-go@v4
with:
go-version: '1.22'
go-version-file: go.mod

- name: Checkout code
uses: actions/checkout@v4
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
name: Set up Go
uses: actions/setup-go@v4
with:
go-version: "1.22"
go-version-file: go.mod
-
name: install cosign
uses: sigstore/cosign-installer@main
Expand Down

0 comments on commit 1ee69b1

Please sign in to comment.