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
* policy: downgrade to actual SLSA level instead of error
Signed-off-by: Adolfo García Veytia (Puerco) <puerco@carabiner.dev>
* Surface Shortfall in new AttestRevision result
Signed-off-by: Adolfo García Veytia (Puerco) <puerco@carabiner.dev>
* support exit codes in subcommands
Signed-off-by: Adolfo García Veytia (Puerco) <puerco@carabiner.dev>
* Add --silent-downgrade and exit 2 on shortfall
Signed-off-by: Adolfo García Veytia (Puerco) <puerco@carabiner.dev>
* update checklevel and checktag for new return
Signed-off-by: Adolfo García Veytia (Puerco) <puerco@carabiner.dev>
* Test wrapped error codes
Signed-off-by: Adolfo García Veytia (Puerco) <puerco@carabiner.dev>
* Fix misspel flagged by the linter
Signed-off-by: Adolfo García Veytia (Puerco) <puerco@carabiner.dev>
---------
Signed-off-by: Adolfo García Veytia (Puerco) <puerco@carabiner.dev>
cmd.PersistentFlags().StringVar(&clp.outputUnsignedBundle, "output_unsigned_bundle", "", "The path to write a bundle of unsigned attestations.")
79
81
cmd.PersistentFlags().StringVar(&clp.outputSignedBundle, "output_signed_bundle", "", "The path to write a bundle of signed attestations.")
80
82
cmd.PersistentFlags().StringVar(&clp.useLocalPolicy, "use_local_policy", "", "UNSAFE: Use the policy at this local path instead of the official one.")
83
+
cmd.PersistentFlags().BoolVar(&clp.silentDowngrade, "silent-downgrade", false, "Exit 0 when the SLSA level is below the policy target (still attests).")
81
84
}
82
85
83
86
funcaddCheckLevelProv(parentCmd*cobra.Command) {
@@ -162,7 +165,7 @@ and pushed to its remote (--push=note).
0 commit comments