Skip to content
This repository was archived by the owner on Oct 2, 2025. It is now read-only.

Commit 8b08b98

Browse files
chore(deps): bump golangci/golangci-lint-action from 6 to 7 (#386)
* chore(deps): bump golangci/golangci-lint-action from 6 to 7 Bumps [golangci/golangci-lint-action](https://github.com/golangci/golangci-lint-action) from 6 to 7. - [Release notes](https://github.com/golangci/golangci-lint-action/releases) - [Commits](golangci/golangci-lint-action@v6...v7) --- updated-dependencies: - dependency-name: golangci/golangci-lint-action dependency-version: '7' dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> * chore(gha): golangci-lint-action@v7 requires golangci-lint v2.0 see https://github.com/golangci/golangci-lint-action/releases/tag/v7.0.0 * chore(build): update .golangci.yml to v2 see https://golangci-lint.run/product/migration-guide/ * chore(config): go fmt --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: David Byron <dbyron@salesforce.com>
1 parent 17aa567 commit 8b08b98

File tree

5 files changed

+27
-21
lines changed

5 files changed

+27
-21
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@ jobs:
2222
go-version-file: go.mod
2323
cache: false
2424
- name: Ensure code formatting and style is consistent
25-
uses: golangci/golangci-lint-action@v6
25+
uses: golangci/golangci-lint-action@v7
2626
with:
27-
version: v1.45.2
27+
version: v2.0
2828

2929
branch-build:
3030
# Only run this on repositories in the 'spinnaker' org, not on forks.

.github/workflows/pr.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ jobs:
1616
go-version-file: go.mod
1717
cache: false
1818
- name: Ensure code formatting and style is consistent
19-
uses: golangci/golangci-lint-action@v6
19+
uses: golangci/golangci-lint-action@v7
2020
with:
21-
version: v1.45.2
21+
version: v2.0
2222

2323
build:
2424
runs-on: ubuntu-latest

.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@ jobs:
2020
go-version-file: go.mod
2121
cache: false
2222
- name: Ensure code formatting and style is consistent
23-
uses: golangci/golangci-lint-action@v6
23+
uses: golangci/golangci-lint-action@v7
2424
with:
25-
version: v1.45.2
25+
version: v2.0
2626

2727
release:
2828
runs-on: ubuntu-latest

.golangci.yml

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,21 @@
1+
version: "2"
2+
13
run:
24
modules-download-mode: readonly
3-
skip-dirs:
4-
- gateapi
5+
56
linters:
6-
disable-all: true
7+
default: none
8+
enable:
9+
- govet
10+
exclusions:
11+
paths:
12+
- gateapi
13+
14+
formatters:
715
enable:
816
- gofmt
917
- goimports
10-
- govet
11-
# TODO(jan25): Enable this along with all violation fixes
12-
# - golint
13-
linters-settings:
14-
goimports:
15-
local-prefixes: github.com/spinnaker/spin
18+
settings:
19+
goimports:
20+
local-prefixes:
21+
- github.com/spinnaker/spin

config/auth/iap/user_iap_auth_helper_test.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44
// you may not use this file except in compliance with the License.
55
// You may obtain a copy of the License at
66
//
7-
// http://www.apache.org/licenses/LICENSE-2.0
7+
// http://www.apache.org/licenses/LICENSE-2.0
88
//
9-
// Unless required by applicable law or agreed to in writing, software
10-
// distributed under the License is distributed on an "AS IS" BASIS,
11-
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12-
// See the License for the specific language governing permissions and
13-
// limitations under the License.
9+
// Unless required by applicable law or agreed to in writing, software
10+
// distributed under the License is distributed on an "AS IS" BASIS,
11+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
// See the License for the specific language governing permissions and
13+
// limitations under the License.
1414
package config
1515

1616
import (

0 commit comments

Comments
 (0)