mirror of
https://github.com/ossf/scorecard.git
synced 2024-11-12 17:12:47 +03:00
6cae56f02b
* 🌱 Bump goreleaser/goreleaser-action from 5.1.0 to 6.0.0
Bumps [goreleaser/goreleaser-action](https://github.com/goreleaser/goreleaser-action) from 5.1.0 to 6.0.0.
- [Release notes](https://github.com/goreleaser/goreleaser-action/releases)
- [Commits](5742e2a039...286f3b13b1
)
---
updated-dependencies:
- dependency-name: goreleaser/goreleaser-action
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
* use --clean instead of --rm-dist
https: //goreleaser.com/deprecations#-rm-dist
Signed-off-by: Spencer Schrock <sschrock@google.com>
* the skip arguments were combined into --skip
https://goreleaser.com/deprecations/#-skip
Signed-off-by: Spencer Schrock <sschrock@google.com>
* update config for v2
Signed-off-by: Spencer Schrock <sschrock@google.com>
* use goreleaser v2 tooling for makefile
Signed-off-by: Spencer Schrock <sschrock@google.com>
---------
Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: Spencer Schrock <sschrock@google.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Spencer Schrock <sschrock@google.com>
Co-authored-by: Stephen Augustus <justaugustus@users.noreply.github.com>
104 lines
3.0 KiB
YAML
104 lines
3.0 KiB
YAML
version: 2
|
|
project_name: scorecard
|
|
env:
|
|
- GO111MODULE=on
|
|
# https://stackoverflow.com/a/62821358/19407
|
|
- CGO_ENABLED=0
|
|
before:
|
|
hooks:
|
|
- go mod download
|
|
gomod:
|
|
proxy: true
|
|
builds:
|
|
- id: linux
|
|
binary: scorecard-linux-{{ .Arch }}
|
|
no_unique_dist_dir: true
|
|
flags:
|
|
# trimpath is for reproducible builds
|
|
# remove all file system paths from the resulting executable.
|
|
# Instead of absolute file system paths, the recorded file names
|
|
# will begin with either "go" (for the standard library),
|
|
# or a module path@version (when using modules),
|
|
# or a plain import path (when using GOPATH).
|
|
- -trimpath
|
|
- -tags=netgo
|
|
# Set the modified timestamp on the output binary, typically
|
|
# you would do this to ensure a build was reproducible. Pass
|
|
# empty string to skip modifying the output.
|
|
# Default is empty string.
|
|
mod_timestamp: '{{ .CommitTimestamp }}'
|
|
goos:
|
|
- linux
|
|
goarch:
|
|
- amd64
|
|
- arm64
|
|
ldflags:
|
|
- -s {{.Env.VERSION_LDFLAGS}}
|
|
|
|
- id: darwin
|
|
binary: scorecard-darwin-{{ .Arch }}
|
|
no_unique_dist_dir: true
|
|
flags:
|
|
# trimpath is for reproducible builds
|
|
# remove all file system paths from the resulting executable.
|
|
# Instead of absolute file system paths, the recorded file names
|
|
# will begin with either "go" (for the standard library),
|
|
# or a module path@version (when using modules),
|
|
# or a plain import path (when using GOPATH).
|
|
- -trimpath
|
|
- -tags=netgo
|
|
# Set the modified timestamp on the output binary, typically
|
|
# you would do this to ensure a build was reproducible. Pass
|
|
# empty string to skip modifying the output.
|
|
# Default is empty string.
|
|
mod_timestamp: '{{ .CommitTimestamp }}'
|
|
goos:
|
|
- darwin
|
|
goarch:
|
|
- amd64
|
|
- arm64
|
|
ldflags:
|
|
- -s {{.Env.VERSION_LDFLAGS}}
|
|
|
|
- id: windows
|
|
binary: scorecard-windows-{{ .Arch }}
|
|
no_unique_dist_dir: true
|
|
flags:
|
|
# trimpath is for reproducible builds
|
|
# remove all file system paths from the resulting executable.
|
|
# Instead of absolute file system paths, the recorded file names
|
|
# will begin with either "go" (for the standard library),
|
|
# or a module path@version (when using modules),
|
|
# or a plain import path (when using GOPATH).
|
|
- -trimpath
|
|
- -tags=netgo
|
|
# Set the modified timestamp on the output binary, typically
|
|
# you would do this to ensure a build was reproducible. Pass
|
|
# empty string to skip modifying the output.
|
|
# Default is empty string.
|
|
mod_timestamp: '{{ .CommitTimestamp }}'
|
|
goos:
|
|
- windows
|
|
goarch:
|
|
- amd64
|
|
- arm64
|
|
ldflags:
|
|
- -buildmode=exe
|
|
- -s {{.Env.VERSION_LDFLAGS}}
|
|
|
|
checksum:
|
|
# Algorithm to be used.
|
|
# Accepted options are sha256, sha512, sha1, crc32, md5, sha224 and sha384.
|
|
# Default is sha256.
|
|
name_template: "{{ .ProjectName }}_checksums.txt"
|
|
|
|
snapshot:
|
|
name_template: SNAPSHOT-{{ .ShortCommit }}
|
|
changelog:
|
|
# Set it to true if you wish to skip the changelog generation.
|
|
# This may result in an empty release notes on GitHub/GitLab/Gitea.
|
|
disable: false
|
|
release:
|
|
footer: |
|
|
### Thanks for all contributors!
|