mirror of
https://github.com/drone-plugins/drone-docker.git
synced 2026-06-16 14:50:37 +08:00
Add signing support via cosign
This commit is contained in:
@@ -843,14 +843,11 @@ func commandCosignSign(build Build, tag string, cosign CosignConfig) *exec.Cmd {
|
||||
args = append(args, "--key", cosign.PrivateKey)
|
||||
}
|
||||
|
||||
// Set password and non-interactive environment variables
|
||||
// Set password environment variable if provided
|
||||
if cosign.Password != "" {
|
||||
os.Setenv("COSIGN_PASSWORD", cosign.Password)
|
||||
}
|
||||
|
||||
// Set COSIGN_YES for additional non-interactive assurance
|
||||
os.Setenv("COSIGN_YES", "true")
|
||||
|
||||
// Add custom parameters (after our defaults so users can override)
|
||||
if cosign.Params != "" {
|
||||
extraArgs := strings.Fields(cosign.Params)
|
||||
|
||||
Reference in New Issue
Block a user