Skip to content

Commit 2ac6ea4

Browse files
feat: upgrade goreleaser to 1.26.2
1 parent ba9cbd6 commit 2ac6ea4

File tree

317 files changed

+6490
-2833
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

317 files changed

+6490
-2833
lines changed

go.mod

Lines changed: 133 additions & 83 deletions
Large diffs are not rendered by default.

go.sum

Lines changed: 379 additions & 321 deletions
Large diffs are not rendered by default.

goreleaser/.github/workflows/build.yml

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -29,15 +29,15 @@ jobs:
2929
env:
3030
DOCKER_CLI_EXPERIMENTAL: "enabled"
3131
steps:
32-
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v3
32+
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v3
3333
with:
3434
fetch-depth: 0
35-
- uses: arduino/setup-task@e26d8975574116b0097a1161e0fe16ba75d84c1c # v1
35+
- uses: arduino/setup-task@b91d5d2c96a56797b48ac1e0e89220bf64044611 # v1
3636
with:
3737
version: 3.x
3838
repo-token: ${{ secrets.GITHUB_TOKEN }}
3939
- uses: docker/setup-qemu-action@68827325e0b33c7199eb31dd4e31fbe9023e06e3 # v2
40-
- uses: docker/setup-buildx-action@f95db51fddba0c2d1ec667646a06c2ce06100226 # v2
40+
- uses: docker/setup-buildx-action@d70bba72b1f3fd22344832f00baa16ece964efeb # v3
4141
- name: setup-snapcraft
4242
# FIXME: the mkdirs are a hack for https://github.com/goreleaser/goreleaser/issues/1715
4343
run: |
@@ -48,25 +48,23 @@ jobs:
4848
- uses: crazy-max/ghaction-upx@v3
4949
with:
5050
install-only: true
51-
- uses: cachix/install-nix-action@v25
51+
- uses: cachix/install-nix-action@V27
5252
with:
5353
github_access_token: ${{ secrets.GITHUB_TOKEN }}
54-
- uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v4
54+
- uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7 # v4
5555
with:
5656
go-version: stable
57-
- uses: sigstore/cosign-installer@v3.4.0
58-
- uses: anchore/sbom-action/download-syft@v0.15.8
57+
- uses: sigstore/cosign-installer@v3.5.0
58+
- uses: anchore/sbom-action/download-syft@v0.16.0
5959
- name: setup-validate-krew-manifest
6060
run: go install sigs.k8s.io/krew/cmd/validate-krew-manifest@latest
61-
- name: setup-tparse
62-
run: go install github.com/mfridman/tparse@latest
6361
- name: setup
6462
run: |
6563
task setup
6664
task build
6765
- name: test
68-
run: ./scripts/test.sh
69-
- uses: codecov/codecov-action@e0b68c6749509c5f83f984dd99a76a1c1a231044 # v4
66+
run: task test
67+
- uses: codecov/codecov-action@125fc84a9a348dbcf27191600683ec096ec9021c # v4
7068
with:
7169
file: ./coverage.txt
7270
- run: ./goreleaser check

goreleaser/.github/workflows/codeql.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ jobs:
1515
contents: read
1616

1717
steps:
18-
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v3
19-
- uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v4
18+
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v3
19+
- uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7 # v4
2020
with:
2121
go-version: stable
22-
- uses: github/codeql-action/init@cdcdbb579706841c47f7063dda365e292e5cad7a # v2
23-
- uses: github/codeql-action/autobuild@cdcdbb579706841c47f7063dda365e292e5cad7a # v2
24-
- uses: github/codeql-action/analyze@cdcdbb579706841c47f7063dda365e292e5cad7a # v2
22+
- uses: github/codeql-action/init@9fdb3e49720b44c48891d036bb502feb25684276 # v2
23+
- uses: github/codeql-action/autobuild@9fdb3e49720b44c48891d036bb502feb25684276 # v2
24+
- uses: github/codeql-action/analyze@9fdb3e49720b44c48891d036bb502feb25684276 # v2

goreleaser/.github/workflows/depsreview.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
dependency-review:
99
runs-on: ubuntu-latest
1010
steps:
11-
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v3
11+
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v3
1212
- uses: actions/dependency-review-action@v4
1313
with:
14-
allow-licenses: BSD-2-Clause, BSD-3-Clause, MIT, Apache-2.0, MPL-2.0
14+
allow-licenses: BSD-2-Clause, BSD-3-Clause, MIT, Apache-2.0, MPL-2.0, ISC

