Skip to content

Commit 9ebe641

Browse files
feat!: upgrade goreleaser to 2.3.2
1 parent 2ac6ea4 commit 9ebe641

File tree

429 files changed

+6672
-4695
lines changed

Some content is hidden

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

429 files changed

+6672
-4695
lines changed

cmd/hooks-goreleaser/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package main
22

33
import (
4-
hooksGoReleaser "github.com/go-semantic-release/hooks-goreleaser/pkg/hooks"
4+
hooksGoReleaser "github.com/go-semantic-release/hooks-goreleaser/v2/pkg/hooks"
55
"github.com/go-semantic-release/semantic-release/v2/pkg/hooks"
66
"github.com/go-semantic-release/semantic-release/v2/pkg/plugin"
77
)

go.mod

Lines changed: 82 additions & 75 deletions
Large diffs are not rendered by default.

go.sum

Lines changed: 198 additions & 176 deletions
Large diffs are not rendered by default.
Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
blank_issues_enabled: false
22
contact_links:
3-
- name: Ask a question
4-
url: https://github.com/goreleaser/goreleaser/discussions
5-
about: Ask questions and discuss with other community members
6-
3+
- name: Ask a question
4+
url: https://github.com/goreleaser/goreleaser/discussions
5+
about: Please ask questions here.
6+
- name: Chat on Discord
7+
url: https://goreleaser.com/discord
8+
about: Join our discord to chat about GoReleaser.

goreleaser/.github/workflows/build.yml

Lines changed: 15 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -29,33 +29,30 @@ jobs:
2929
env:
3030
DOCKER_CLI_EXPERIMENTAL: "enabled"
3131
steps:
32-
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v3
32+
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
3333
with:
3434
fetch-depth: 0
3535
- uses: arduino/setup-task@b91d5d2c96a56797b48ac1e0e89220bf64044611 # v1
3636
with:
3737
version: 3.x
3838
repo-token: ${{ secrets.GITHUB_TOKEN }}
39-
- uses: docker/setup-qemu-action@68827325e0b33c7199eb31dd4e31fbe9023e06e3 # v2
40-
- uses: docker/setup-buildx-action@d70bba72b1f3fd22344832f00baa16ece964efeb # v3
39+
- uses: docker/setup-qemu-action@49b3bc8e6bdd4a60e6116a5414239cba5943d3cf # v2
40+
- uses: docker/setup-buildx-action@988b5a0280414f521da01fcc63a27aeeb4b104db # v3
4141
- name: setup-snapcraft
42-
# FIXME: the mkdirs are a hack for https://github.com/goreleaser/goreleaser/issues/1715
4342
run: |
4443
sudo apt-get update
4544
sudo apt-get -yq --no-install-suggests --no-install-recommends install snapcraft
46-
mkdir -p $HOME/.cache/snapcraft/download
47-
mkdir -p $HOME/.cache/snapcraft/stage-packages
4845
- uses: crazy-max/ghaction-upx@v3
4946
with:
5047
install-only: true
51-
- uses: cachix/install-nix-action@V27
48+
- uses: cachix/install-nix-action@V28
5249
with:
5350
github_access_token: ${{ secrets.GITHUB_TOKEN }}
54-
- uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7 # v4
51+
- uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v4
5552
with:
5653
go-version: stable
57-
- uses: sigstore/cosign-installer@v3.5.0
58-
- uses: anchore/sbom-action/download-syft@v0.16.0
54+
- uses: sigstore/cosign-installer@v3.6.0
55+
- uses: anchore/sbom-action/download-syft@v0.17.2
5956
- name: setup-validate-krew-manifest
6057
run: go install sigs.k8s.io/krew/cmd/validate-krew-manifest@latest
6158
- name: setup
@@ -64,8 +61,14 @@ jobs:
6461
task build
6562
- name: test
6663
run: task test
67-
- uses: codecov/codecov-action@125fc84a9a348dbcf27191600683ec096ec9021c # v4
64+
- uses: codecov/codecov-action@e28ff129e5465c2c0dcc6f003fc735cb6ae0c673 # v4
6865
with:
6966
file: ./coverage.txt
70-
- run: ./goreleaser check
7167
- run: git diff
68+
check:
69+
runs-on: ubuntu-latest
70+
steps:
71+
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
72+
with:
73+
fetch-depth: 0
74+
- run: go run . 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@a5ac7e51b41094c92402da3b24376905380afc29 # v3
19-
- uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7 # v4
18+
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
19+
- uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v4
2020
with:
2121
go-version: stable
22-
- uses: github/codeql-action/init@9fdb3e49720b44c48891d036bb502feb25684276 # v2
23-
- uses: github/codeql-action/autobuild@9fdb3e49720b44c48891d036bb502feb25684276 # v2
24-
- uses: github/codeql-action/analyze@9fdb3e49720b44c48891d036bb502feb25684276 # v2
22+
- uses: github/codeql-action/init@8214744c546c1e5c8f03dde8fab3a7353211988d # v3
23+
- uses: github/codeql-action/autobuild@8214744c546c1e5c8f03dde8fab3a7353211988d # v3
24+
- uses: github/codeql-action/analyze@8214744c546c1e5c8f03dde8fab3a7353211988d # v3
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# see https://docs.github.com/en/code-security/dependabot/working-with-dependabot/automating-dependabot-with-github-actions#enable-auto-merge-on-a-pull-request
2+
3+
name: dependabot
4+
5+
on:
6+
pull_request:
7+
8+
permissions:
9+
pull-requests: write
10+
11+
jobs:
12+
automation:
13+
runs-on: ubuntu-latest
14+
if: github.actor == 'dependabot[bot]'
15+
steps:
16+
- id: metadata
17+
uses: dependabot/fetch-metadata@dbb049abf0d677abbd7f7eee0375145b417fdd34 # v2.2.0
18+
with:
19+
github-token: "${{ secrets.GITHUB_TOKEN }}"
20+
21+
- run: gh pr review --approve "$PR_URL"
22+
env:
23+
PR_URL: ${{github.event.pull_request.html_url}}
24+
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}

