Skip to content

Commit a34a00c

Browse files
cpanatoCopilot
andauthored
ci: add stale and zizmor workflows, update Go and golangci-lint (#661)
- add the stale and zizmor workflows, same as helm/chart-testing - use Go 1.27 in CI and the release workflow, and in go.mod - update golangci-lint to v2.14 - add a 7 day cooldown to the dependabot updates (zizmor dependabot-cooldown) Signed-off-by: Carlos Panato <ctadeu@gmail.com> Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 30b66b7 commit a34a00c

6 files changed

Lines changed: 70 additions & 6 deletions

File tree

‎.github/dependabot.yml‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ updates:
66
directory: "/"
77
schedule:
88
interval: weekly
9+
cooldown:
10+
default-days: 7
911
open-pull-requests-limit: 10
1012
groups:
1113
gomod:
@@ -16,6 +18,8 @@ updates:
1618
directory: "/"
1719
schedule:
1820
interval: weekly
21+
cooldown:
22+
default-days: 7
1923
open-pull-requests-limit: 10
2024
groups:
2125
actions:
@@ -27,6 +31,8 @@ updates:
2731
directory: "/"
2832
schedule:
2933
interval: weekly
34+
cooldown:
35+
default-days: 7
3036
groups:
3137
docker:
3238
update-types:

‎.github/workflows/ci.yaml‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
- name: Setup Go
2525
uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0
2626
with:
27-
go-version: '1.26'
27+
go-version: '1.27'
2828
check-latest: true
2929
cache: false
3030

@@ -66,7 +66,7 @@ jobs:
6666

6767
- uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0
6868
with:
69-
go-version: '1.26'
69+
go-version: '1.27'
7070
check-latest: true
7171
cache: false
7272

@@ -96,11 +96,11 @@ jobs:
9696

9797
- uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0
9898
with:
99-
go-version: '1.26'
99+
go-version: '1.27'
100100
check-latest: true
101101
cache: false
102102

103103
- name: golangci-lint
104104
uses: golangci/golangci-lint-action@ba0d7d2ec06a0ea1cb5fa41b2e4a3ab91d21278a # v9.3.0
105105
with:
106-
version: v2.12
106+
version: v2.14

‎.github/workflows/release.yaml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
- name: Setup Go
2626
uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0
2727
with:
28-
go-version: '1.26'
28+
go-version: '1.27'
2929
check-latest: true
3030
cache: false
3131

‎.github/workflows/stale.yaml‎

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: 'Close stale issues and PRs'
2+
on:
3+
schedule:
4+
- cron: '30 1 * * *'
5+
6+
permissions: {}
7+
8+
jobs:
9+
stale:
10+
runs-on: ubuntu-latest
11+
12+
permissions:
13+
issues: write
14+
pull-requests: write
15+
16+
steps:
17+
- uses: actions/stale@4391f3da665fdf50b6810c1a66712fb9ba21aa93 # v11.0.0
18+
with:
19+
stale-issue-message: 'This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.'
20+
stale-pr-message: 'This PR is stale because it has been open 45 days with no activity. Remove stale label or comment or this will be closed in 10 days.'
21+
close-issue-message: 'This issue was closed because it has been stalled for 5 days with no activity.'
22+
close-pr-message: 'This PR was closed because it has been stalled for 10 days with no activity.'
23+
days-before-issue-stale: 30
24+
days-before-pr-stale: 45
25+
days-before-issue-close: 5
26+
days-before-pr-close: 10
27+
exempt-issue-labels: 'frozen'
28+
exempt-pr-labels: 'frozen'

‎.github/workflows/zizmor.yaml‎

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: zizmor
2+
on:
3+
push:
4+
branches:
5+
- 'main'
6+
pull_request:
7+
branches:
8+
- '*'
9+
10+
permissions: {}
11+
12+
jobs:
13+
zizmor:
14+
name: zizmor
15+
runs-on: ubuntu-latest
16+
17+
permissions:
18+
contents: read
19+
actions: read
20+
21+
steps:
22+
- name: checkout
23+
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
24+
with:
25+
persist-credentials: false
26+
27+
- name: Run zizmor
28+
uses: zizmorcore/zizmor-action@cc914d7f3750a2d13d75c7f184a1060aa0e9d482 # v0.6.4
29+
with:
30+
advanced-security: false

‎go.mod‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/helm/chart-releaser
22

3-
go 1.26.0
3+
go 1.27.0
44

55
require (
66
github.com/MakeNowJust/heredoc v1.0.0

0 commit comments

Comments
 (0)