Skip to content

Commit 7a95dfc

Browse files
Update GitHub Actions (main) (major) (#751)
* Update GitHub Actions * migrate golangci-lint config * remove golangci-lint version from action --------- Co-authored-by: renovate-rancher[bot] <119870437+renovate-rancher[bot]@users.noreply.github.com> Co-authored-by: Dan Pock <[email protected]>
1 parent 2fc306d commit 7a95dfc

File tree

6 files changed

+38
-29
lines changed

6 files changed

+38
-29
lines changed

.github/workflows/ci.yaml

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,12 @@ jobs:
2828
name: lint
2929
runs-on: ubuntu-latest
3030
steps:
31-
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
32-
- uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5
31+
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5
32+
- uses: actions/setup-go@44694675825211faa026b3c33043df3e48a5fa00 # v6
3333
with:
3434
go-version: '1.24'
3535
- name: golangci-lint
36-
uses: golangci/golangci-lint-action@55c2c1448f86e01eaae002a5a3a9624417608d84 # v6
37-
with:
38-
version: v1.64.8
36+
uses: golangci/golangci-lint-action@4afd733a84b1f43292c63897423277bb7f4313a9 # v8
3937
build:
4038
name: CI Build
4139
strategy:
@@ -46,11 +44,11 @@ jobs:
4644
runs-on: runs-on,image=ubuntu22-full-${{ matrix.arch }},runner=4cpu-linux-${{ matrix.arch }},run-id=${{ github.run_id }}
4745
steps:
4846
- name: Checkout repository
49-
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
47+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5
5048
with:
5149
fetch-depth: 0
5250
- name: Install go
53-
uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5
51+
uses: actions/setup-go@44694675825211faa026b3c33043df3e48a5fa00 # v6
5452
with:
5553
go-version: 1.24
5654
- name: Set up Docker Buildx
@@ -76,9 +74,9 @@ jobs:
7674
- v1.32.1-k3s1
7775
steps:
7876
- name: Checkout repository
79-
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
77+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5
8078
- name: Install go
81-
uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5
79+
uses: actions/setup-go@44694675825211faa026b3c33043df3e48a5fa00 # v6
8280
with:
8381
go-version: 1.24
8482
- name: Install helm

.github/workflows/head-builds.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
runs-on : runs-on,image=ubuntu22-full-x64,runner=4cpu-linux-x64,run-id=${{ github.run_id }}
2424
steps:
2525
- name: Check out the repository to the runner
26-
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
26+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5
2727
- name: Set Branch Tag and Other Variables
2828
id: set-vars
2929
run: bash ./.github/scripts/branch-tags.sh >> $GITHUB_OUTPUT
@@ -49,7 +49,7 @@ jobs:
4949
secret/data/github/repo/${{ github.repository }}/dockerhub/rancher/credentials username | DOCKER_USERNAME ;
5050
secret/data/github/repo/${{ github.repository }}/dockerhub/rancher/credentials password | DOCKER_PASSWORD
5151
- name : Checkout repository
52-
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
52+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5
5353
- name: Set up Docker Buildx
5454
uses: docker/setup-buildx-action@b5ca514318bd6ebac0fb2aedd5d36ec1b5c232a2 # v3
5555
- name: Log in to the Container registry

.github/workflows/port-pr.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ jobs:
7979
fi
8080
- name: Checkout
8181
if: ${{ env.is_member == 'true' && env.target_branch_exists == 'true' }}
82-
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
82+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5
8383
with:
8484
ref: ${{ env.target_branch }}
8585
fetch-depth: '0'

.github/workflows/publish.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,11 @@ jobs:
2323
]
2424
runs-on: ubuntu-latest
2525
steps:
26-
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
26+
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5
2727
with:
2828
fetch-depth: 0
2929
- run: git fetch --force --tags
30-
- uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5
30+
- uses: actions/setup-go@44694675825211faa026b3c33043df3e48a5fa00 # v6
3131
with:
3232
go-version: 1.24
3333
- name : Package release helm charts
@@ -58,7 +58,7 @@ jobs:
5858
secret/data/github/repo/${{ github.repository }}/dockerhub/rancher/credentials username | DOCKER_USERNAME ;
5959
secret/data/github/repo/${{ github.repository }}/dockerhub/rancher/credentials password | DOCKER_PASSWORD
6060
- name : Checkout repository
61-
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
61+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5
6262
- name: Set up Docker Buildx
6363
uses: docker/setup-buildx-action@b5ca514318bd6ebac0fb2aedd5d36ec1b5c232a2 # v3
6464
- name: Log in to the Container registry

.github/workflows/stale.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
stale:
1212
runs-on: ubuntu-latest
1313
steps:
14-
- uses: actions/stale@5bef64f19d7facfb25b37b414482c7164d639639 # v9
14+
- uses: actions/stale@5f858e3efba33a5ca4407a664cc011ad407f2008 # v10
1515
with:
1616
stale-issue-message: 'This repository uses an automated workflow to automatically label issues which have not had any activity (commit/comment/label) for 60 days. This helps us manage the community issues better. If the issue is still relevant, please add a comment to the issue so the workflow can remove the label and we know it is still valid. If it is no longer relevant (or possibly fixed in the latest release), the workflow will automatically close the issue in 14 days. Thank you for your contributions.'
1717
stale-pr-message: 'This repository uses an automated workflow to automatically label pull requests which have not had any activity (commit/comment/label) for 60 days. This helps us manage the community pull requests better. If the pull request is still relevant, please add a comment to the pull request so the workflow can remove the label and we know it is still valid. If it is no longer relevant (or possibly fixed in the latest release), the workflow will automatically close the pull request in 14 days. Thank you for your contributions.'

.golangci.yaml

Lines changed: 24 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,29 @@
1+
version: "2"
12
linters:
2-
disable-all: true
3+
default: none
34
enable:
45
- govet
5-
- revive
6-
- goimports
7-
- misspell
86
- ineffassign
7+
- misspell
8+
- revive
9+
exclusions:
10+
generated: lax
11+
presets:
12+
- comments
13+
- common-false-positives
14+
- legacy
15+
- std-error-handling
16+
rules:
17+
- linters:
18+
- revive
19+
path: _test.go
20+
paths:
21+
- /zz_generated_
22+
formatters:
23+
enable:
924
- gofmt
10-
run:
11-
timeout: 5m
12-
issues:
13-
exclude-rules:
14-
- path: _test.go
15-
linters:
16-
- revive
17-
exclude-files:
18-
- "/zz_generated_"
25+
- goimports
26+
exclusions:
27+
generated: lax
28+
paths:
29+
- /zz_generated_

0 commit comments

Comments
 (0)