goreleaser/.github/workflows/depsreview.yaml

Lines changed: 1 addition & 1 deletion
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@a5ac7e51b41094c92402da3b24376905380afc29 # v3
11+
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
1212
- uses: actions/dependency-review-action@v4
1313
with:
1414
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@a5ac7e51b41094c92402da3b24376905380afc29 # v3
23-
- uses: cachix/install-nix-action@V27
22+
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
23+
- uses: cachix/install-nix-action@V28
2424
with:
2525
nix_path: nixpkgs=channel:nixos-unstable
2626
github_access_token: ${{ secrets.GITHUB_TOKEN }}

goreleaser/.github/workflows/generate.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ jobs:
1212
contents: write
1313
runs-on: ubuntu-latest
1414
steps:
15-
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v3
15+
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
1616
with:
1717
token: ${{ secrets.GH_PAT }}
18-
- uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7 # v4
18+
- uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v4
1919
with:
2020
go-version: stable
2121
cache: true
@@ -28,7 +28,7 @@ jobs:
2828
- run: task docs:releases
2929
env:
3030
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
31-
- uses: cachix/install-nix-action@V27
31+
- uses: cachix/install-nix-action@V28
3232
with:
3333
github_access_token: ${{ secrets.GITHUB_TOKEN }}
3434
- run: task docs:generate
@@ -37,6 +37,7 @@ jobs:
3737
- run: task nix:flake:update
3838
- run: task nix:flake:update-vendor
3939
- run: task schema:validate
40+
- run: "git pull"
4041
- uses: stefanzweifel/git-auto-commit-action@8621497c8c39c72f3e2a999a26b4ca1b5058a842 # v5
4142
with:
4243
commit_message: "chore: auto-update generated files"

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@a5ac7e51b41094c92402da3b24376905380afc29 # v3
17+
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
1818
with:
1919
fetch-depth: 0
2020
- uses: gitleaks/gitleaks-action@v2

goreleaser/.github/workflows/grype.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ jobs:
1717
contents: read
1818

1919
steps:
20-
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v3
21-
- uses: anchore/scan-action@v3
20+
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
21+
- uses: anchore/scan-action@v4
2222
with:
2323
path: "."
2424
fail-build: true

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@a5ac7e51b41094c92402da3b24376905380afc29 # v3
21-
- uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7 # v4
20+
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
21+
- uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v4
2222
with:
2323
go-version: stable
2424
cache: false
2525
- name: golangci-lint
26-
uses: golangci/golangci-lint-action@a4f60bb28d35aeee14e6880718e0c85ff1882e64 # v6.0.1
26+
uses: golangci/golangci-lint-action@aaa42aa0628b4ae2578232a66b541047968fac86 # v6.1.0
2727
with:
2828
args: --timeout=5m
29-
version: v1.58.1
29+
version: v1.60

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

