mirror of
https://github.com/securego/gosec.git
synced 2024-11-05 11:35:51 +00:00
a3299ce10c
Change-Id: Id759cc78f3c8f3c69864311e91dd64cbacb1b958 Signed-off-by: Cosmin Cojocar <ccojocar@google.com>
38 lines
616 B
YAML
38 lines
616 B
YAML
---
|
|
version: 2
|
|
project_name: gosec
|
|
|
|
release:
|
|
extra_files:
|
|
- glob: ./bom.json
|
|
github:
|
|
owner: securego
|
|
name: gosec
|
|
|
|
builds:
|
|
- main: ./cmd/gosec/
|
|
binary: gosec
|
|
goos:
|
|
- darwin
|
|
- linux
|
|
- windows
|
|
goarch:
|
|
- amd64
|
|
- arm64
|
|
- s390x
|
|
- ppc64le
|
|
ldflags: -X main.Version={{.Version}} -X main.GitTag={{.Tag}} -X main.BuildDate={{.Date}}
|
|
env:
|
|
- CGO_ENABLED=0
|
|
|
|
signs:
|
|
- cmd: cosign
|
|
stdin: '{{ .Env.COSIGN_PASSWORD}}'
|
|
args:
|
|
- "sign-blob"
|
|
- "--key=/tmp/cosign.key"
|
|
- "--output=${signature}"
|
|
- "${artifact}"
|
|
- "--yes"
|
|
artifacts: all
|
|
|