mirror of
https://github.com/kyverno/kyverno.git
synced 2025-03-09 17:37:12 +00:00
17 lines
230 B
Go
17 lines
230 B
Go
|
package cosign
|
||
|
|
||
|
import (
|
||
|
"fmt"
|
||
|
|
||
|
"github.com/sigstore/cosign/cmd/cosign/cli/fulcio"
|
||
|
)
|
||
|
|
||
|
func Init() error {
|
||
|
certs := fulcio.GetRoots()
|
||
|
if certs == nil {
|
||
|
return fmt.Errorf("failed to initialize Fulcio roots")
|
||
|
}
|
||
|
|
||
|
return nil
|
||
|
}
|