Skip to content

Commit 7fafd36

Browse files
Bump golangci/golangci-lint-action from 2 to 3 (#63)
* Bump golangci/golangci-lint-action from 2 to 3 Bumps [golangci/golangci-lint-action](https://github.com/golangci/golangci-lint-action) from 2 to 3. - [Release notes](https://github.com/golangci/golangci-lint-action/releases) - [Commits](golangci/golangci-lint-action@v2...v3) --- updated-dependencies: - dependency-name: golangci/golangci-lint-action dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <[email protected]> * Add setup-go as required for v3 * Fix linting issue Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Andreas Fritzler <[email protected]>
1 parent 80d68a7 commit 7fafd36

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

.github/workflows/golangci-lint.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Lint
1+
name: Lint Golang Codebase
22

33
on:
44
pull_request:
@@ -11,7 +11,10 @@ jobs:
1111
runs-on: ubuntu-latest
1212
steps:
1313
- uses: actions/checkout@v3
14+
- uses: actions/setup-go@v2
15+
with:
16+
go-version: '^1.17'
1417
- name: golangci-lint
15-
uses: golangci/golangci-lint-action@v2
18+
uses: golangci/golangci-lint-action@v3
1619
with:
17-
version: v1.41.1
20+
version: v1.43.0

configutils/configutils.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ var loadInClusterConfig = rest.InClusterConfig
9999
func getKubeconfigFlag() string {
100100
f := flag.CommandLine.Lookup("kubeconfig")
101101
if f == nil {
102-
panic(fmt.Sprintf("--kubeconfig flag is not defined"))
102+
panic("--kubeconfig flag is not defined")
103103
}
104104

105105
return f.Value.String()

0 commit comments

Comments
 (0)