-
Notifications
You must be signed in to change notification settings - Fork 9
feat: introduce --reproducible and image insepct #275
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -46,6 +46,15 @@ func ValidateBuildName(name string) error { | |
| return nil | ||
| } | ||
|
|
||
| // ValidateReproducibleRequiresSecure returns an error when reproducible builds | ||
| // are requested without secure build mode. | ||
| func ValidateReproducibleRequiresSecure(reproducible, secureBuild bool) error { | ||
| if reproducible && !secureBuild { | ||
| return fmt.Errorf("--reproducible requires --secure for task bundle pinning") | ||
| } | ||
|
Comment on lines
+51
to
+54
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Make the error describe the actual invariant. This helper rejects every reproducible build without secure mode, but the current text makes it sound like only task-bundle pinning is blocked. A shorter message like 🤖 Prompt for AI Agents |
||
| return nil | ||
| } | ||
|
|
||
| // ValidateManifestSuffix validates the manifest file extension. | ||
| func ValidateManifestSuffix(filename string) error { | ||
| for _, suffix := range validManifestSuffix { | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.