Skip to content

Commit b613a58

Browse files
committed
fix: set caExported=true after attest-path CA export
Prevents silent double-export if pipeline is extended with future signing steps. Purely defensive; no behavior change on current happy paths.
1 parent 335de30 commit b613a58

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

internal/cli/pipeline.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,7 @@ func runPipeline(cmd *cobra.Command, args []string) error {
210210
if err := keyedSigner.ExportCATo(outputDir); err != nil {
211211
return fmt.Errorf("exporting CA cert: %w", err)
212212
}
213+
caExported = true
213214
if !quiet {
214215
fmt.Fprintf(os.Stderr, " CA cert exported to %s/forgeseal-signing-ca.crt\n", outputDir)
215216
}

0 commit comments

Comments
 (0)