We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Describe the bug While the example at https://github.com/slsa-framework/slsa-github-generator/tree/main/internal/builders/go#configuration-file shows that Go templates are evaluated in the key ldflags, this is not the case for keys goos and goarch.
To Reproduce Steps to reproduce the behavior:
Use this form in .slsa-goreleaser.yml:
goos: "{{.Env.GOOS}}"
Use this form in the github actions workflow:
jobs: build: (...) strategy: matrix: os: - darwin - linux - window arch: - amd64 - arm64 uses: slsa-framework/slsa-github-generator/.github/workflows/builder_go_slsa3.yml@v1.9.0 with: go-version: 1.21 evaluated-envs: "GOOS:${{matrix.os}}, GOARCH:${{matrix.arch}}"
Expected behavior A single .slsa-goreleaser.yml can be used even for cross-compiling.
The text was updated successfully, but these errors were encountered:
Related to #63
Sorry, something went wrong.
No branches or pull requests
Describe the bug
While the example at https://github.com/slsa-framework/slsa-github-generator/tree/main/internal/builders/go#configuration-file shows that Go templates are evaluated in the key ldflags, this is not the case for keys goos and goarch.
To Reproduce
Steps to reproduce the behavior:
Use this form in .slsa-goreleaser.yml:
Use this form in the github actions workflow:
Expected behavior
A single .slsa-goreleaser.yml can be used even for cross-compiling.
The text was updated successfully, but these errors were encountered: