-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: laurentsimon <[email protected]>
- Loading branch information
1 parent
ab89017
commit a7fc961
Showing
3 changed files
with
59 additions
and
2 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
name: CLI release | ||
|
||
on: | ||
# For manual tests. | ||
workflow_dispatch: | ||
push: | ||
tags: | ||
- "*" # triggers only if push new tag version, like `0.8.4` or else | ||
|
||
permissions: read-all | ||
|
||
jobs: | ||
evaluator: | ||
permissions: | ||
id-token: write # For signing. | ||
contents: write # For asset uploads. | ||
actions: read # For the entrypoint. | ||
uses: slsa-framework/slsa-github-generator/.github/workflows/[email protected] | ||
with: | ||
go-version-file: "./cmd/evaluator/go.mod" | ||
config-file: .github/workflows/release/slsa-evaluator.yml |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
# Version for this file. | ||
version: 1 | ||
|
||
# (Optional) List of env variables used during compilation. | ||
env: | ||
- GO111MODULE=on | ||
- CGO_ENABLED=0 | ||
|
||
# (Optional) Flags for the compiler. | ||
flags: | ||
- -trimpath | ||
- -tags=netgo | ||
|
||
# The OS to compile for. `GOOS` env variable will be set to this value. | ||
goos: linux | ||
|
||
# The architecture to compile for. `GOARCH` env variable will be set to this value. | ||
goarch: amd64 | ||
|
||
# (Optional) Entrypoint to compile. | ||
# main: ./path/to/main.go | ||
|
||
# (Optional) Working directory. (default: root of the project) | ||
dir: ./cmd/evaluator | ||
|
||
# Binary output name. | ||
# {{ .Os }} will be replaced by goos field in the config file. | ||
# {{ .Arch }} will be replaced by goarch field in the config file. | ||
binary: binary-{{ .Os }}-{{ .Arch }} | ||
|
||
# (Optional) ldflags generated dynamically in the workflow, and set as the `evaluated-envs` input variables in the workflow. | ||
# ldflags: | ||
# - "-X main.Version={{ .Env.VERSION }}" | ||
# - "-X main.Commit={{ .Env.COMMIT }}" | ||
# - "-X main.CommitDate={{ .Env.COMMIT_DATE }}" | ||
# - "-X main.TreeState={{ .Env.TREE_STATE }}" |
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