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
returnerrorutils.CheckErrorf("--%s is required with --%s (or set %s / %s)", flags.AttachTempTarget, flags.AttachLocal, "EVIDENCE_ATTACHMENT_TEMP_TARGET", "attachment.tempTarget")
returnerrorutils.CheckErrorf("The following parameters cannot be used with --%s: %s. These values are extracted from the bundle itself:", flags.SigstoreBundle, strings.Join(conflictingParams, ", "))
Copy file name to clipboardExpand all lines: evidence/cli/command/flags/command_flags.go
+9Lines changed: 9 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -45,6 +45,9 @@ const (
45
45
UseArtifactoryKeys="use-artifactory-keys"
46
46
Integration="integration"
47
47
SigstoreBundle="sigstore-bundle"
48
+
AttachLocal="attach-local"
49
+
AttachTempTarget="attach-temp-target"
50
+
AttachArtifactory="attach-artifactory"
48
51
ArtifactsLimit="artifacts-limit"
49
52
UploadPublicKey="upload-public-key"
50
53
KeyFilePath="key-file-path"
@@ -85,6 +88,9 @@ var flagsMap = map[string]components.Flag{
85
88
ProviderId: components.NewStringFlag(ProviderId, "Provider ID for the evidence.", func(f*components.StringFlag) { f.Mandatory=false }),
86
89
PublicKeys: components.NewStringFlag(PublicKeys, "Array of paths to public keys for signatures verification with \";\" separator. Supported keys: 'ecdsa','rsa' and 'ed25519'.", func(f*components.StringFlag) { f.Mandatory=false }),
87
90
SigstoreBundle: components.NewStringFlag(SigstoreBundle, "Path to a Sigstore bundle file with a pre-signed DSSE envelope. Incompatible with --"+Key+", --"+KeyAlias+", --"+Predicate+", --"+PredicateType+" and --"+SubjectSha256+".", func(f*components.StringFlag) { f.Mandatory=false }),
91
+
AttachLocal: components.NewStringFlag(AttachLocal, "Path to a local file to attach to created evidence. Incompatible with --"+AttachArtifactory+".", func(f*components.StringFlag) { f.Mandatory=false }),
92
+
AttachTempTarget: components.NewStringFlag(AttachTempTarget, "Temporary upload target for --"+AttachLocal+" in format <repo/path[/name]>. Use trailing slash for directory targets.", func(f*components.StringFlag) { f.Mandatory=false }),
93
+
AttachArtifactory: components.NewStringFlag(AttachArtifactory, "Existing Artifactory file path to attach in format <repo/path>.", func(f*components.StringFlag) { f.Mandatory=false }),
88
94
UseArtifactoryKeys: components.NewBoolFlag(UseArtifactoryKeys, "Use Artifactory keys for verification. When enabled, the verify command retrieves keys from Artifactory.", components.WithBoolDefaultValueFalse()),
89
95
ArtifactsLimit: components.NewStringFlag(ArtifactsLimit, "The number of artifacts in a release bundle to be included in the evidences file. The default value is 1000 artifacts", func(f*components.StringFlag) { f.Mandatory=false }),
90
96
Integration: components.NewStringFlag(Integration, "Specify an integration to automatically generate the Predicate. Supported: 'sonar'. When using 'sonar', the 'SONAR_TOKEN' or 'SONARQUBE_TOKEN' environment variable must be set.", func(f*components.StringFlag) { f.Mandatory=false }),
@@ -120,6 +126,9 @@ var commandFlags = map[string][]string{
0 commit comments