File tree Expand file tree Collapse file tree 2 files changed +19
-0
lines changed Expand file tree Collapse file tree 2 files changed +19
-0
lines changed Original file line number Diff line number Diff line change 77 tags :
88 - v*.*.*
99
10+ permissions :
11+ contents : write
12+ id-token : write
13+
1014jobs :
1115 goreleaser :
1216 runs-on : ubuntu-latest
1721 uses : actions/setup-go@v3
1822 with :
1923 go-version-file : ' go.mod'
24+ - name : Install Cosign
25+ uses : sigstore/cosign-installer@v2
2026 - name : Run GoReleaser
2127 uses : goreleaser/goreleaser-action@v3
2228 with :
Original file line number Diff line number Diff line change @@ -22,6 +22,19 @@ changelog:
2222 skip : true
2323checksum :
2424 name_template : ' checksums.txt'
25+ signs :
26+ - cmd : cosign
27+ env :
28+ - COSIGN_EXPERIMENTAL=1
29+ signature : ' ${artifact}.keyless.sig'
30+ certificate : ' ${artifact}.pem'
31+ output : true
32+ artifacts : checksum
33+ args :
34+ - sign-blob
35+ - ' --output-certificate=${certificate}'
36+ - ' --output-signature=${signature}'
37+ - ' ${artifact}'
2538release :
2639 github :
2740 owner : terraform-linters
You can’t perform that action at this time.
0 commit comments