You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The builder takes an input envs to pass environment variables generated at build time (e.g., ldflags).
Static env variables are declared in the .slsa-goreleaser.yml file.
Shall we rename envs to dynenvs/dyn_envs/dynamic_envs?
The text was updated successfully, but these errors were encountered:
Context: env variables are defined in the config file by a user. But env variables that need to be dynamically resolved at compile time (LDFLAGS, e.g. to retrieve the Git version) need to use this input:
uses: slsa-framework/slsa-github-generator-go/.github/workflows/builder.yml@main
with:
# Optional: only needed if using ldflags.
env: "VERSION_LDFLAGS:${{needs.args.outputs.ldflags}}"
I''m suggesting we use dynenv: "VERSION_LDFLAGS:${{needs.args.outputs.ldflags}}" or something to this effect instead.
I like dynamic_env, generated_env or evaluated_env. My preference is that we indicate separate words (though I am open to camel case, rather than snake case) and that we use full words. I like "evaluated" and "generated" as "dynamic" may imply that it can change on each invocation of the workflow.
The builder takes an input
envs
to pass environment variables generated at build time (e.g., ldflags).Static env variables are declared in the .slsa-goreleaser.yml file.
Shall we rename
envs
todynenvs
/dyn_envs
/dynamic_envs
?The text was updated successfully, but these errors were encountered: