Skip to content

Commit 1ab6284

Browse files
authored
Merge pull request #549 from cpanato/fix-release-binari-name
fix release binary name
2 parents f93d90e + 56311d9 commit 1ab6284

File tree

5 files changed

+33
-10
lines changed

5 files changed

+33
-10
lines changed

.github/workflows/docs.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
name: github pages
2-
permissions:
3-
contents: write
2+
43
on:
54
push:
65
paths:
@@ -9,9 +8,15 @@ on:
98
branches:
109
- main # Set a branch to deploy
1110

11+
permissions: {}
12+
1213
jobs:
1314
deploy:
1415
runs-on: ubuntu-latest
16+
17+
permissions:
18+
contents: write
19+
1520
steps:
1621
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
1722
with:

.github/workflows/release.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ on:
55
tags:
66
- 'v*'
77

8+
permissions: {}
9+
810
jobs:
911
release:
1012
runs-on: ubuntu-latest
@@ -22,8 +24,9 @@ jobs:
2224

2325
- uses: actions/setup-go@3041bf56c941b39c61721a86cd11f3bb1338122a # v5.2.0
2426
with:
25-
go-version: '1.24'
27+
go-version: '1.25'
2628
check-latest: true
29+
cache: false
2730

2831
- name: Install cosign
2932
uses: sigstore/cosign-installer@dc72c7d5c4d10cd6bcb8cf6e3fd625a9e5e537da # v3.7.0

.github/workflows/snapshot.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,19 +5,27 @@ on:
55
branches:
66
- 'main'
77
pull_request:
8+
branches:
9+
- 'main'
10+
11+
permissions: {}
812

913
jobs:
1014
snapshot:
1115
runs-on: ubuntu-latest
1216

17+
permissions:
18+
contents: read
19+
1320
steps:
1421
- name: Check out code onto GOPATH
1522
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
1623

1724
- uses: actions/setup-go@3041bf56c941b39c61721a86cd11f3bb1338122a # v5.2.0
1825
with:
19-
go-version: '1.24'
26+
go-version: '1.25'
2027
check-latest: true
28+
cache: false
2129

2230
- name: Install GoReleaser
2331
uses: goreleaser/goreleaser-action@9ed2f89a662bf1735a48bc8557fd212fa902bebf # v6.1.0
@@ -32,5 +40,5 @@ jobs:
3240

3341
- name: check binary
3442
run: |
35-
./dist/bom-amd64-linux version
43+
./dist/bom_linux_amd64_v1/bom version
3644
cat ./dist/bom.json.spdx

.github/workflows/verify-spdx.yaml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,25 @@ name: Validate SPDX Conformance
22

33
on:
44
pull_request:
5-
branches: ['main']
5+
branches:
6+
- 'main'
7+
8+
permissions: {}
69

710
jobs:
811
check-spdx:
912
name: Check SPDX SBOMs
1013
runs-on: ubuntu-latest
14+
15+
permissions:
16+
contents: read
17+
1118
steps:
1219
- uses: actions/setup-go@3041bf56c941b39c61721a86cd11f3bb1338122a # v3.3.0
1320
with:
14-
go-version: '1.24'
21+
go-version: '1.25'
1522
check-latest: true
23+
cache: false
1624

1725
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
1826
- run: |

.goreleaser.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@ gomod:
1616

1717
builds:
1818
- id: bom
19-
no_unique_dist_dir: true
20-
binary: bom-{{ .Arch }}-{{ .Os }}
2119
main: ./cmd/bom
2220
goos:
2321
- darwin
@@ -48,6 +46,7 @@ builds:
4846
archives:
4947
- formats:
5048
- binary
49+
name_template: "{{ .ProjectName }}-{{ .Arch }}-{{ .Os }}"
5150
allow_different_binary_count: true
5251

5352
signs:
@@ -61,7 +60,7 @@ signs:
6160

6261
sboms:
6362
- id: bom
64-
cmd: ./bom-amd64-linux
63+
cmd: ./bom_linux_amd64_v1/bom
6564
args:
6665
- generate
6766
- "--output"

0 commit comments

Comments
 (0)