slsa-framework / slsa-github-generator

Language-agnostic SLSA provenance generation for Github Actions
Apache License 2.0
430 stars 129 forks source link

[feature] Run `go generate ./...` before build #3874

Open OpenWaygate opened 1 month ago

OpenWaygate commented 1 month ago

Is your feature request related to a problem? Please describe. Some files need to be generated, which will be used in go build

Describe the solution you'd like Add another field in Configuration File, such as generate, to allow user customize the generation.

# Version for this file.
version: 1

generate: "./..." # go generate ./...
generate: ""      # leave empty to skip go generate

Describe alternatives you've considered

Additional context

ramonpetgrave64 commented 1 month ago

Can you add more details?