Lines changed: 27 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -16,41 +16,41 @@ jobs:
1616
env:
1717
DOCKER_CLI_EXPERIMENTAL: "enabled"
1818
steps:
19-
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v3
19+
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
2020
with:
2121
fetch-depth: 0
2222
- uses: arduino/setup-task@b91d5d2c96a56797b48ac1e0e89220bf64044611 # v1
2323
with:
2424
version: 3.x
2525
repo-token: ${{ secrets.GITHUB_TOKEN }}
26-
- uses: docker/setup-qemu-action@68827325e0b33c7199eb31dd4e31fbe9023e06e3 # v2
27-
- uses: docker/setup-buildx-action@d70bba72b1f3fd22344832f00baa16ece964efeb # v3
28-
- uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7 # v4
26+
- uses: docker/setup-qemu-action@49b3bc8e6bdd4a60e6116a5414239cba5943d3cf # v2
27+
- uses: docker/setup-buildx-action@988b5a0280414f521da01fcc63a27aeeb4b104db # v3
28+
- uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v4
2929
with:
3030
go-version: stable
31-
- uses: sigstore/cosign-installer@v3.5.0
32-
- uses: anchore/sbom-action/download-syft@v0.16.0
31+
- uses: sigstore/cosign-installer@v3.6.0
32+
- uses: anchore/sbom-action/download-syft@v0.17.2
3333
- uses: crazy-max/ghaction-upx@v3
3434
with:
3535
install-only: true
36-
- uses: cachix/install-nix-action@V27
36+
- uses: cachix/install-nix-action@V28
3737
with:
3838
github_access_token: ${{ secrets.GITHUB_TOKEN }}
3939
- name: dockerhub-login
40-
uses: docker/login-action@e92390c5fb421da1463c202d546fed0ec5c39f20 # v2
40+
uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567 # v3
4141
with:
4242
username: ${{ secrets.DOCKER_USERNAME }}
4343
password: ${{ secrets.DOCKER_PASSWORD }}
4444
- name: ghcr-login
45-
uses: docker/login-action@e92390c5fb421da1463c202d546fed0ec5c39f20 # v2
45+
uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567 # v3
4646
with:
4747
registry: ghcr.io
4848
username: ${{ github.repository_owner }}
4949
password: ${{ secrets.GITHUB_TOKEN }}
50-
- uses: goreleaser/goreleaser-action@v5
50+
- uses: goreleaser/goreleaser-action@v6
5151
with:
5252
distribution: goreleaser-pro
53-
version: nightly
53+
version: "~> v2"
5454
args: release --clean --nightly -f .goreleaser-nightly.yaml --timeout 60m
5555
env:
5656
GITHUB_TOKEN: ${{ secrets.GH_PAT }}
@@ -60,3 +60,19 @@ jobs:
6060
MACOS_NOTARY_ISSUER_ID: ${{ secrets.MACOS_NOTARY_ISSUER_ID }}
6161
MACOS_NOTARY_KEY_ID: ${{ secrets.MACOS_NOTARY_KEY_ID }}
6262
MACOS_NOTARY_KEY: ${{ secrets.MACOS_NOTARY_KEY }}
63+
notify:
64+
runs-on: ubuntu-latest
65+
needs:
66+
- goreleaser
67+
if: ${{ always() }}
68+
steps:
69+
- name: Notify
70+
uses: nobrayner/discord-webhook@v1
71+
with:
72+
github-token: ${{ secrets.github_token }}
73+
title: "nightly"
74+
description: "goreleaser build finished with status {{STATUS}}"
75+
discord-webhook: ${{ secrets.NIGHTLY_DISCORD_WEBHOOK }}
76+
username: GoReleaser
77+
avatar-url: https://avatars.githubusercontent.com/u/24697112?v=4
78+
include-details: false

goreleaser/.github/workflows/release.yml

Lines changed: 14 additions & 19 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/[email protected].3
20+
- uses: benc-uk/[email protected].4
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/[email protected].3
36+
uses: benc-uk/[email protected].4
3737
with:
3838
token: ${{ secrets.GH_PAT }}
3939
repo: goreleaser/goreleaser-cross
@@ -49,14 +49,14 @@ jobs:
4949
matrix:
5050
format: [deb, rpm, apk]
5151
steps:
52-
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v3
52+
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
5353
with:
5454
fetch-depth: 0
5555
- uses: arduino/setup-task@b91d5d2c96a56797b48ac1e0e89220bf64044611 # v1
5656
with:
5757
version: 3.x
5858
repo-token: ${{ secrets.GITHUB_TOKEN }}
59-
- uses: docker/setup-qemu-action@68827325e0b33c7199eb31dd4e31fbe9023e06e3 # v2
59+
- uses: docker/setup-qemu-action@49b3bc8e6bdd4a60e6116a5414239cba5943d3cf # v2
6060
- uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4
6161
with:
6262
path: |
@@ -70,23 +70,20 @@ jobs:
7070
env:
7171
DOCKER_CLI_EXPERIMENTAL: "enabled"
7272
steps:
73-
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v3
73+
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
7474
with:
7575
fetch-depth: 0
7676
- uses: arduino/setup-task@b91d5d2c96a56797b48ac1e0e89220bf64044611 # v1
7777
with:
7878
version: 3.x
7979
repo-token: ${{ secrets.GITHUB_TOKEN }}
80-
- uses: docker/setup-qemu-action@68827325e0b33c7199eb31dd4e31fbe9023e06e3 # v2
81-
- uses: docker/setup-buildx-action@d70bba72b1f3fd22344832f00baa16ece964efeb # v3
80+
- uses: docker/setup-qemu-action@49b3bc8e6bdd4a60e6116a5414239cba5943d3cf # v2
81+
- uses: docker/setup-buildx-action@988b5a0280414f521da01fcc63a27aeeb4b104db # v3
8282
- name: setup-snapcraft
83-
# FIXME: the mkdirs are a hack for https://github.com/goreleaser/goreleaser/issues/1715
8483
run: |
8584
sudo apt-get update
8685
sudo apt-get -yq --no-install-suggests --no-install-recommends install snapcraft
87-
mkdir -p $HOME/.cache/snapcraft/download
88-
mkdir -p $HOME/.cache/snapcraft/stage-packages
89-
- uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7 # v4
86+
- uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v4
9087
with:
9188
go-version: stable
9289
- uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4
@@ -96,30 +93,27 @@ jobs:
9693
./dist/*.rpm
9794
./dist/*.apk
9895
key: ${{ github.ref }}
99-
- uses: sigstore/cosign-installer@v3.5.0
100-
- uses: anchore/sbom-action/download-syft@v0.16.0
96+
- uses: sigstore/cosign-installer@v3.6.0
97+
- uses: anchore/sbom-action/download-syft@v0.17.2
10198
- uses: crazy-max/ghaction-upx@v3
10299
with:
103100
install-only: true
104-
- uses: cachix/install-nix-action@V27
101+
- uses: cachix/install-nix-action@V28
105102
with:
106103
github_access_token: ${{ secrets.GITHUB_TOKEN }}
107104
- name: dockerhub-login
108105
if: startsWith(github.ref, 'refs/tags/v')
109-
uses: docker/login-action@e92390c5fb421da1463c202d546fed0ec5c39f20 # v2
106+
uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567 # v3
110107
with:
111108
username: ${{ secrets.DOCKER_USERNAME }}
112109
password: ${{ secrets.DOCKER_PASSWORD }}
113110
- name: ghcr-login
114111
if: startsWith(github.ref, 'refs/tags/v')
115-
uses: docker/login-action@e92390c5fb421da1463c202d546fed0ec5c39f20 # v2
112+
uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567 # v3
116113
with:
117114
registry: ghcr.io
118115
username: ${{ github.repository_owner }}
119116
password: ${{ secrets.GITHUB_TOKEN }}
120-
- name: snapcraft-login
121-
if: startsWith(github.ref, 'refs/tags/v')
122-
run: snapcraft login --with <(echo "${{ secrets.SNAPCRAFT_LOGIN }}")
123117
- name: goreleaser-release
124118
env:
125119
GITHUB_TOKEN: ${{ secrets.GH_PAT }}
@@ -140,4 +134,5 @@ jobs:
140134
MACOS_NOTARY_ISSUER_ID: ${{ secrets.MACOS_NOTARY_ISSUER_ID }}
141135
MACOS_NOTARY_KEY_ID: ${{ secrets.MACOS_NOTARY_KEY_ID }}
142136
MACOS_NOTARY_KEY: ${{ secrets.MACOS_NOTARY_KEY }}
137+
SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.SNAPCRAFT_LOGIN }}
143138
run: task goreleaser

goreleaser/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,5 @@ completions/
1515
manpages
1616
output.json
1717
.direnv
18+
*.pyc
1819
!/int/pipe/dist

goreleaser/.golangci.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
run:
2-
go: "1.22"
2+
go: "1.23"
33
timeout: 5m
44
linters:
55
enable:

0 commit comments

Comments
 (0)