goreleaser/.github/workflows/docs.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ jobs:
1919
htmltest:
2020
runs-on: ubuntu-latest
2121
steps:
22-
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v3
23-
- uses: cachix/install-nix-action@v25
22+
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v3
23+
- uses: cachix/install-nix-action@V27
2424
with:
2525
nix_path: nixpkgs=channel:nixos-unstable
2626
github_access_token: ${{ secrets.GITHUB_TOKEN }}

goreleaser/.github/workflows/fig.yml

Lines changed: 0 additions & 27 deletions
This file was deleted.

goreleaser/.github/workflows/generate.yml

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,14 @@ jobs:
1212
contents: write
1313
runs-on: ubuntu-latest
1414
steps:
15-
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v3
15+
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v3
1616
with:
1717
token: ${{ secrets.GH_PAT }}
18-
- uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v4
18+
- uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7 # v4
1919
with:
2020
go-version: stable
2121
cache: true
22-
- uses: arduino/setup-task@e26d8975574116b0097a1161e0fe16ba75d84c1c # v1
22+
- uses: arduino/setup-task@b91d5d2c96a56797b48ac1e0e89220bf64044611 # v1
2323
with:
2424
version: 3.x
2525
repo-token: ${{ secrets.GITHUB_TOKEN }}
@@ -28,13 +28,18 @@ jobs:
2828
- run: task docs:releases
2929
env:
3030
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
31+
- uses: cachix/install-nix-action@V27
32+
with:
33+
github_access_token: ${{ secrets.GITHUB_TOKEN }}
3134
- run: task docs:generate
3235
- run: task schema:generate
3336
- run: task nix:licenses:generate
37+
- run: task nix:flake:update
38+
- run: task nix:flake:update-vendor
3439
- run: task schema:validate
35-
- uses: stefanzweifel/git-auto-commit-action@8756aa072ef5b4a080af5dc8fef36c5d586e521d # v5
40+
- uses: stefanzweifel/git-auto-commit-action@8621497c8c39c72f3e2a999a26b4ca1b5058a842 # v5
3641
with:
37-
commit_message: "chore: docs auto-update"
42+
commit_message: "chore: auto-update generated files"
3843
branch: main
3944
commit_user_name: actions-user
4045
commit_user_email: [email protected]

goreleaser/.github/workflows/gitleaks.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
gitleaks:
1515
runs-on: ubuntu-latest
1616
steps:
17-
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v3
17+
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v3
1818
with:
1919
fetch-depth: 0
2020
- uses: gitleaks/gitleaks-action@v2

goreleaser/.github/workflows/grype.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
contents: read
1818

1919
steps:
20-
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v3
20+
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v3
2121
- uses: anchore/scan-action@v3
2222
with:
2323
path: "."

goreleaser/.github/workflows/lint.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,13 @@ jobs:
1717
name: lint
1818
runs-on: ubuntu-latest
1919
steps:
20-
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v3
21-
- uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v4
20+
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v3
21+
- uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7 # v4
2222
with:
2323
go-version: stable
2424
cache: false
2525
- name: golangci-lint
26-
uses: golangci/golangci-lint-action@3a919529898de77ec3da873e3063ca4b10e7f5cc # v3
26+
uses: golangci/golangci-lint-action@a4f60bb28d35aeee14e6880718e0c85ff1882e64 # v6.0.1
2727
with:
2828
args: --timeout=5m
29-
only-new-issues: true
29+
version: v1.58.1

