File tree Expand file tree Collapse file tree 5 files changed +33
-10
lines changed
Expand file tree Collapse file tree 5 files changed +33
-10
lines changed Original file line number Diff line number Diff line change 11name : github pages
2- permissions :
3- contents : write
2+
43on :
54 push :
65 paths :
98 branches :
109 - main # Set a branch to deploy
1110
11+ permissions : {}
12+
1213jobs :
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 :
Original file line number Diff line number Diff line change 55 tags :
66 - ' v*'
77
8+ permissions : {}
9+
810jobs :
911 release :
1012 runs-on : ubuntu-latest
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
Original file line number Diff line number Diff line change 55 branches :
66 - ' main'
77 pull_request :
8+ branches :
9+ - ' main'
10+
11+ permissions : {}
812
913jobs :
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
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
Original file line number Diff line number Diff line change @@ -2,17 +2,25 @@ name: Validate SPDX Conformance
22
33on :
44 pull_request :
5- branches : ['main']
5+ branches :
6+ - ' main'
7+
8+ permissions : {}
69
710jobs :
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 : |
Original file line number Diff line number Diff line change 1616
1717builds :
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:
4846archives :
4947 - formats :
5048 - binary
49+ name_template : " {{ .ProjectName }}-{{ .Arch }}-{{ .Os }}"
5150 allow_different_binary_count : true
5251
5352signs :
6160
6261sboms :
6362 - id : bom
64- cmd : ./bom-amd64-linux
63+ cmd : ./bom_linux_amd64_v1/ bom
6564 args :
6665 - generate
6766 - " --output"
You can’t perform that action at this time.
0 commit comments