Merge pull request #324 from kubernetes-sigs/dependabot/github_action… #155
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Snapshot | |
on: | |
push: | |
branches: | |
- 'main' | |
pull_request: | |
jobs: | |
snapshot: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out code onto GOPATH | |
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3 | |
- uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe # v4.1.0 | |
with: | |
go-version: '1.20' | |
check-latest: true | |
- name: Install GoReleaser | |
uses: goreleaser/goreleaser-action@336e29918d653399e599bfca99fadc1d7ffbc9f7 # v4.3.0 | |
with: | |
install-only: true | |
- name: Run Mage | |
uses: magefile/mage-action@3b833fb24c0d19eed3aa760b9eb285b4b84f420f # v2.3.0 | |
with: | |
version: latest | |
args: buildBinariesSnapshot | |
- name: check binary | |
run: | | |
./dist/bom-amd64-linux version | |
cat ./dist/bom.json.spdx |