goreleaser/.github/workflows/nightly-oss.yml

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -16,33 +16,33 @@ jobs:
1616
env:
1717
DOCKER_CLI_EXPERIMENTAL: "enabled"
1818
steps:
19-
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v3
19+
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v3
2020
with:
2121
fetch-depth: 0
22-
- uses: arduino/setup-task@e26d8975574116b0097a1161e0fe16ba75d84c1c # v1
22+
- uses: arduino/setup-task@b91d5d2c96a56797b48ac1e0e89220bf64044611 # v1
2323
with:
2424
version: 3.x
2525
repo-token: ${{ secrets.GITHUB_TOKEN }}
2626
- uses: docker/setup-qemu-action@68827325e0b33c7199eb31dd4e31fbe9023e06e3 # v2
27-
- uses: docker/setup-buildx-action@f95db51fddba0c2d1ec667646a06c2ce06100226 # v2
28-
- uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v4
27+
- uses: docker/setup-buildx-action@d70bba72b1f3fd22344832f00baa16ece964efeb # v3
28+
- uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7 # v4
2929
with:
3030
go-version: stable
31-
- uses: sigstore/cosign-installer@v3.4.0
32-
- uses: anchore/sbom-action/download-syft@v0.15.8
31+
- uses: sigstore/cosign-installer@v3.5.0
32+
- uses: anchore/sbom-action/download-syft@v0.16.0
3333
- uses: crazy-max/ghaction-upx@v3
3434
with:
3535
install-only: true
36-
- uses: cachix/install-nix-action@v25
36+
- uses: cachix/install-nix-action@V27
3737
with:
3838
github_access_token: ${{ secrets.GITHUB_TOKEN }}
3939
- name: dockerhub-login
40-
uses: docker/login-action@343f7c4344506bcbf9b4de18042ae17996df046d # v2
40+
uses: docker/login-action@e92390c5fb421da1463c202d546fed0ec5c39f20 # v2
4141
with:
4242
username: ${{ secrets.DOCKER_USERNAME }}
4343
password: ${{ secrets.DOCKER_PASSWORD }}
4444
- name: ghcr-login
45-
uses: docker/login-action@343f7c4344506bcbf9b4de18042ae17996df046d # v2
45+
uses: docker/login-action@e92390c5fb421da1463c202d546fed0ec5c39f20 # v2
4646
with:
4747
registry: ghcr.io
4848
username: ${{ github.repository_owner }}
@@ -55,3 +55,8 @@ jobs:
5555
env:
5656
GITHUB_TOKEN: ${{ secrets.GH_PAT }}
5757
GORELEASER_KEY: ${{ secrets.GORELEASER_KEY }}
58+
MACOS_SIGN_P12: ${{ secrets.MACOS_SIGN_P12 }}
59+
MACOS_SIGN_PASSWORD: ${{ secrets.MACOS_SIGN_PASSWORD }}
60+
MACOS_NOTARY_ISSUER_ID: ${{ secrets.MACOS_NOTARY_ISSUER_ID }}
61+
MACOS_NOTARY_KEY_ID: ${{ secrets.MACOS_NOTARY_KEY_ID }}
62+
MACOS_NOTARY_KEY: ${{ secrets.MACOS_NOTARY_KEY }}

goreleaser/.github/workflows/release.yml

