MCPcopy Create free account
hub / github.com/chainloop-dev/chainloop / AttestationStatePath

Function AttestationStatePath

app/cli/pkg/action/action.go:49–55  ·  view source on GitHub ↗

AttestationStatePath returns the resolved path for local attestation state. If customPath is non-empty it is returned as-is; otherwise the default temp-dir location is used.

(customPath string)

Source from the content-addressed store, hash-verified

47// If customPath is non-empty it is returned as-is; otherwise the default
48// temp-dir location is used.
49func AttestationStatePath(customPath string) string {
50 if customPath != "" {
51 return customPath
52 }
53
54 return filepath.Join(os.TempDir(), defaultAttestationStateFile)
55}
56
57type ActionsOpts struct {
58 CPConnection *grpc.ClientConn

Callers 2

orgFromLocalStateFunction · 0.92
newCrafterFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected