Skip to content

Commit ed549e9

Browse files
feat: update goreleaser to v1.9.1
1 parent fbb4910 commit ed549e9

File tree

206 files changed

+5020
-2572
lines changed

Some content is hidden

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

206 files changed

+5020
-2572
lines changed

go.mod

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@ require (
66
github.com/apex/log v1.9.0
77
github.com/fatih/color v1.13.0
88
github.com/go-semantic-release/semantic-release/v2 v2.20.0
9-
github.com/goreleaser/goreleaser v1.6.3
9+
github.com/goreleaser/goreleaser v1.9.1
1010
)
1111

12-
replace github.com/goreleaser/goreleaser v1.6.3 => ./goreleaser
12+
replace github.com/goreleaser/goreleaser v1.9.1 => ./goreleaser
1313

1414
require (
1515
cloud.google.com/go v0.99.0 // indirect
@@ -56,7 +56,7 @@ require (
5656
github.com/aws/aws-sdk-go-v2/service/sts v1.11.1 // indirect
5757
github.com/aws/smithy-go v1.9.0 // indirect
5858
github.com/blakesmith/ar v0.0.0-20190502131153-809d4375e1fb // indirect
59-
github.com/caarlos0/env/v6 v6.9.1 // indirect
59+
github.com/caarlos0/env/v6 v6.9.2 // indirect
6060
github.com/caarlos0/go-reddit/v3 v3.0.1 // indirect
6161
github.com/caarlos0/go-shellwords v1.0.12 // indirect
6262
github.com/cavaliergopher/cpio v1.0.1 // indirect
@@ -81,16 +81,16 @@ require (
8181
github.com/golang-jwt/jwt/v4 v4.2.0 // indirect
8282
github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect
8383
github.com/golang/protobuf v1.5.2 // indirect
84-
github.com/google/go-cmp v0.5.7 // indirect
85-
github.com/google/go-github/v43 v43.0.0 // indirect
84+
github.com/google/go-cmp v0.5.8 // indirect
85+
github.com/google/go-github/v44 v44.1.0 // indirect
8686
github.com/google/go-querystring v1.1.0 // indirect
87-
github.com/google/rpmpack v0.0.0-20211125064518-d0ed9b1b61b9 // indirect
87+
github.com/google/rpmpack v0.0.0-20220314092521-38642b5e571e // indirect
8888
github.com/google/uuid v1.3.0 // indirect
8989
github.com/google/wire v0.5.0 // indirect
9090
github.com/googleapis/gax-go/v2 v2.1.1 // indirect
9191
github.com/goreleaser/chglog v0.1.2 // indirect
9292
github.com/goreleaser/fileglob v1.3.0 // indirect
93-
github.com/goreleaser/nfpm/v2 v2.14.0 // indirect
93+
github.com/goreleaser/nfpm/v2 v2.15.1 // indirect
9494
github.com/gorilla/websocket v1.4.2 // indirect
9595
github.com/hashicorp/go-cleanhttp v0.5.2 // indirect
9696
github.com/hashicorp/go-hclog v1.1.0 // indirect
@@ -121,21 +121,21 @@ require (
121121
github.com/pelletier/go-toml v1.9.4 // indirect
122122
github.com/pkg/errors v0.9.1 // indirect
123123
github.com/sergi/go-diff v1.2.0 // indirect
124-
github.com/slack-go/slack v0.10.2 // indirect
124+
github.com/slack-go/slack v0.10.3 // indirect
125125
github.com/spf13/afero v1.8.0 // indirect
126126
github.com/spf13/cast v1.4.1 // indirect
127-
github.com/spf13/cobra v1.3.0 // indirect
127+
github.com/spf13/cobra v1.4.0 // indirect
128128
github.com/spf13/jwalterweatherman v1.1.0 // indirect
129129
github.com/spf13/pflag v1.0.5 // indirect
130130
github.com/spf13/viper v1.10.1 // indirect
131131
github.com/subosito/gotenv v1.2.0 // indirect
132132
github.com/technoweenie/multipartstreamer v1.0.1 // indirect
133133
github.com/ulikunitz/xz v0.5.10 // indirect
134-
github.com/xanzy/go-gitlab v0.56.0 // indirect
134+
github.com/xanzy/go-gitlab v0.65.0 // indirect
135135
github.com/xanzy/ssh-agent v0.3.1 // indirect
136136
go.opencensus.io v0.23.0 // indirect
137137
gocloud.dev v0.24.0 // indirect
138-
golang.org/x/crypto v0.0.0-20220131195533-30dcbda58838 // indirect
138+
golang.org/x/crypto v0.0.0-20220307211146-efcb8507fb70 // indirect
139139
golang.org/x/net v0.0.0-20220127200216-cd36cc0744dd // indirect
140140
golang.org/x/oauth2 v0.0.0-20211104180415-d3ed0bb246c8 // indirect
141141
golang.org/x/sync v0.0.0-20210220032951-036812b2e83c // indirect

go.sum

Lines changed: 22 additions & 101 deletions
Large diffs are not rendered by default.

goreleaser/.github/gitleaks.toml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
[[rules]]
2+
id = "ignore-testdata"
3+
[rules.allowlist]
4+
paths = [
5+
'''.*/testdata/*''',
6+
]

goreleaser/.github/workflows/build.yml

Lines changed: 18 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -25,15 +25,15 @@ jobs:
2525
matrix:
2626
format: [ deb, rpm, apk ]
2727
steps:
28-
- uses: actions/checkout@v3
28+
- uses: actions/checkout@b0e28b5ac45a892f91e7d036f8200cf5ed489415 # v3
2929
with:
3030
fetch-depth: 0
31-
- uses: arduino/setup-task@v1
31+
- uses: arduino/setup-task@ca745e18916de727f841ec824ac20a615f1cddea # v1
3232
with:
3333
version: 3.x
3434
repo-token: ${{ secrets.GITHUB_TOKEN }}
35-
- uses: docker/setup-qemu-action@v1
36-
- uses: actions/cache@v2
35+
- uses: docker/setup-qemu-action@8b122486cedac8393e77aa9734c3528886e4a1a8 # v1
36+
- uses: actions/cache@661fd3eb7f2f20d8c7c84bc2b0509efd7a826628 # v2
3737
with:
3838
path: |
3939
./dist/*.deb
@@ -46,65 +46,59 @@ jobs:
4646
env:
4747
DOCKER_CLI_EXPERIMENTAL: "enabled"
4848
steps:
49-
- uses: actions/checkout@v3
49+
- uses: actions/checkout@b0e28b5ac45a892f91e7d036f8200cf5ed489415 # v3
5050
with:
5151
fetch-depth: 0
52-
- uses: arduino/setup-task@v1
52+
- uses: arduino/setup-task@ca745e18916de727f841ec824ac20a615f1cddea # v1
5353
with:
5454
version: 3.x
5555
repo-token: ${{ secrets.GITHUB_TOKEN }}
56-
- uses: docker/setup-qemu-action@v1
57-
- uses: docker/setup-buildx-action@v1
58-
- name: setup-buildpacks
59-
run: |
60-
sudo add-apt-repository ppa:cncf-buildpacks/pack-cli
61-
sudo apt-get update
62-
sudo apt-get --no-install-suggests --no-install-recommends install pack-cli
56+
- uses: docker/setup-qemu-action@8b122486cedac8393e77aa9734c3528886e4a1a8 # v1
57+
- uses: docker/setup-buildx-action@dc7b9719a96d48369863986a06765841d7ea23f6 # v1
6358
- name: setup-snapcraft
6459
# FIXME: the mkdirs are a hack for https://github.com/goreleaser/goreleaser/issues/1715
6560
run: |
6661
sudo apt-get update
6762
sudo apt-get -yq --no-install-suggests --no-install-recommends install snapcraft
6863
mkdir -p $HOME/.cache/snapcraft/download
6964
mkdir -p $HOME/.cache/snapcraft/stage-packages
70-
- uses: actions/setup-go@v2
65+
- uses: actions/setup-go@fcdc43634adb5f7ae75a9d7a9b9361790f7293e2 # v2
7166
with:
72-
go-version: '1.17'
73-
- uses: actions/cache@v2
67+
go-version: '1.18'
68+
- uses: actions/cache@661fd3eb7f2f20d8c7c84bc2b0509efd7a826628 # v2
7469
with:
7570
path: |
7671
~/go/pkg/mod
7772
~/.cache/go-build
7873
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
7974
restore-keys: |
8075
${{ runner.os }}-go-
81-
- uses: actions/cache@v2
76+
- uses: actions/cache@661fd3eb7f2f20d8c7c84bc2b0509efd7a826628 # v2
8277
with:
8378
path: |
8479
./dist/*.deb
8580
./dist/*.rpm
8681
./dist/*.apk
8782
key: ${{ runner.os }}-go-${{ hashFiles('**/*.go') }}-${{ hashFiles('**/go.sum') }}
88-
- uses: sigstore/[email protected]
89-
- uses: anchore/sbom-action/download-syft@v0.7.0
83+
- uses: sigstore/cosign-installer@ab3bb6a537fb08a1b78f7d1175fff799ca6850a3 # v2.1.0
84+
- uses: anchore/sbom-action/download-syft@bb716408e75840bbb01e839347cd213767269d4a # v0.10.0
9085
- name: setup-validate-krew-manifest
91-
# TODO: replace this once https://github.com/kubernetes-sigs/krew/pull/736 is merged
92-
run: go install github.com/caarlos0/krew/cmd/validate-krew-manifest@fork
86+
run: go install sigs.k8s.io/krew/cmd/validate-krew-manifest@latest
9387
- run: task ci
94-
- uses: codecov/codecov-action@v2
88+
- uses: codecov/codecov-action@81cd2dc8148241f03f5839d295e000b8f761e378 # v3
9589
with:
9690
file: ./coverage.txt
9791
- run: ./goreleaser check
9892
- run: git diff
9993
- name: dockerhub-login
10094
if: startsWith(github.ref, 'refs/tags/v')
101-
uses: docker/login-action@v1
95+
uses: docker/login-action@49ed152c8eca782a232dede0303416e8f356c37b # v1
10296
with:
10397
username: ${{ secrets.DOCKER_USERNAME }}
10498
password: ${{ secrets.DOCKER_PASSWORD }}
10599
- name: ghcr-login
106100
if: startsWith(github.ref, 'refs/tags/v')
107-
uses: docker/login-action@v1
101+
uses: docker/login-action@49ed152c8eca782a232dede0303416e8f356c37b # v1
108102
with:
109103
registry: ghcr.io
110104
username: ${{ github.repository_owner }}

goreleaser/.github/workflows/codeql.yml

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

1717
steps:
18-
- uses: actions/checkout@v3
19-
- uses: github/codeql-action/init@v1
20-
- uses: github/codeql-action/autobuild@v1
21-
- uses: github/codeql-action/analyze@v1
18+
- uses: actions/checkout@b0e28b5ac45a892f91e7d036f8200cf5ed489415 # v3
19+
- uses: github/codeql-action/init@a3a6c128d771b6b9bdebb1c9d0583ebd2728a108 # v2
20+
- uses: github/codeql-action/autobuild@a3a6c128d771b6b9bdebb1c9d0583ebd2728a108 # v2
21+
- uses: github/codeql-action/analyze@a3a6c128d771b6b9bdebb1c9d0583ebd2728a108 # v2
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
name: dependency-review
2+
on: [pull_request]
3+
4+
permissions:
5+
contents: read
6+
7+
jobs:
8+
dependency-review:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v3
12+
- uses: actions/dependency-review-action@v1

goreleaser/.github/workflows/docs.yml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,19 +10,22 @@ on:
1010
paths:
1111
- 'www/*'
1212

13+
permissions:
14+
contents: read
15+
1316
jobs:
1417
htmltest:
1518
runs-on: ubuntu-latest
1619
steps:
17-
- uses: actions/checkout@v3
18-
- uses: arduino/setup-task@v1
20+
- uses: actions/checkout@b0e28b5ac45a892f91e7d036f8200cf5ed489415 # v3
21+
- uses: arduino/setup-task@ca745e18916de727f841ec824ac20a615f1cddea # v1
1922
with:
2023
repo-token: ${{ secrets.GITHUB_TOKEN }}
21-
- uses: actions/setup-go@v2
24+
- uses: actions/setup-go@fcdc43634adb5f7ae75a9d7a9b9361790f7293e2 # v2
2225
with:
23-
go-version: 1.17
26+
go-version: 1.18
2427
- run: task docs:build
25-
- uses: wjdp/htmltest-action@master
28+
- uses: wjdp/htmltest-action@09118714cd26bef56bd3d0819e4f9b1dce6f60a9 # master
2629
with:
2730
path: www/site
2831
config: www/htmltest.yml

goreleaser/.github/workflows/generate.yml

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,22 +10,27 @@ on:
1010
- CONTRIBUTING.md
1111
- USERS.md
1212

13+
permissions:
14+
contents: read
15+
1316
jobs:
1417
docs:
18+
permissions:
19+
contents: write # for stefanzweifel/git-auto-commit-action to push code in repo
1520
runs-on: ubuntu-latest
1621
steps:
17-
- uses: actions/checkout@v3
22+
- uses: actions/checkout@b0e28b5ac45a892f91e7d036f8200cf5ed489415 # v3
1823
with:
1924
token: ${{ secrets.GH_PAT }}
20-
- uses: actions/setup-go@v2
25+
- uses: actions/setup-go@fcdc43634adb5f7ae75a9d7a9b9361790f7293e2 # v2
2126
with:
22-
go-version: 1.17
23-
- uses: arduino/setup-task@v1
27+
go-version: 1.18
28+
- uses: arduino/setup-task@ca745e18916de727f841ec824ac20a615f1cddea # v1
2429
- run: task docs:generate
2530
- run: task schema:generate
26-
- uses: stefanzweifel/git-auto-commit-action@v4
31+
- uses: stefanzweifel/git-auto-commit-action@49620cd3ed21ee620a48530e81dba0d139c9cb80 # v4
2732
with:
28-
commit_message: "docs: update"
33+
commit_message: "chore: docs auto-update"
2934
branch: main
3035
commit_user_name: actions-user
3136
commit_user_email: [email protected]
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
name: gitleaks
2+
3+
on: [push,pull_request]
4+
5+
permissions:
6+
contents: read
7+
8+
jobs:
9+
gitleaks:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v1
13+
- uses: zricethezav/gitleaks-action@master
14+
with:
15+
config-path: .github/gitleaks.toml

goreleaser/.github/workflows/lint.yml

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,23 @@ on:
66
branches:
77
- main
88
pull_request:
9+
permissions:
10+
contents: read
11+
912
jobs:
1013
golangci:
14+
permissions:
15+
contents: read # for actions/checkout to fetch code
16+
pull-requests: read # for golangci/golangci-lint-action to fetch pull requests
1117
name: lint
1218
runs-on: ubuntu-latest
1319
steps:
14-
- uses: actions/setup-go@v2
20+
- uses: actions/setup-go@fcdc43634adb5f7ae75a9d7a9b9361790f7293e2 # v2
1521
with:
16-
go-version: ~1.17
17-
- uses: actions/checkout@v3
22+
go-version: ~1.18
23+
- uses: actions/checkout@b0e28b5ac45a892f91e7d036f8200cf5ed489415 # v3
1824
- name: golangci-lint
19-
uses: golangci/golangci-lint-action@v3
25+
uses: golangci/golangci-lint-action@537aa1903e5d359d0b27dbc19ddd22c5087f3fbc # v3
2026
with:
2127
skip-go-installation: true
2228
args: --timeout=5m

0 commit comments

Comments
 (0)