Lines changed: 20 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
runs-on: ubuntu-latest
1818
needs: [goreleaser]
1919
steps:
20-
- uses: benc-uk/workflow-dispatch@v121
20+
- uses: benc-uk/workflow-dispatch@v1.2.3
2121
if: startsWith(github.ref, 'refs/tags/v')
2222
with:
2323
repo: goreleaser/goreleaser
@@ -33,7 +33,7 @@ jobs:
3333
run: echo "RELEASE_TAG=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV
3434
- name: notify goreleaser-cross with new release
3535
if: startsWith(github.ref, 'refs/tags/v')
36-
uses: benc-uk/workflow-dispatch@v121
36+
uses: benc-uk/workflow-dispatch@v1.2.3
3737
with:
3838
token: ${{ secrets.GH_PAT }}
3939
repo: goreleaser/goreleaser-cross
@@ -49,15 +49,15 @@ jobs:
4949
matrix:
5050
format: [deb, rpm, apk]
5151
steps:
52-
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v3
52+
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v3
5353
with:
5454
fetch-depth: 0
55-
- uses: arduino/setup-task@e26d8975574116b0097a1161e0fe16ba75d84c1c # v1
55+
- uses: arduino/setup-task@b91d5d2c96a56797b48ac1e0e89220bf64044611 # v1
5656
with:
5757
version: 3.x
5858
repo-token: ${{ secrets.GITHUB_TOKEN }}
5959
- uses: docker/setup-qemu-action@68827325e0b33c7199eb31dd4e31fbe9023e06e3 # v2
60-
- uses: actions/cache@13aacd865c20de90d75de3b17ebe84f7a17d57d2 # v4
60+
- uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4
6161
with:
6262
path: |
6363
./dist/*.deb
@@ -70,49 +70,49 @@ jobs:
7070
env:
7171
DOCKER_CLI_EXPERIMENTAL: "enabled"
7272
steps:
73-
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v3
73+
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v3
7474
with:
7575
fetch-depth: 0
76-
- uses: arduino/setup-task@e26d8975574116b0097a1161e0fe16ba75d84c1c # v1
76+
- uses: arduino/setup-task@b91d5d2c96a56797b48ac1e0e89220bf64044611 # v1
7777
with:
7878
version: 3.x
7979
repo-token: ${{ secrets.GITHUB_TOKEN }}
8080
- uses: docker/setup-qemu-action@68827325e0b33c7199eb31dd4e31fbe9023e06e3 # v2
81-
- uses: docker/setup-buildx-action@f95db51fddba0c2d1ec667646a06c2ce06100226 # v2
81+
- uses: docker/setup-buildx-action@d70bba72b1f3fd22344832f00baa16ece964efeb # v3
8282
- name: setup-snapcraft
8383
# FIXME: the mkdirs are a hack for https://github.com/goreleaser/goreleaser/issues/1715
8484
run: |
8585
sudo apt-get update
8686
sudo apt-get -yq --no-install-suggests --no-install-recommends install snapcraft
8787
mkdir -p $HOME/.cache/snapcraft/download
8888
mkdir -p $HOME/.cache/snapcraft/stage-packages
89-
- uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v4
89+
- uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7 # v4
9090
with:
9191
go-version: stable
92-
- uses: actions/cache@13aacd865c20de90d75de3b17ebe84f7a17d57d2 # v4
92+
- uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4
9393
with:
9494
path: |
9595
./dist/*.deb
9696
./dist/*.rpm
9797
./dist/*.apk
9898
key: ${{ github.ref }}
99-
- uses: sigstore/cosign-installer@v3.4.0
100-
- uses: anchore/sbom-action/download-syft@v0.15.8
99+
- uses: sigstore/cosign-installer@v3.5.0
100+
- uses: anchore/sbom-action/download-syft@v0.16.0
101101
- uses: crazy-max/ghaction-upx@v3
102102
with:
103103
install-only: true
104-
- uses: cachix/install-nix-action@v25
104+
- uses: cachix/install-nix-action@V27
105105
with:
106106
github_access_token: ${{ secrets.GITHUB_TOKEN }}
107107
- name: dockerhub-login
108108
if: startsWith(github.ref, 'refs/tags/v')
109-
uses: docker/login-action@343f7c4344506bcbf9b4de18042ae17996df046d # v2
109+
uses: docker/login-action@e92390c5fb421da1463c202d546fed0ec5c39f20 # v2
110110
with:
111111
username: ${{ secrets.DOCKER_USERNAME }}
112112
password: ${{ secrets.DOCKER_PASSWORD }}
113113
- name: ghcr-login
114114
if: startsWith(github.ref, 'refs/tags/v')
115-
uses: docker/login-action@343f7c4344506bcbf9b4de18042ae17996df046d # v2
115+
uses: docker/login-action@e92390c5fb421da1463c202d546fed0ec5c39f20 # v2
116116
with:
117117
registry: ghcr.io
118118
username: ${{ github.repository_owner }}
@@ -135,4 +135,9 @@ jobs:
135135
DISCORD_WEBHOOK_ID: ${{ secrets.DISCORD_WEBHOOK_ID }}
136136
DISCORD_WEBHOOK_TOKEN: ${{ secrets.DISCORD_WEBHOOK_TOKEN }}
137137
AUR_KEY: ${{ secrets.AUR_KEY }}
138+
MACOS_SIGN_P12: ${{ secrets.MACOS_SIGN_P12 }}
139+
MACOS_SIGN_PASSWORD: ${{ secrets.MACOS_SIGN_PASSWORD }}
140+
MACOS_NOTARY_ISSUER_ID: ${{ secrets.MACOS_NOTARY_ISSUER_ID }}
141+
MACOS_NOTARY_KEY_ID: ${{ secrets.MACOS_NOTARY_KEY_ID }}
142+
MACOS_NOTARY_KEY: ${{ secrets.MACOS_NOTARY_KEY }}
138143
run: task goreleaser

goreleaser/.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ dist/
33
bin/
44
coverage.txt
55
goreleaser
6-
gorelaser.exe
6+
goreleaser.exe
77
debug.test
88
snap.login
99
site/

goreleaser/.golangci.yaml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
run:
2-
go: "1.21"
2+
go: "1.22"
33
timeout: 5m
44
linters:
55
enable:
6+
- copyloopvar
67
- thelper
78
- gofumpt
9+
- bodyclose
810
- tparallel
911
- unconvert
1012
- unparam
@@ -15,7 +17,12 @@ linters:
1517
- misspell
1618
- depguard
1719
- testifylint
20+
- gocritic
21+
- nolintlint
1822
linters-settings:
23+
gocritic:
24+
disabled-checks:
25+
- appendAssign
1926
staticcheck:
2027
checks:
2128
- all
@@ -35,3 +42,7 @@ linters-settings:
3542
deny:
3643
- pkg: "github.com/pkg/errors"
3744
desc: "use stdlib instead"
45+
testifylint:
46+
enable-all: true
47+
disable:
48+
- error-is-as # false positive

0 commit comments

Comments
 (0)