Skip to content

Commit d732212

Browse files
committed
Update Github actions
- Pin action versions - Update nancy to use --guide-token - Mirror all steps from build to release
1 parent 5f8f067 commit d732212

2 files changed

Lines changed: 15 additions & 8 deletions

File tree

.github/workflows/build.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,24 +5,24 @@ on:
55
branches:
66
- '*'
77
tags-ignore:
8-
- 'v*'
8+
- v*
99

1010
jobs:
1111
build:
1212
runs-on: ubuntu-24.04
1313
steps:
14-
- uses: actions/checkout@v6
14+
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
1515
with:
1616
fetch-depth: 0
17-
- uses: actions/setup-go@v6
17+
- uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6.4.0
1818
with:
1919
go-version: stable
20-
- uses: golangci/golangci-lint-action@v9
20+
- uses: golangci/golangci-lint-action@82606bf257cbaff209d206a39f5134f0cfbfd2ee # v9.2.1
2121
- name: go list
2222
run: go list -json -deps ./... > go.list
23-
- uses: sonatype-nexus-community/nancy-github-action@main
23+
- uses: sonatype-nexus-community/nancy-github-action@aae196481b961d446f4bff9012e4e3b63d7921a4 # v1.0.2
2424
with:
25-
nancyCommand: sleuth --username ${{ vars.OSSI_USERNAME }} --token ${{ secrets.OSSI_TOKEN }}
25+
nancyCommand: sleuth --username ${{ vars.OSSI_USERNAME }} --guide-token ${{ secrets.OSSI_TOKEN }}
2626
- run: make test
2727
- run: make build-all
2828
env:

.github/workflows/release.yaml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,19 @@ jobs:
99
release:
1010
runs-on: ubuntu-24.04
1111
steps:
12-
- uses: actions/checkout@v6
12+
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
1313
with:
1414
fetch-depth: 0
15-
- uses: actions/setup-go@v6
15+
- uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6.4.0
1616
with:
1717
go-version: stable
18+
- uses: golangci/golangci-lint-action@82606bf257cbaff209d206a39f5134f0cfbfd2ee # v9.2.1
19+
- name: go list
20+
run: go list -json -deps ./... > go.list
21+
- uses: sonatype-nexus-community/nancy-github-action@aae196481b961d446f4bff9012e4e3b63d7921a4 # v1.0.2
22+
with:
23+
nancyCommand: sleuth --username ${{ vars.OSSI_USERNAME }} --guide-token ${{ secrets.OSSI_TOKEN }}
24+
- run: make test
1825
- run: make build-all
1926
env:
2027
BUILD_USER: github-action

0 commit comments

Comments
 (0)