File tree 2 files changed +19
-0
lines changed
2 files changed +19
-0
lines changed Original file line number Diff line number Diff line change 7
7
tags :
8
8
- v*.*.*
9
9
10
+ permissions :
11
+ contents : write
12
+ id-token : write
13
+
10
14
jobs :
11
15
goreleaser :
12
16
runs-on : ubuntu-latest
20
24
with :
21
25
go-version-file : ' go.mod'
22
26
cache : true
27
+ - name : Install Cosign
28
+ uses : sigstore/cosign-installer@v2
23
29
- name : Run GoReleaser
24
30
uses : goreleaser/goreleaser-action@v3
25
31
with :
Original file line number Diff line number Diff line change @@ -22,6 +22,19 @@ changelog:
22
22
skip : true
23
23
checksum :
24
24
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}'
25
38
release :
26
39
github :
27
40
owner : terraform-linters
You can’t perform that action at this time.
0 commit comments