Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateProvenance ¶
GenerateProvenance translates github context into a SLSA provenance attestation. Spec: https://slsa.dev/provenance/v0.1
Types ¶
type GitHubContext ¶
type GitHubContext struct { Repository string `json:"repository"` ActionPath string `json:"action_path"` Workflow string `json:"workflow"` RunId string `json:"run_id"` EventName string `json:"event_name"` SHA string `json:"sha"` Token string `json:"token,omitempty"` RunNumber string `json:"run_number"` }
type GoBuild ¶
type GoBuild struct {
// contains filtered or unexported fields
}
func GoBuildNew ¶
func GoBuildNew(goc string, cfg *GoReleaserConfig) *GoBuild
func (*GoBuild) SetArgEnvVariables ¶
type GoReleaserConfig ¶
type GoReleaserConfig struct { Goos string Goarch string Env map[string]string Flags []string Ldflags []string Binary string }
func ConfigFromFile ¶
func ConfigFromFile(pathfn string) (*GoReleaserConfig, error)
Click to show internal directories.
Click to hide internal directories.