Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
51 changes: 34 additions & 17 deletions .github/configs/golangci-lint/golangci.yaml
Original file line number Diff line number Diff line change
@@ -1,26 +1,43 @@
---
version: "2"
run:
timeout: 20m
tests: true
modules-download-mode: readonly
issues:
max-issues-per-linter: 0
max-same-issues: 0
new: false
tests: true
output:
formats:
- format: colored-line-number
print-linter-name: true
sort-results: true
print-issued-lines: true
text:
path: stdout
print-linter-name: true
print-issued-lines: true
sort-order:
- file
linters:
disable-all: true
fast: false
default: none
enable:
# A stricter replacement for gofmt.
- gofumpt
# Inspects source code for security problems.
- gosec
# Check for correctness of programs.
- govet
# Drop-in replacement of golint.
- revive
exclusions:
generated: lax
presets:
- comments
- common-false-positives
- legacy
- std-error-handling
paths:
- third_party$
- builtin$
- examples$
issues:
max-issues-per-linter: 0
max-same-issues: 0
new: false
formatters:
enable:
- gofumpt
exclusions:
generated: lax
paths:
- third_party$
- builtin$
- examples$
2 changes: 1 addition & 1 deletion .github/workflows/go-static-analysis.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ jobs:
run: |
go mod vendor
- name: golangci-lint
uses: golangci/golangci-lint-action@v6.5.2
uses: golangci/golangci-lint-action@v7.0.0
with:
version: latest
skip-cache: true
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/go-version-workflow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ jobs:

# Needed for signing commits using Github App tokens
# See: https://github.com/peter-evans/create-pull-request/blob/main/docs/concepts-guidelines.md#commit-signing
- uses: actions/create-github-app-token@v1.11.7
- uses: actions/create-github-app-token@v2.0.2
id: generate-token
with:
app-id: ${{ vars.CSM_RELEASE_APP_ID }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/image-version-workflow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ jobs:

# Needed for signing commits using Github App tokens
# See: https://github.com/peter-evans/create-pull-request/blob/main/docs/concepts-guidelines.md#commit-signing
- uses: actions/create-github-app-token@v1.11.7
- uses: actions/create-github-app-token@v2.0.2
id: generate-token
with:
app-id: ${{ vars.CSM_RELEASE_APP_ID }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/operator-version-update.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ jobs:
# Needed for signing commits using Github App tokens
# See: https://github.com/peter-evans/create-pull-request/blob/main/docs/concepts-guidelines.md#commit-signing
- name: Generate GitHub App Token
uses: actions/create-github-app-token@v1.11.7
uses: actions/create-github-app-token@v2.0.2
id: generate-token
with:
app-id: ${{ vars.CSM_RELEASE_APP_ID }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/sidecar-version-update.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ jobs:
# Needed for signing commits using Github App tokens
# See: https://github.com/peter-evans/create-pull-request/blob/main/docs/concepts-guidelines.md#commit-signing
- name: Generate GitHub App Token
uses: actions/create-github-app-token@v1.11.7
uses: actions/create-github-app-token@v2.0.2
id: generate-token
with:
app-id: ${{ vars.CSM_RELEASE_APP_ID }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/update-libraries-to-commits.yml
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ jobs:

# Needed for signing commits using Github App tokens
# See: https://github.com/peter-evans/create-pull-request/blob/main/docs/concepts-guidelines.md#commit-signing
- uses: actions/create-github-app-token@v1.11.7
- uses: actions/create-github-app-token@v2.0.2
id: generate-token
with:
app-id: ${{ vars.CSM_RELEASE_APP_ID }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/update-libraries.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ jobs:

# Needed for signing commits using Github App tokens
# See: https://github.com/peter-evans/create-pull-request/blob/main/docs/concepts-guidelines.md#commit-signing
- uses: actions/create-github-app-token@v1.11.7
- uses: actions/create-github-app-token@v2.0.2
id: generate-token
with:
app-id: ${{ vars.CSM_RELEASE_APP_ID }}
Expand Down