-
Notifications
You must be signed in to change notification settings - Fork 36
Expand file tree
/
Copy pathaction.yml
More file actions
31 lines (25 loc) · 949 Bytes
/
action.yml
File metadata and controls
31 lines (25 loc) · 949 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
---
name: Bootstrap Checkout
description: Ensures all actions bootstrap the same
inputs:
goreleaser:
description: 'Install goreleaser toolchain ("true" or "false")'
required: false
default: "false"
runs:
using: "composite"
steps:
- uses: actions/setup-go@v6
with:
go-version-file: 'go.mod'
- uses: docker/setup-qemu-action@c7c53464625b32c7a7e944ae62b3e17d2b600130 # v3
if: "${{ inputs.goreleaser == 'true' }}"
with:
platforms: linux/arm64, linux/amd64
- name: Set up Docker Buildx
if: "${{ inputs.goreleaser == 'true' }}"
uses: docker/setup-buildx-action@8d2750c68a42422c14e847fe6c8ac0403b4cbd6f
# See https://goreleaser.com/blog/supply-chain-security/
- name: installs syft for generating the SBOM with goreleaser
if: "${{ inputs.goreleaser == 'true' }}"
uses: anchore/sbom-action/download-syft@a930d0ac434e3182448fe678398ba5713717112a # v0.21.0