-
Notifications
You must be signed in to change notification settings - Fork 693
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update Go version and dependencies (#1460)
**Description of the change** - Update Go to 1.21.7 - Update dependencies - Update golangci-lint and gosec to their latest versions - Remove the gosec CI job and include it as a step in the linters job - Set gosec severity to low - Explicitly ignore unmarshall error as if unmarshalling fails the log level is set to info by default --------- Signed-off-by: Alejandro Moreno <[email protected]>
- Loading branch information
Showing
6 changed files
with
52 additions
and
76 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -38,7 +38,8 @@ jobs: | |
matrix: | ||
go: ${{ fromJSON(needs.load-versions.outputs.go_version_list) }} | ||
os: [ubuntu-latest] | ||
golangci-lint: ["1.52.2"] | ||
golangci-lint: ["1.56.1"] | ||
gosec: ["2.19.0"] | ||
steps: | ||
- name: Set up Go 1.x | ||
uses: actions/[email protected] | ||
|
@@ -52,33 +53,11 @@ jobs: | |
- name: Install dependencies | ||
run: | | ||
go install github.com/golangci/golangci-lint/cmd/golangci-lint@v${{ matrix.golangci-lint }} | ||
go install github.com/securego/gosec/v2/cmd/gosec@v${{ matrix.gosec }} | ||
- name: Run linter | ||
run: make lint | ||
|
||
gosec: | ||
needs: load-versions | ||
name: Run gosec | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
go: ${{ fromJSON(needs.load-versions.outputs.go_version_list) }} | ||
os: [ubuntu-latest] | ||
gosec: ["2.15.0"] | ||
steps: | ||
- name: Set up Go 1.x | ||
uses: actions/[email protected] | ||
with: | ||
go-version: ${{ matrix.go }} | ||
id: go | ||
|
||
- name: Check out code into the Go module directory | ||
uses: actions/[email protected] | ||
|
||
- name: Install dependencies | ||
run: | | ||
go install github.com/securego/gosec/v2/cmd/gosec@v${{ matrix.gosec }} | ||
- name: Run gosec | ||
run: make lint-gosec | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
GO_VERSION=1.21.5 | ||
GO_VERSION=1.21.7 | ||
GO_VERSION_LIST="[\"$GO_VERSION\"]" |