Skip to content

Commit 86d2585

Browse files
committed
chore: update gorelease config to enable immutable releases
Signed-off-by: John Kjell <john.kjell@control-plane.io>
1 parent ac66267 commit 86d2585

5 files changed

Lines changed: 5 additions & 10 deletions

File tree

.github/workflows/codeql.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,6 @@ on:
1717
pull_request:
1818
# The branches below must be a subset of the branches above
1919
branches: ["main"]
20-
paths:
21-
- "**.go"
22-
- "go.mod"
23-
- ".github/workflows/codeql.yml"
2420
schedule:
2521
- cron: "0 0 * * 1"
2622

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ jobs:
124124
uses: anchore/sbom-action/download-syft@fbfd9c6c189226748411491745178e0c2017392d # v0.20.10
125125

126126
- name: Download GoReleaser
127-
run: go install github.com/goreleaser/goreleaser@v1.23.0
127+
run: go install github.com/goreleaser/goreleaser/v2@v2.13.1
128128

129129
- name: Run GoReleaser
130130
uses: testifysec/witness-run-action@7aa15e327829f1f2a523365c564c948d5dde69dd

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,4 @@ test/log
1919
node_modules
2020
.DS_Store
2121
docs-website/.docusaurus
22+
profile.cov

.goreleaser.yaml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,10 @@ source:
2323
enabled: true
2424
signs:
2525
- cmd: cosign
26-
certificate: '${artifact}.pem'
27-
signature: '${artifact}.sig'
26+
signature: '${artifact}.sigstore.json'
2827
args:
2928
- "sign-blob"
30-
- "--output-signature=${signature}"
31-
- '--output-certificate=${certificate}'
29+
- "--bundle=${signature}"
3230
- "${artifact}"
3331
- "--yes" # needed on cosign 2.0.0+
3432
artifacts: all

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/in-toto/witness
22

3-
go 1.25.0
3+
go 1.25.5
44

55
require (
66
github.com/gobwas/glob v0.2.3

0 commit comments

Comments
 (0)