{"modulePath":"github.com/chainloop-dev/chainloop","version":"v1.138.0","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package action\n\n## Constants\n\n```go\nconst (\n\tPolicyViolationBlockingStrategyEnforced = \"ENFORCED\"\n\tPolicyViolationBlockingStrategyAdvisory = \"ADVISORY\"\n)\n```\n\n```go\nconst AttestationResetTriggerCancelled = \"cancellation\"\n```\n\n```go\nconst AttestationResetTriggerFailed = \"failure\"\n```\n\n```go\nconst (\n\tKindContract = \"Contract\"\n)\n```\n\n## Variables\n\n```go\nvar AvailableRoles = Roles{\n\tRoleAdmin,\n\tRoleOwner,\n\tRoleViewer,\n\tRoleMember,\n\tRoleContributor,\n}\n```\n\n```go\nvar ErrAttestationAlreadyExist = errors.New(\"attestation already initialized\")\n```\nErrAttestationAlreadyExist means that there is an attestation in progress\n\n```go\nvar ErrAttestationNotInitialized = errors.New(\"attestation not yet initialized\")\n```\n\n```go\nvar ErrAttestationNotVerifiable = errors.New(\"attestation could not be verified\")\n```\nErrAttestationNotVerifiable indicates that the attestation's authenticity could not be established at all, either because the bundle carries no verification material or because the control plane has no trusted root to verify it against. It is a verification failure: a bundle that was never verified must never be reported as verified.\n\n```go\nvar ValidCollectors = []string{aiConfigCollectorName}\n```\nValidCollectors is the list of known collector names accepted by --collectors.\n\n```go\nvar WorkflowRunStatus = func() map[string]pb.RunStatus {\n\tres := make(map[string]pb.RunStatus)\n\tfor k, v := range pb.RunStatus_value {\n\t\tif k != \"RUN_STATUS_UNSPECIFIED\" {\n\t\t\tres[strings.Replace(k, \"RUN_STATUS_\", \"\", 1)] = pb.RunStatus(v)\n\t\t}\n\t}\n\treturn res\n}\n```\nWorkflowRunStatus represents the status of a workflow run\n\n## Functions\n\n```go\nfunc ApplyContractFromRawData(ctx context.Context, conn *grpc.ClientConn, rawData []byte) (bool, error)\n```\nApplyContractFromRawData applies a single contract document using the gRPC client.\n\n```go\nfunc AttestationStatePath(customPath string) string\n```\nAttestationStatePath 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.\n\n```go\nfunc AuthErrorMessage(err error) (string, bool)\n```\nAuthErrorMessage renders the message the CLI shows for an authentication failure, and reports whether err was one. Every place that surfaces a credential problem goes through it — the top-level error handler and the commands that only log the failure, like \\`chainloop trace run\\` — so the CLI says the same thing wherever it comes up.\n\nIt digs the gRPC status out of a wrapped error, so callers are free to add context: grpc's status.FromError replaces a wrapped error's message with the whole error chain, which nothing in the table above would match.\n\n```go\nfunc CleanupTrace(store *state.Store, repoRoot string, log zerolog.Logger) error\n```\nCleanupTrace removes the store's chainloop-trace state, the managed git hooks, and every known provider's agent hooks. A store outside a repository had no git hooks installed in the first place, and the state directory itself is trace run's to remove. Every step runs even when an earlier one failed so partial cleanup still progresses; the joined error is returned for callers that need to fail loudly (e.g. trace uninstall). Callers that want best-effort cleanup (e.g. trace run's defer) can ignore the result.\n\n```go\nfunc CollectYAMLFiles(path string) ([]string, error)\n```\nCollectYAMLFiles returns YAML file paths from the given path. If path is a file, it returns that file. If a directory, it walks recursively.\n\n```go\nfunc ExtractColumnValues(path, column string) ([]string, error)\n```\nExtractColumnValues reads the given CSV or JSON file and returns the values of the named column/field. Format is detected by extension, with a content-sniff fallback. Empty and whitespace-only values are dropped. CSV parsing reuses the tabular parser (BOM decoding, comma/tab auto-detection, case-insensitive header match).\n\n```go\nfunc HandleAgentPostToolUse(provider trace.Provider, log zerolog.Logger) error\n```\nHandleAgentPostToolUse handles post-edit hooks across providers (Claude's post-tool-use, Cursor's afterFileEdit) and records AI-attributed line ranges for the edited file.\n\n```go\nfunc HandleAgentPreToolUse(provider trace.Provider, log zerolog.Logger) error\n```\nHandleAgentPreToolUse handles the agent pre-tool-use hook.\n\n```go\nfunc HandleAgentPromptSubmit(provider trace.Provider, log zerolog.Logger) error\n```\nHandleAgentPromptSubmit handles the agent prompt-submit hook. It adds the short spec capture reminder to the context of the turn, so that a spec given or changed after the session start also reaches the evidence. It never blocks the prompt: any failure only drops the reminder.\n\n```go\nfunc HandleAgentSessionEnd(provider trace.Provider, log zerolog.Logger) error\n```\nHandleAgentSessionEnd handles the agent session-end hook.\n\n```go\nfunc HandleAgentSessionStart(provider trace.Provider, checkAuth TraceAuthCheck, log zerolog.Logger) error\n```\nHandleAgentSessionStart handles the agent session-start hook. In control-plane mode, checkAuth asks the control plane whether the credentials that the pre-push hook will use are accepted, so that the developer knows about a problem before the session work is done. A nil checkAuth skips the check.\n\n```go\nfunc HandleCommitMsgHook(_ context.Context, msgFilePath string, log zerolog.Logger) error\n```\nHandleCommitMsgHook appends a Chainloop-Trace-Sessions trailer to the commit message when AI sessions have modified files staged for commit, or when the commit amends one that has the trailer. Errors are logged but never returned (to avoid blocking commits).\n\n```go\nfunc HandlePostCommitHook(ctx context.Context, log zerolog.Logger) error\n```\nHandlePostCommitHook handles the post-commit git hook. Errors are logged but never returned (to avoid blocking commits).\n\n```go\nfunc HandlePostRewriteHook(_ context.Context, log zerolog.Logger) error\n```\nHandlePostRewriteHook handles the post-rewrite git hook, which git runs after \\`commit --amend\\` and \\`rebase\\` with one \"\\\u003cold-sha\u003e \\\u003cnew-sha\u003e \\[extra]\" line per rewritten commit on stdin. Errors are logged but never returned (to avoid blocking the rewrite).\n\n```go\nfunc HandlePrePushHook(ctx context.Context, log zerolog.Logger, opts RunTracePushOpts) error\n```\nHandlePrePushHook handles the pre-push git hook. The caller passes a returned error through PrePushFailure.\n\n```go\nfunc HandlePrePushHookLocal(ctx context.Context, log zerolog.Logger, cliVersion string) error\n```\nHandlePrePushHookLocal stores the recorded session evidence to disk instead of pushing an attestation, for a repository configured with traceStorage: LOCAL (R-009). It makes no control-plane call. Like the control-plane path it drains the push stdin first, to avoid a SIGPIPE on the git side, then runs the same assembly and writes the evidence under the configured tracePath. It tells the user where the session went (R-012).\n\n\"Nothing recorded\" is not an error, so a human-only push is never blocked; only a genuine store failure is returned, which the caller turns into a blocked push when traceRequired is set.\n\n```go\nfunc LoadFileOrURL(fileRef string) ([]byte, error)\n```\nLoadFileOrURL loads a file from a local path or a URL\n\n```go\nfunc NewEnvVarRedactionPb(mode string, envVars []string) (*pb.EnvVarRedaction, error)\n```\nNewEnvVarRedactionPb builds the API setting from the CLI flag values.\n\n```go\nfunc PrePushFailure(err error, requireTrace bool, log zerolog.Logger) error\n```\nPrePushFailure decides what a failed pre-push hook does. The managed pre-push script propagates the hook's exit status to git. When requireTrace is true, it returns the error so that the git push is blocked. When false, it logs a warning, so the user knows why the session is missing, and returns nil so the push continues.\n\n```go\nfunc RunTraceLocalStore(ctx context.Context, log zerolog.Logger, opts RunTraceLocalStoreOpts) (stored int, tracePath string, err error)\n```\nRunTraceLocalStore runs the same push-time assembly that RunTracePush drives but writes the resulting evidence to disk instead of uploading a signed attestation. It makes no call to the control plane and needs no credentials: every material is crafted offline with an inline CAS backend, so the evidence record and the material digests equal what a push would upload, apart from the signature (R-001/R-002). It reuses gatherPushSessions and finalizePush, so the assembly cannot drift from a push and a repeated \\`git push\\` does not re-store (D-001).\n\nIt returns the number of sessions stored and the directory they were written under (resolved even when nothing was stored, so the caller can report it).\n\n```go\nfunc RunTracePush(ctx context.Context, log zerolog.Logger, opts RunTracePushOpts) error\n```\nRunTracePush gathers AI-coding-session evidence from the local trace state and emits a Chainloop attestation. Shared between the pre-push git hook and \\`chainloop trace run\\`.\n\n```go\nfunc TraceRun(ctx context.Context, log zerolog.Logger, opts TraceRunOpts) error\n```\nTraceRun wraps a single-shot agent invocation: it cleans any prior trace state, installs the trace-run subset of git and agent hooks, runs the wrapped command, then attests the session and tears everything down. Errors from the wrapped command are surfaced as SubprocessExitError so the caller can propagate the exit code.\n\n```go\nfunc ValidateAndExtractName(explicitName, filePath string) (string, error)\n```\nValidateAndExtractName validates and extracts a name from either an explicit name parameter OR from metadata.name in the file content. Returns error when: - Neither explicit name nor metadata.name is provided - Both are provided and they differ (providing both with the same value is allowed)\n\n## Types\n\n```go\ntype APITokenCreate struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc NewAPITokenCreate(cfg *ActionsOpts) *APITokenCreate\n```\n\n```go\nfunc (action *APITokenCreate) Run(ctx context.Context, name, description, projectName string, expiresIn *time.Duration) (*APITokenItem, error)\n```\n\n```go\ntype APITokenItem struct {\n\tID          string `json:\"id\"`\n\tName        string `json:\"name\"`\n\tDescription string `json:\"description\"`\n\t// JWT is returned only during the creation\n\tJWT          string        `json:\"jwt,omitempty\"`\n\tCreatedAt    *time.Time    `json:\"createdAt\"`\n\tRevokedAt    *time.Time    `json:\"revokedAt,omitempty\"`\n\tExpiresAt    *time.Time    `json:\"expiresAt,omitempty\"`\n\tLastUsedAt   *time.Time    `json:\"lastUsedAt,omitempty\"`\n\tScopedEntity *ScopedEntity `json:\"scopedEntity,omitempty\"`\n}\n```\n\n```go\ntype APITokenList struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc NewAPITokenList(cfg *ActionsOpts) *APITokenList\n```\n\n```go\nfunc (action *APITokenList) Run(ctx context.Context, statusFilter string, project string, scope string) ([]*APITokenItem, error)\n```\n\n```go\ntype APITokenRevoke struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc NewAPITokenRevoke(cfg *ActionsOpts) *APITokenRevoke\n```\n\n```go\nfunc (action *APITokenRevoke) Run(ctx context.Context, id string) error\n```\n\n```go\ntype ActionsOpts struct {\n\tCPConnection *grpc.ClientConn\n\tLogger       zerolog.Logger\n\tAuthTokenRaw string\n\tOutputFormat string\n\tCLIVersion   string\n}\n```\n\n```go\ntype Annotation struct {\n\tName  string `json:\"name\"`\n\tValue string `json:\"value\"`\n}\n```\n\n```go\ntype Apply struct {\n\t// contains filtered or unexported fields\n}\n```\nApply handles applying resources from YAML files\n\n```go\nfunc NewApply(cfg *ActionsOpts) *Apply\n```\nNewApply creates a new Apply action\n\n```go\nfunc (a *Apply) Run(ctx context.Context, path string) ([]*ApplyResult, error)\n```\nRun applies all resources found in the given path (file or directory)\n\n```go\ntype ApplyResult struct {\n\tKind    string\n\tName    string\n\tChanged bool\n}\n```\nApplyResult holds the outcome of a successfully applied resource document\n\n```go\ntype ArtifactDownload struct {\n\t*ActionsOpts\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc NewArtifactDownload(opts *ArtifactDownloadOpts) *ArtifactDownload\n```\n\n```go\nfunc (a *ArtifactDownload) Run(downloadPath, outputFile, digest string) error\n```\n\n```go\ntype ArtifactDownloadOpts struct {\n\t*ActionsOpts\n\tArtifactsCASConn *grpc.ClientConn\n\tStdout           io.Writer\n}\n```\n\n```go\ntype ArtifactUpload struct {\n\t*ActionsOpts\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc NewArtifactUpload(opts *ArtifactUploadOpts) *ArtifactUpload\n```\n\n```go\nfunc (a *ArtifactUpload) Run(f *os.File, digest string) (*CASArtifact, error)\n```\nRun uploads the open file with its digest, the one the credentials were scoped to. Taking the open file, and not its path, makes the uploaded content the hashed content even if the file at the path is replaced.\n\n```go\ntype ArtifactUploadOpts struct {\n\t*ActionsOpts\n\tArtifactsCASConn *grpc.ClientConn\n}\n```\n\n```go\ntype AttachedIntegrationAdd struct {\n\t// contains filtered or unexported fields\n}\n```\nAttach a third party integration to a workflow\n\n```go\nfunc NewAttachedIntegrationAdd(cfg *ActionsOpts) *AttachedIntegrationAdd\n```\n\n```go\nfunc (action *AttachedIntegrationAdd) Run(integrationName, workflowName, projectName string, options map[string]any) (*AttachedIntegrationItem, error)\n```\n\n```go\ntype AttachedIntegrationDelete struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc NewAttachedIntegrationDelete(cfg *ActionsOpts) *AttachedIntegrationDelete\n```\n\n```go\nfunc (action *AttachedIntegrationDelete) Run(attachmentID string) error\n```\n\n```go\ntype AttachedIntegrationItem struct {\n\tID          string                     `json:\"id\"`\n\tCreatedAt   *time.Time                 `json:\"createdAt\"`\n\tConfig      map[string]interface{}     `json:\"config\"`\n\tIntegration *RegisteredIntegrationItem `json:\"integration\"`\n\tWorkflow    *WorkflowItem              `json:\"workflow\"`\n}\n```\n\n```go\ntype AttachedIntegrationList struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc NewAttachedIntegrationList(cfg *ActionsOpts) *AttachedIntegrationList\n```\n\n```go\nfunc (action *AttachedIntegrationList) Run(projectName, workflowName string) ([]*AttachedIntegrationItem, error)\n```\n\n```go\ntype AttestationAdd struct {\n\t*ActionsOpts\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc NewAttestationAdd(cfg *AttestationAddOpts) (*AttestationAdd, error)\n```\n\n```go\nfunc (action *AttestationAdd) GetPolicyEvaluations(ctx context.Context, attestationID string) (map[string][]*PolicyEvaluation, error)\n```\nGetPolicyEvaluations is a Wrapper around the getPolicyEvaluations\n\n```go\nfunc (action *AttestationAdd) Run(ctx context.Context, attestationID, materialName, materialValue, materialType string, annotations map[string]string, policyInputFiles []*PolicyInputFromFile, policyInputs []*PolicyInput) ([]*AttestationStatusMaterial, error)\n```\n\n```go\ntype AttestationAddOpts struct {\n\t*ActionsOpts\n\tArtifactsCASConn   *grpc.ClientConn\n\tCASURI             string\n\tCASCAPath          string // optional CA certificate for the CAS connection\n\tConnectionInsecure bool\n\t// OCI registry credentials used for CONTAINER_IMAGE material type\n\tRegistryServer, RegistryUsername, RegistryPassword string\n\tLocalStatePath                                     string\n\t// NoStrictValidation skips strict schema validation\n\tNoStrictValidation bool\n\t// SkipSecretRedaction uploads evidence that would normally be scrubbed\n\t// exactly as captured. The bypass is recorded in the attestation.\n\tSkipSecretRedaction bool\n\t// MaxExtractEntries limits the number of entries extracted from an archive.\n\t// Zero defaults to materials.DefaultArchiveLimits().MaxEntries.\n\tMaxExtractEntries int\n\t// MaxExtractSize limits the total uncompressed bytes extracted from an archive.\n\t// Zero defaults to materials.DefaultArchiveLimits().MaxTotalSize.\n\tMaxExtractSize int64\n\t// Replace overwrites a material that already exists in the attestation\n\t// with the same name. Without it, adding such a material fails.\n\tReplace bool\n}\n```\n\n```go\ntype AttestationExecutor struct {\n\t// contains filtered or unexported fields\n}\n```\nAttestationExecutor calls the attestation actions directly via their Go API rather than shelling out, so \\`chainloop trace\\` can drive a full init/add/push cycle in-process.\n\n```go\nfunc NewAttestationExecutor(base *ActionsOpts, cliVersion string, opts ...ExecutorOption) (*AttestationExecutor, error)\n```\nNewAttestationExecutor creates an executor from the root command's already initialized ActionsOpts. Commands using it must NOT set skipActionOptsInit, or base will be nil. cliVersion is recorded in the attestation predicate and must be the bare version (cmd.Version), not ActionsOpts.CLIVersion, which carries an edition suffix.\n\n```go\nfunc (e *AttestationExecutor) AddMaterial(ctx context.Context, name, filePath, kind string, annotations map[string]string) (string, error)\n```\nAddMaterial adds a material of the given kind to the attestation and returns the digest it was stored under. Empty attestation ID is passed upstream so the crafter uses LocalStatePath instead of forcing remote state.\n\n```go\nfunc (e *AttestationExecutor) CheckAuth(ctx context.Context) error\n```\nCheckAuth verifies the CLI can reach the control plane.\n\n```go\nfunc (e *AttestationExecutor) Close() error\n```\nClose releases resources owned by the executor, currently any control-plane connection created via WithForcedOrganization. Safe to call multiple times.\n\n```go\nfunc (e *AttestationExecutor) CreateOrganization(ctx context.Context, name string) error\n```\nCreateOrganization creates one and makes it the caller's current organization, which is what the control plane does on creation. \\`trace init\\` calls it for a user who belongs to none, where there is nothing to select and every later step needs one.\n\n```go\nfunc (e *AttestationExecutor) EnsureWorkflow(ctx context.Context, opts EnsureTraceWorkflowOpts) (*TraceWorkflowResult, error)\n```\nEnsureWorkflow makes sure the workflow trace attestations target exists, creating it attached to opts.ContractName when the organization has that contract. \\`chainloop trace\\` calls it so the contract decision happens once, with a human watching, instead of on the push path: the pre-push hook would otherwise let the control plane create the workflow implicitly with an empty contract, with nobody reading the output.\n\nIt runs over the executor's connection, so it targets the organization pinned with WithForcedOrganization like every other trace operation.\n\n```go\nfunc (e *AttestationExecutor) Init(ctx context.Context, workflow, project, version string) (string, error)\n```\nInit starts a new attestation and returns the workflow run ID. It uses a local state path to avoid conflicts with concurrent attestations. When version is empty the latest project version is used; otherwise the attestation targets that specific version.\n\n```go\nfunc (e *AttestationExecutor) ListOrganizations(ctx context.Context) ([]*MembershipItem, error)\n```\nListOrganizations returns the organizations the current user belongs to, so \\`trace init\\` can offer them. It is a UserService call, which ignores the organization header, and so returns the same list on any connection.\n\n```go\nfunc (e *AttestationExecutor) ListProjects(ctx context.Context) (*TraceProjects, error)\n```\nListProjects returns the projects visible in the organization the executor is pinned to, sorted by name and deduplicated. It runs over the executor's connection, so it targets the organization pinned with WithForcedOrganization like every other trace operation.\n\n```go\nfunc (e *AttestationExecutor) Push(ctx context.Context) (*AttestationResult, error)\n```\nPush finalizes and pushes the attestation, returning the push result so callers can report where the evidence landed.\n\n```go\nfunc (e *AttestationExecutor) Reset(ctx context.Context, trigger, reason string) error\n```\nReset cancels the current attestation.\n\n```go\ntype AttestationInit struct {\n\t*ActionsOpts\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc NewAttestationInit(cfg *AttestationInitOpts) (*AttestationInit, error)\n```\n\n```go\nfunc (action *AttestationInit) Run(ctx context.Context, opts *AttestationInitRunOpts) (string, error)\n```\n\n```go\ntype AttestationInitOpts struct {\n\t*ActionsOpts\n\tDryRun bool\n\t// Force the initialization and override any existing, in-progress ones.\n\t// Note that this is only useful when local-based attestation state is configured\n\t// since it's a protection to make sure you don't override the state by mistake\n\tForce              bool\n\tUseRemoteState     bool\n\tLocalStatePath     string\n\tCASURI             string\n\tCASCAPath          string // optional CA certificate for the CAS connection\n\tConnectionInsecure bool\n}\n```\n\n```go\ntype AttestationInitRunOpts struct {\n\tContractRevision             int\n\tProjectName                  string\n\tProjectVersion               string\n\tUseLatestVersion             bool\n\tProjectVersionMarkAsReleased bool\n\tRequireExistingVersion       bool\n\tWorkflowName                 string\n\tNewWorkflowContractRef       string\n\t// Collectors is a list of additional collector names to enable (e.g. \"aiconfig\")\n\tCollectors   []string\n\tMarkAsLatest *bool\n\t// PRMode overrides PR/MR auto-detection.\n\t// nil  → auto-detect from the CI runner environment.\n\t// true → force PR mode on.\n\t// false → force PR mode off.\n\tPRMode *bool\n}\n```\nreturns the attestation ID\n\n```go\ntype AttestationPush struct {\n\t*ActionsOpts\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc NewAttestationPush(cfg *AttestationPushOpts) (*AttestationPush, error)\n```\n\n```go\nfunc (action *AttestationPush) Run(ctx context.Context, attestationID string, runtimeAnnotations map[string]string, bypassPolicyCheck bool) (*AttestationResult, error)\n```\n\n```go\ntype AttestationPushOpts struct {\n\t*ActionsOpts\n\tKeyPath, CLIVersion, CLIDigest, BundlePath string\n\tCASURI                                     string\n\tCASCAPath                                  string\n\tConnectionInsecure                         bool\n\tLocalStatePath                             string\n\tSignServerOpts                             *SignServerOpts\n}\n```\n\n```go\ntype AttestationReset struct {\n\t*ActionsOpts\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc NewAttestationReset(cfg *AttestationResetOpts) (*AttestationReset, error)\n```\n\n```go\nfunc (action *AttestationReset) Run(ctx context.Context, attestationID, trigger, reason string) error\n```\n\n```go\ntype AttestationResetOpts struct {\n\t*ActionsOpts\n\tLocalStatePath string\n}\n```\n\n```go\ntype AttestationResult struct {\n\tDigest   string                   `json:\"digest\"`\n\tEnvelope *dsse.Envelope           `json:\"envelope\"`\n\tStatus   *AttestationStatusResult `json:\"status\"`\n\t// UIDashboardURL is the base URL of the web dashboard, as reported by the\n\t// control plane at attestation init, or empty when the deployment has no\n\t// UI configured.\n\tUIDashboardURL string `json:\"ui_dashboard_url,omitempty\"`\n}\n```\n\n```go\nfunc (r *AttestationResult) GetOrganization() string\n```\nGetOrganization returns the organization the attestation was pushed to as reported by the control plane, or an empty string when unknown. Nil-safe.\n\n```go\ntype AttestationResultRunnerContext struct {\n\tEnvVars            map[string]string\n\tJobURL, RunnerType string\n\tRawRunner          crafter.SupportedRunner\n}\n```\n\n```go\ntype AttestationStatus struct {\n\t*ActionsOpts\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc NewAttestationStatus(cfg *AttestationStatusOpts) (*AttestationStatus, error)\n```\n\n```go\nfunc (action *AttestationStatus) Run(ctx context.Context, attestationID string) (*AttestationStatusResult, error)\n```\n\n```go\ntype AttestationStatusMaterial struct {\n\t*Material\n\tSet, IsOutput, Required, SkipUpload bool\n\t// Group is the choke group this material belongs to. Materials sharing a\n\t// non-empty group form an \"at least one of\" set.\n\tGroup string `json:\"group,omitempty\"`\n}\n```\n\n```go\ntype AttestationStatusOpts struct {\n\t*ActionsOpts\n\tUseAttestationRemoteState bool\n\n\tLocalStatePath string\n\t// contains filtered or unexported fields\n}\n```\n\n```go\ntype AttestationStatusResult struct {\n\tAttestationID               string                          `json:\"attestationID\"`\n\tInitializedAt               *time.Time                      `json:\"initializedAt\"`\n\tWorkflowMeta                *AttestationStatusWorkflowMeta  `json:\"workflowMeta\"`\n\tMaterials                   []AttestationStatusMaterial     `json:\"materials\"`\n\tEnvVars                     map[string]string               `json:\"envVars\"`\n\tRunnerContext               *AttestationResultRunnerContext `json:\"runnerContext\"`\n\tDryRun                      bool                            `json:\"dryRun\"`\n\tAnnotations                 []*Annotation                   `json:\"annotations\"`\n\tIsPushed                    bool                            `json:\"isPushed\"`\n\tPolicyEvaluations           map[string][]*PolicyEvaluation  `json:\"policy_evaluations,omitempty\"`\n\tHasPolicyViolations         bool                            `json:\"has_policy_violations\"`\n\tMustBlockOnPolicyViolations bool                            `json:\"must_block_on_policy_violations\"`\n\t// Level that enforces all policies: organization or contract\n\tPolicyEnforcementSource string `json:\"policy_enforcement_source,omitempty\"`\n\t// Contract policies and policy groups with `gate: false` that have no effect\n\t// because the organization or the contract enforces policies\n\tIgnoredGateOptOuts []string `json:\"ignored_gate_opt_outs,omitempty\"`\n\tTimestampAuthority string   `json:\"timestamp_authority\"`\n\tAttestationViewURL string   `json:\"attestation_view_url\"`\n\t// This might only be set if the attestation is pushed\n\tDigest string `json:\"digest\"`\n\t// This is the human readable output of the attestation status\n\tTerminalOutput []byte `json:\"terminal_output\"`\n}\n```\n\n```go\ntype AttestationStatusWorkflowMeta struct {\n\tWorkflowID, Name, Team, Project, ContractRevision, ContractName, Organization string\n\tProjectVersion                                                                *ProjectVersion\n}\n```\n\n```go\ntype AttestationVerifyAction struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc NewAttestationVerifyAction(cfg *ActionsOpts) *AttestationVerifyAction\n```\n\n```go\nfunc (action *AttestationVerifyAction) Run(ctx context.Context, fileOrURL string) error\n```\nRun verifies the given attestation bundle and returns an error if it can not be verified, so callers gating on the exit code never take an unverified bundle as good.\n\n```go\ntype AvailableIntegrationDescribe struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc NewAvailableIntegrationDescribe(cfg *ActionsOpts) *AvailableIntegrationDescribe\n```\n\n```go\nfunc (action *AvailableIntegrationDescribe) Run(name string) (*AvailableIntegrationItem, error)\n```\n\n```go\ntype AvailableIntegrationItem struct {\n\tName         string      `json:\"name\"`\n\tVersion      string      `json:\"version\"`\n\tDescription  string      `json:\"description,omitempty\"`\n\tRegistration *JSONSchema `json:\"registration\"`\n\tAttachment   *JSONSchema `json:\"attachment\"`\n\t// Subscribed inputs (material types)\n\tSubscribedInputs []string `json:\"subscribedInputs\"`\n}\n```\n\n```go\ntype AvailableIntegrationList struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc NewAvailableIntegrationList(cfg *ActionsOpts) *AvailableIntegrationList\n```\n\n```go\nfunc (action *AvailableIntegrationList) Run() ([]*AvailableIntegrationItem, error)\n```\n\n```go\ntype CASArtifact struct {\n\tDigest string\n\t// contains filtered or unexported fields\n}\n```\n\n```go\ntype CASBackendAdd struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc NewCASBackendAdd(cfg *ActionsOpts) *CASBackendAdd\n```\n\n```go\nfunc (action *CASBackendAdd) Run(opts *NewCASBackendAddOpts) (*CASBackendItem, error)\n```\n\n```go\ntype CASBackendDelete struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc NewCASBackendDelete(cfg *ActionsOpts) *CASBackendDelete\n```\n\n```go\nfunc (action *CASBackendDelete) Run(name string) error\n```\n\n```go\ntype CASBackendItem struct {\n\tID               string            `json:\"id\"`\n\tName             string            `json:\"name\"`\n\tLocation         string            `json:\"location\"`\n\tDescription      string            `json:\"description\"`\n\tProvider         string            `json:\"provider\"`\n\tDefault          bool              `json:\"default\"`\n\tFallback         bool              `json:\"fallback\"`\n\tInline           bool              `json:\"inline\"`\n\tLimits           *CASBackendLimits `json:\"limits\"`\n\tValidationStatus ValidationStatus  `json:\"validationStatus\"`\n\tValidationError  *string           `json:\"validationError,omitempty\"`\n\n\tCreatedAt   *time.Time `json:\"createdAt\"`\n\tValidatedAt *time.Time `json:\"validatedAt\"`\n}\n```\n\n```go\ntype CASBackendLimits struct {\n\t// Max number of bytes allowed to be stored in this backend\n\tMaxBytes int64\n}\n```\n\n```go\ntype CASBackendList struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc NewCASBackendList(cfg *ActionsOpts) *CASBackendList\n```\n\n```go\nfunc (action *CASBackendList) Run() ([]*CASBackendItem, error)\n```\n\n```go\ntype CASBackendUpdate struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc NewCASBackendUpdate(cfg *ActionsOpts) *CASBackendUpdate\n```\n\n```go\nfunc (action *CASBackendUpdate) Run(opts *NewCASBackendUpdateOpts) (*CASBackendItem, error)\n```\n\n```go\ntype ConfigContextItem struct {\n\tCurrentUser       *UserItem       `json:\"currentUser\"`\n\tCurrentMembership *MembershipItem `json:\"currentMembership\"`\n\tCurrentCASBackend *CASBackendItem `json:\"currentCASBackend\"`\n}\n```\n\n```go\ntype ConfigCurrentContext struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc NewConfigCurrentContext(cfg *ActionsOpts) *ConfigCurrentContext\n```\n\n```go\nfunc (action *ConfigCurrentContext) Run(ctx context.Context) (*ConfigContextItem, error)\n```\n\n```go\ntype ContractRawBody struct {\n\tBody   string `json:\"body\"`\n\tFormat string `json:\"format\"`\n}\n```\n\n```go\ntype DeleteAccount struct {\n\t*ActionsOpts\n}\n```\n\n```go\nfunc NewDeleteAccount(cfg *ActionsOpts) *DeleteAccount\n```\n\n```go\nfunc (a *DeleteAccount) Run() error\n```\n\n```go\ntype EnsureTraceWorkflowOpts struct {\n\tProjectName  string\n\tWorkflowName string\n\t// ContractName is the contract to attach when the workflow is created.\n\t// Empty, or a contract the organization does not have, leaves the control\n\t// plane to create its default one.\n\tContractName string\n\t// ContractRequired fails the call when ContractName cannot be found instead\n\t// of falling back to that default. Set it when the name came from the user\n\t// (--contract), where a typo must not silently bind another contract.\n\tContractRequired bool\n}\n```\nEnsureTraceWorkflowOpts identifies the workflow \\`chainloop trace\\` attests to and the contract it should be attached to when it has to be created.\n\n```go\ntype EnvVar struct {\n\tName  string `json:\"name\"`\n\tValue string `json:\"value\"`\n}\n```\n\n```go\ntype EnvVarRedactionItem struct {\n\tMode    envredaction.Mode `json:\"mode\"`\n\tEnvVars []string          `json:\"envVars,omitempty\"`\n}\n```\nEnvVarRedactionItem is the org-level redaction of env var values in attestations.\n\n```go\ntype ErrRunnerContextNotFound struct {\n\tRunnerType string\n}\n```\n\n```go\nfunc (e ErrRunnerContextNotFound) Error() string\n```\n\n```go\ntype ExecutorOption func(*AttestationExecutor) error\n```\n\n```go\nfunc WithForcedOrganization(orgName string) ExecutorOption\n```\nWithForcedOrganization replaces the control-plane connection with a fresh one that carries the given organization name in every request, overriding the CLI's default org. Pass an empty string to keep the default connection. The new connection is owned by the executor and closed by Close.\n\n```go\nfunc WithLocalStatePath(path string) ExecutorOption\n```\nWithLocalStatePath sets a file path for local attestation state, avoiding remote state and conflicts with other concurrent attestations.\n\n```go\nfunc WithLogger(l zerolog.Logger) ExecutorOption\n```\nWithLogger overrides the logger used by attestation operations. It clones ActionOpts to avoid mutating global state.\n\n```go\ntype JSONSchema struct {\n\t// Show it as raw string so the json output contains it\n\tRaw string `json:\"schema\"`\n\t// Parsed schema so it can be used for validation or other purposes\n\t// It's not shown in the json output\n\tParsed     *jsonschema.Schema      `json:\"-\"`\n\tProperties sdk.SchemaPropertiesMap `json:\"-\"`\n}\n```\n\n```go\ntype ListMembersOpts struct {\n\t// MembershipID Optional, if provided, filters by a specific membership ID\n\tMembershipID *string\n\t// Name is the name of the user to filter by\n\tName *string\n\t// Email is the email of the user to filter by\n\tEmail *string\n\t// Role is the role of the user to filter by\n\tRole *string\n}\n```\n\n```go\ntype ListMembershipResult struct {\n\tMemberships    []*MembershipItem\n\tPaginationMeta *OffsetPagination\n}\n```\n\n```go\ntype Material struct {\n\tName           string        `json:\"name\"`\n\tValue          string        `json:\"value\"`\n\tRawValue       []byte        `json:\"raw_value,omitempty\"`\n\tHash           string        `json:\"hash\"`\n\tTag            string        `json:\"tag\"`\n\tFilename       string        `json:\"filename\"`\n\tType           string        `json:\"type\"`\n\tAnnotations    []*Annotation `json:\"annotations,omitempty\"`\n\tUploadedToCAS  bool          `json:\"uploadedToCAS,omitempty\"`\n\tEmbeddedInline bool          `json:\"embeddedInline,omitempty\"`\n}\n```\n\n```go\ntype MembershipDelete struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc NewMembershipDelete(cfg *ActionsOpts) *MembershipDelete\n```\n\n```go\nfunc (action *MembershipDelete) Run(ctx context.Context, membershipID string) error\n```\n\n```go\ntype MembershipItem struct {\n\tID        string     `json:\"id\"`\n\tDefault   bool       `json:\"current\"`\n\tCreatedAt *time.Time `json:\"joinedAt\"`\n\tUpdatedAt *time.Time `json:\"updatedAt\"`\n\tOrg       *OrgItem   `json:\"org\"`\n\tUser      *UserItem  `json:\"user\"`\n\tRole      Role       `json:\"role\"`\n}\n```\n\n```go\ntype MembershipLeave struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc NewMembershipLeave(cfg *ActionsOpts) *MembershipLeave\n```\n\n```go\nfunc (action *MembershipLeave) Run(ctx context.Context, membershipID string) error\n```\n\n```go\ntype MembershipList struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc NewMembershipList(cfg *ActionsOpts) *MembershipList\n```\n\n```go\nfunc (action *MembershipList) ListMembers(ctx context.Context, page int, pageSize int, opts *ListMembersOpts) (*ListMembershipResult, error)\n```\nListMembers lists the members of an organization with pagination and optional filters.\n\n```go\nfunc (action *MembershipList) ListOrgs(ctx context.Context) ([]*MembershipItem, error)\n```\nList organizations for the current user\n\n```go\ntype MembershipSetCurrent struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc NewMembershipSet(cfg *ActionsOpts) *MembershipSetCurrent\n```\n\n```go\nfunc (action *MembershipSetCurrent) Run(ctx context.Context, id string) (*MembershipItem, error)\n```\n\n```go\ntype MembershipUpdate struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc NewMembershipUpdate(cfg *ActionsOpts) *MembershipUpdate\n```\n\n```go\nfunc (action *MembershipUpdate) ChangeRole(ctx context.Context, membershipID, role string) (*MembershipItem, error)\n```\nList organizations for the current user\n\n```go\ntype NewCASBackendAddOpts struct {\n\tName        string\n\tLocation    string\n\tProvider    string\n\tDescription string\n\tDefault     bool\n\tFallback    bool\n\tCredentials map[string]any\n\tMaxBytes    *int64\n}\n```\n\n```go\ntype NewCASBackendUpdateOpts struct {\n\tName        string\n\tDescription *string\n\tDefault     *bool\n\tFallback    *bool\n\tCredentials map[string]any\n\tMaxBytes    *int64\n}\n```\n\n```go\ntype NewOrgUpdateOpts struct {\n\tBlockOnPolicyViolation          *bool\n\tPoliciesAllowedHostnames        *[]string\n\tPreventImplicitWorkflowCreation *bool\n\tRestrictContractCreation        *bool\n\t// APITokenMaxDaysInactive is the maximum number of days a token can be inactive before auto-revocation.\n\t// 0 means disabled.\n\tAPITokenMaxDaysInactive *int\n\t// EnableAIAgentCollector enables automatic AI agent config collection during attestation init\n\tEnableAIAgentCollector *bool\n\t// BlockAttestationsOnReleasedVersions rejects new attestations pushed to project versions that are already released\n\tBlockAttestationsOnReleasedVersions *bool\n\t// SkipRunnerEnvVars opts out of storing the environment variables automatically discovered by the CI runner in the attestation\n\tSkipRunnerEnvVars *bool\n\t// EnvVarRedaction sets the redaction of env var values in new attestations. nil means no change\n\tEnvVarRedaction *pb.EnvVarRedaction\n}\n```\n\n```go\ntype NewWorkflowCreateOpts struct {\n\tName, Description, Project, Team, ContractName string\n\tContractBytes                                  []byte\n\t// WorkflowTemplateID optionally binds the workflow to a platform workflow template.\n\t// The open-source CLI does not set it, it exists so template-aware clients can.\n\tWorkflowTemplateID string\n}\n```\n\n```go\ntype OffsetPagination struct {\n\tPage       int `json:\"page\"`\n\tPageSize   int `json:\"pageSize\"`\n\tTotalPages int `json:\"totalPages\"`\n\tTotalCount int `json:\"totalCount\"`\n}\n```\n\n```go\ntype OrgCreate struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc NewOrgCreate(cfg *ActionsOpts) *OrgCreate\n```\n\n```go\nfunc (action *OrgCreate) Run(ctx context.Context, name string) (*OrgItem, error)\n```\n\n```go\ntype OrgInvitationCreate struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc NewOrgInvitationCreate(cfg *ActionsOpts) *OrgInvitationCreate\n```\n\n```go\nfunc (action *OrgInvitationCreate) Run(ctx context.Context, receiver, role string) (*OrgInvitationItem, error)\n```\n\n```go\ntype OrgInvitationItem struct {\n\tID            string     `json:\"id\"`\n\tReceiverEmail string     `json:\"receiverEmail\"`\n\tOrganization  *OrgItem   `json:\"organization\"`\n\tSender        *UserItem  `json:\"sender\"`\n\tStatus        string     `json:\"status\"`\n\tCreatedAt     *time.Time `json:\"createdAt\"`\n\tRole          Role       `json:\"role\"`\n}\n```\n\n```go\ntype OrgInvitationListSent struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc NewOrgInvitationListSent(cfg *ActionsOpts) *OrgInvitationListSent\n```\n\n```go\nfunc (action *OrgInvitationListSent) Run(ctx context.Context) ([]*OrgInvitationItem, error)\n```\n\n```go\ntype OrgInvitationRevoke struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc NewOrgInvitationRevoke(cfg *ActionsOpts) *OrgInvitationRevoke\n```\n\n```go\nfunc (action *OrgInvitationRevoke) Run(ctx context.Context, invitationID string) error\n```\n\n```go\ntype OrgItem struct {\n\tID                                  string               `json:\"id\"`\n\tName                                string               `json:\"name\"`\n\tCreatedAt                           *time.Time           `json:\"createdAt\"`\n\tPolicyViolationBlockingStrategy     string               `json:\"policyViolationBlockingStrategy\"`\n\tPolicyAllowedHostnames              []string             `json:\"policyAllowedHostnames,omitempty\"`\n\tPreventImplicitWorkflowCreation     bool                 `json:\"preventImplicitWorkflowCreation\"`\n\tAPITokenMaxDaysInactive             *string              `json:\"apiTokenMaxDaysInactive,omitempty\"`\n\tEnableAIAgentCollector              bool                 `json:\"enableAiAgentCollector\"`\n\tBlockAttestationsOnReleasedVersions bool                 `json:\"blockAttestationsOnReleasedVersions\"`\n\tSkipRunnerEnvVars                   bool                 `json:\"skipRunnerEnvVars\"`\n\tEnvVarRedaction                     *EnvVarRedactionItem `json:\"envVarRedaction,omitempty\"`\n}\n```\n\n```go\ntype OrgUpdate struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc NewOrgUpdate(cfg *ActionsOpts) *OrgUpdate\n```\n\n```go\nfunc (action *OrgUpdate) Run(ctx context.Context, name string, opts *NewOrgUpdateOpts) (*OrgItem, error)\n```\n\n```go\ntype OrganizationDelete struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc NewOrganizationDelete(cfg *ActionsOpts) *OrganizationDelete\n```\n\n```go\nfunc (action *OrganizationDelete) Run(ctx context.Context, orgName string) error\n```\n\n```go\ntype PaginatedWorkflowRunItem struct {\n\tResult         []*WorkflowRunItem\n\tPaginationMeta *PaginationOpts\n}\n```\n\n```go\ntype PaginationOpts struct {\n\tLimit      int\n\tNextCursor string\n}\n```\n\n```go\ntype PolicyEval struct {\n\t*ActionsOpts\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc NewPolicyEval(opts *PolicyEvalOpts, actionOpts *ActionsOpts) (*PolicyEval, error)\n```\n\n```go\nfunc (action *PolicyEval) Run() (*policydevel.EvalSummary, error)\n```\n\n```go\ntype PolicyEvalOpts struct {\n\tMaterialPath       string\n\tKind               string\n\tAnnotations        map[string]string\n\tPolicyPath         string\n\tInputs             map[string]string\n\tAllowedHostnames   []string\n\tDebug              bool\n\tProjectName        string\n\tProjectVersionName string\n}\n```\n\n```go\ntype PolicyEvaluation struct {\n\tName            string             `json:\"name\"`\n\tMaterialName    string             `json:\"material_name,omitempty\"`\n\tBody            string             `json:\"body,omitempty\"`\n\tDescription     string             `json:\"description,omitempty\"`\n\tAnnotations     map[string]string  `json:\"annotations,omitempty\"`\n\tViolations      []*PolicyViolation `json:\"violations,omitempty\"`\n\tPolicyReference *PolicyReference   `json:\"policy_reference,omitempty\"`\n\tWith            map[string]string  `json:\"with,omitempty\"`\n\tType            string             `json:\"type\"`\n\tSkipped         bool               `json:\"skipped\"`\n\tSkipReasons     []string           `json:\"skip_reasons,omitempty\"`\n\tGate            bool               `json:\"gate,omitempty\"`\n}\n```\n\n```go\ntype PolicyEvaluationStatus struct {\n\tStrategy           string `json:\"strategy\"`\n\tBypassed           bool   `json:\"bypassed\"`\n\tBlocked            bool   `json:\"blocked\"`\n\tHasViolations      bool   `json:\"has_violations\"`\n\tHasGatedViolations bool   `json:\"has_gated_violations\"`\n\t// Canonical, server-computed status and counters. Status is empty for\n\t// runs that predate the server materializing the summary.\n\tStatus     string `json:\"status,omitempty\"`\n\tTotal      int    `json:\"total\"`\n\tPassed     int    `json:\"passed\"`\n\tSkipped    int    `json:\"skipped\"`\n\tViolated   int    `json:\"violated\"`\n\tSuppressed int    `json:\"suppressed\"`\n\tHasGates   bool   `json:\"has_gates\"`\n}\n```\n\n```go\ntype PolicyEvaluationsRef struct {\n\tDigest string `json:\"digest\"`\n\t// Size of the bundle in bytes, zero when it could not be determined\n\tSizeBytes int64                      `json:\"size_bytes,omitempty\"`\n\tMediaType string                     `json:\"media_type,omitempty\"`\n\tReason    PolicyEvaluationsRefReason `json:\"reason,omitempty\"`\n\t// Whether the evaluations decoded from this bundle are also in the response\n\tInlined bool `json:\"inlined\"`\n}\n```\nPolicyEvaluationsRef points at a policy-evaluation bundle stored in a CAS backend. It is returned both alongside the evaluations and, when they could not be inlined, in their place.\n\n```go\ntype PolicyEvaluationsRefReason string\n```\nPolicyEvaluationsRefReason explains why the evaluations were not included in the response. Empty when they were.\n\n```go\nconst (\n\t// The bundle is larger than the server is willing to inline\n\tPolicyEvaluationsRefReasonTooLarge PolicyEvaluationsRefReason = \"TOO_LARGE\"\n\t// The bundle could not be resolved from the CAS backend\n\tPolicyEvaluationsRefReasonUnavailable PolicyEvaluationsRefReason = \"UNAVAILABLE\"\n)\n```\n\n```go\ntype PolicyInit struct {\n\t*ActionsOpts\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc NewPolicyInit(opts *PolicyInitOpts, actionOpts *ActionsOpts) (*PolicyInit, error)\n```\n\n```go\nfunc (action *PolicyInit) Run() error\n```\n\n```go\ntype PolicyInitOpts struct {\n\tForce       bool\n\tEmbedded    bool\n\tName        string\n\tDescription string\n\tDirectory   string\n}\n```\n\n```go\ntype PolicyInput struct {\n\t// Policy optionally scopes the input to a specific policy (its name or ref).\n\t// Empty means the input is global and applies to every declaring policy.\n\tPolicy string\n\t// Input is the destination policy input name (e.g. \"min_iterations\").\n\tInput string\n\t// Value is the literal value to set.\n\tValue string\n}\n```\nPolicyInput describes a single --policy-input flag value: a policy input name set to a literal value supplied directly on the command line. The value always replaces (overrides) any contract-declared value for the input rather than being appended, which is what makes a scalar input overridable at run time.\n\n```go\nfunc ParsePolicyInput(raw string) (*PolicyInput, error)\n```\nParsePolicyInput parses a single --policy-input flag value of the form \"\\[\\\u003cpolicy\u003e:]\\\u003cinput\u003e=\\\u003cvalue\u003e\", where \\\u003cvalue\u003e is a literal set directly on the command line. The optional \"\\\u003cpolicy\u003e:\" prefix has the same scoping semantics as --policy-input-from-file. The value always overrides (replaces) any contract-declared value for the input.\n\n```go\ntype PolicyInputFromFile struct {\n\t// Policy optionally scopes the input to a specific policy (its name or ref).\n\t// Empty means the input is global and applies to every declaring policy.\n\tPolicy string\n\t// Input is the destination policy input name (e.g. \"ignored_paths\").\n\tInput string\n\t// Column is the file column/field to extract. Defaults to Input.\n\tColumn string\n\t// File is the source CSV or JSON file path.\n\tFile string\n}\n```\nPolicyInputFromFile describes a single --policy-input-from-file flag value: a policy input name fed from a named column of a CSV or JSON file. Its values are appended to any contract-declared value for the input.\n\n```go\nfunc ParsePolicyInputFromFile(raw string) (*PolicyInputFromFile, error)\n```\nParsePolicyInputFromFile parses a single flag value of the form \"\\[\\\u003cpolicy\u003e:]\\\u003cinput\u003e=\\\u003cfile\u003e\\[:\\\u003ccolumn\u003e]\". The optional \"\\\u003cpolicy\u003e:\" prefix scopes the input to a single policy (matched against its name or ref); without it the input is global. Because a policy ref may itself contain \":\" but an input name never does, the scope is taken as everything before the \\*last\\* \":\" on the left of \"=\". The column is optional and defaults to the input name. A column is always a single, top-level field/header name — never a path or a nested key. The column is the segment after the last \":\"; since a column name never contains a path separator, a trailing \":\\\u003c...\u003e\" whose \":\" belongs to the file (a Windows drive letter like C:\\\\data\\\\... or a URL scheme like https://) is not mistaken for a column.\n\n```go\ntype PolicyLint struct {\n\t*ActionsOpts\n}\n```\n\n```go\nfunc NewPolicyLint(actionOpts *ActionsOpts) (*PolicyLint, error)\n```\n\n```go\nfunc (action *PolicyLint) Run(_ context.Context, opts *PolicyLintOpts) (*PolicyLintResult, error)\n```\n\n```go\ntype PolicyLintOpts struct {\n\tPolicyPath  string\n\tFormat      bool\n\tRegalConfig string\n}\n```\n\n```go\ntype PolicyLintResult struct {\n\tValid  bool\n\tErrors []string\n}\n```\n\n```go\ntype PolicyReference struct {\n\tName   string            `json:\"name\"`\n\tDigest map[string]string `json:\"digest\"`\n}\n```\n\n```go\ntype PolicyViolation struct {\n\tSubject  string `json:\"subject\"`\n\tMessage  string `json:\"message\"`\n\tSuppress bool   `json:\"suppress,omitempty\"`\n\t// Mirrors the oneof on the wire — exactly one pointer is set per\n\t// violation, or none for unstructured policies.\n\tVulnerability    *attv1.PolicyVulnerabilityFinding    `json:\"vulnerability,omitempty\"`\n\tSast             *attv1.PolicySASTFinding             `json:\"sast,omitempty\"`\n\tLicenseViolation *attv1.PolicyLicenseViolationFinding `json:\"license_violation,omitempty\"`\n}\n```\n\n```go\ntype ProjectVersion struct {\n\tID             string `json:\"id\"`\n\tVersion        string `json:\"version,omitempty\"`\n\tPrerelease     bool   `json:\"prerelease\"`\n\tMarkAsReleased bool   `json:\"markAsRelease\"`\n}\n```\n\n```go\ntype ReferrerDiscover struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc NewReferrerDiscoverPrivate(cfg *ActionsOpts) *ReferrerDiscover\n```\n\n```go\nfunc (action *ReferrerDiscover) Run(ctx context.Context, digest, kind string, p *PaginationOpts) (*ReferrerDiscoverResult, error)\n```\n\n```go\ntype ReferrerDiscoverResult struct {\n\tItem       *ReferrerItem `json:\"result\"`\n\tNextCursor string        `json:\"nextCursor,omitempty\"`\n}\n```\n\n```go\ntype ReferrerItem struct {\n\tDigest       string            `json:\"digest\"`\n\tKind         string            `json:\"kind\"`\n\tDownloadable bool              `json:\"downloadable\"`\n\tCreatedAt    *time.Time        `json:\"createdAt\"`\n\tReferences   []*ReferrerItem   `json:\"references\"`\n\tMetadata     map[string]string `json:\"metadata,omitempty\"`\n\tAnnotations  map[string]string `json:\"annotations,omitempty\"`\n}\n```\n\n```go\ntype RegisteredIntegrationAdd struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc NewRegisteredIntegrationAdd(cfg *ActionsOpts) *RegisteredIntegrationAdd\n```\n\n```go\nfunc (action *RegisteredIntegrationAdd) Run(pluginID, name, description string, options map[string]any) (*RegisteredIntegrationItem, error)\n```\n\n```go\ntype RegisteredIntegrationDelete struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc NewRegisteredIntegrationDelete(cfg *ActionsOpts) *RegisteredIntegrationDelete\n```\n\n```go\nfunc (action *RegisteredIntegrationDelete) Run(name string) error\n```\n\n```go\ntype RegisteredIntegrationDescribe struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc NewRegisteredIntegrationDescribe(cfg *ActionsOpts) *RegisteredIntegrationDescribe\n```\n\n```go\nfunc (action *RegisteredIntegrationDescribe) Run(name string) (*RegisteredIntegrationItem, error)\n```\n\n```go\ntype RegisteredIntegrationItem struct {\n\tID string `json:\"id\"`\n\t// Registration name used for declarative configuration\n\tName string `json:\"name\"`\n\t// Integration backend kind, i.e slack, pagerduty, etc\n\tKind string `json:\"kind\"`\n\t// Integration description for display and differentiation purposes\n\tDescription string                 `json:\"description\"`\n\tCreatedAt   *time.Time             `json:\"createdAt\"`\n\tConfig      map[string]interface{} `json:\"config\"`\n}\n```\n\n```go\ntype RegisteredIntegrationList struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc NewRegisteredIntegrationList(cfg *ActionsOpts) *RegisteredIntegrationList\n```\n\n```go\nfunc (action *RegisteredIntegrationList) Run() ([]*RegisteredIntegrationItem, error)\n```\n\n```go\ntype Role string\n```\n\n```go\nconst (\n\tRoleAdmin       Role = \"admin\"\n\tRoleOwner       Role = \"owner\"\n\tRoleViewer      Role = \"viewer\"\n\tRoleMember      Role = \"member\"\n\tRoleContributor Role = \"contributor\"\n)\n```\n\n```go\ntype Roles []Role\n```\n\n```go\nfunc (roles Roles) String() string\n```\n\n```go\ntype RunTraceLocalStoreOpts struct {\n\t// NoRedact disables secret redaction. Off by default: the store redacts\n\t// secrets exactly as a push does. The opt-out is for a trusted local run,\n\t// and the output can then hold secrets (R-004).\n\tNoRedact bool\n\t// Mode records how the session was driven, one of the aicodingsession.Mode*\n\t// constants. Empty means ModeCoding.\n\tMode string\n\t// CLIVersion is the bare CLI version recorded as the builder in the\n\t// statement.\n\tCLIVersion string\n\t// AllowEmpty assembles active sessions that produced no commit on this\n\t// branch, as `chainloop trace run` does. The pre-push path leaves it off, so\n\t// a push with no AI commits stores nothing.\n\tAllowEmpty bool\n}\n```\nRunTraceLocalStoreOpts configures a disk store of the recorded session evidence.\n\n```go\ntype RunTracePushOpts struct {\n\t// AllowEmpty makes the push attest every recorded session even when\n\t// no AI-attributed commits exist. Used by `chainloop trace run`,\n\t// which drives one-shot agent sessions that may produce no commits.\n\tAllowEmpty bool\n\n\t// ProjectName, when set, overrides the projectName read from\n\t// .chainloop.yml. Lets `trace run` operate without mutating the repo\n\t// config.\n\tProjectName string\n\t// Organization, when set, overrides the organization read from\n\t// .chainloop.yml.\n\tOrganization string\n\t// WorkflowName, when set, overrides the workflowName read from\n\t// .chainloop.yml.\n\tWorkflowName string\n\t// ProjectVersion, when set, targets a specific project version for\n\t// the attestation. Empty means use the latest version.\n\tProjectVersion string\n\t// IgnoreYAML disables the .chainloop.yml fallback used to fill in\n\t// identity fields. `trace run` sets this so its attestations depend\n\t// only on CLI flags. Pre-push hook callers leave it false to keep\n\t// reading the repo config.\n\tIgnoreYAML bool\n\t// SkipAgentNotification suppresses recording session links for an agent\n\t// hook to show later. `trace run` sets it: it reaches the push only\n\t// after the agent it wrapped has exited, so no hook of that agent can\n\t// fire again, and its own terminal already showed the links.\n\tSkipAgentNotification bool\n\n\t// Mode records how the session was driven, as one of the\n\t// aicodingsession.Mode* constants: ModeCoding for the git-hook path\n\t// installed by `trace init`, ModeGeneric for `trace run`. Both entry\n\t// points reach this same push, so the mode has to come from the caller —\n\t// nothing in the session itself distinguishes them. Empty means\n\t// ModeCoding.\n\tMode string\n\n\t// ActionOpts is the root command's initialized options, used to build\n\t// the attestation executor. Required: the push cannot run without it.\n\tActionOpts *ActionsOpts\n\t// CLIVersion is the bare CLI version recorded in the attestation\n\t// predicate.\n\tCLIVersion string\n}\n```\nRunTracePushOpts configures RunTracePush behaviour.\n\n```go\ntype ScopedEntity struct {\n\tType string `json:\"type\"`\n\tID   string `json:\"id\"`\n\tName string `json:\"name\"`\n}\n```\n\n```go\nfunc (s *ScopedEntity) String() string\n```\n\n```go\ntype SignServerOpts struct {\n\t// CA certificate for TLS connection\n\tCAPath string\n\t// (optional) Client cert and passphrase for mutual TLS authentication\n\tAuthClientCertPath, AuthClientCertPass string\n}\n```\nSignServerOpts holds SignServer integration options\n\n```go\ntype SubprocessExitError struct {\n\tCommand  string\n\tExitCode int\n}\n```\nSubprocessExitError carries the exit code of a wrapped command so the CLI can propagate it to the parent shell.\n\n```go\nfunc (e *SubprocessExitError) Error() string\n```\n\n```go\ntype TraceAuthCheck func(ctx context.Context, organization string) error\n```\nTraceAuthCheck asks the control plane whether the CLI credentials are accepted for the organization. An empty organization uses the default one.\n\n```go\ntype TraceProject struct {\n\tName string\n\t// CanCreateWorkflow is false for a project the caller can see but not add a\n\t// workflow to, such as one they only view. Offering one of those would end\n\t// in a permission error the moment init tried to create the workflow.\n\tCanCreateWorkflow bool\n}\n```\nTraceProject is one entry of the project listing.\n\n```go\ntype TraceProjects struct {\n\tProjects []*TraceProject\n\t// CanCreateProject is false when the caller's organization role does not\n\t// allow creating projects, which an organization contributor's does not even\n\t// where it administers every project it can see.\n\tCanCreateProject bool\n}\n```\nTraceProjects is what a project listing offers: the projects themselves and whether creating another one is possible at all.\n\n```go\ntype TraceRunOpts struct {\n\t// Store owns the chainloop-trace state directory, parented by the\n\t// .git directory inside a repository and otherwise by the out-of-tree\n\t// directory returned by state.NonGitDir. Outside a repository (IsGit\n\t// false) the managed git hooks are disabled, since git could never\n\t// invoke them anyway.\n\tStore *state.Store\n\t// RepoRoot is the repository root containing .chainloop.yml, or the\n\t// working directory when running outside a git repository.\n\tRepoRoot string\n\t// Providers is the list of agent provider names (e.g. \"claude-code\",\n\t// \"cursor\") whose info-gathering hooks should be installed.\n\tProviders []string\n\t// Command is the wrapped command: Command[0] is the program,\n\t// Command[1:] are its arguments.\n\tCommand []string\n\t// ProjectName, Organization, WorkflowName identify the attestation\n\t// for this run. trace run is isolated from .chainloop.yml, so callers\n\t// must pass these values directly from CLI flags.\n\tProjectName  string\n\tOrganization string\n\tWorkflowName string\n\t// ProjectVersion, when set, targets a specific project version.\n\t// Empty means use the latest version.\n\tProjectVersion string\n\t// ContractName is the contract to attach when the workflow has to be\n\t// created, and ContractRequired reports whether the user named it\n\t// explicitly. See EnsureTraceWorkflowOpts.\n\tContractName     string\n\tContractRequired bool\n\n\t// ActionOpts is the root command's initialized options, used to build\n\t// the attestation executor. Required unless Local, which reaches no\n\t// control plane.\n\tActionOpts *ActionsOpts\n\t// CLIVersion is the bare CLI version recorded in the attestation\n\t// predicate.\n\tCLIVersion string\n\n\t// Local runs in local mode (--local): the session is written to disk at\n\t// session end instead of attested, and no control plane is contacted. The\n\t// identity fields above are then unused.\n\tLocal bool\n}\n```\nTraceRunOpts configures a single TraceRun invocation.\n\n```go\ntype TraceWorkflowResult struct {\n\t// Created is true when this call created the workflow.\n\tCreated bool\n\t// ContractName is the contract the workflow is attached to. It is empty\n\t// when the workflow was created concurrently by someone else, since the\n\t// call does not read it back.\n\tContractName string\n}\n```\nTraceWorkflowResult reports what EnsureWorkflow did.\n\n```go\ntype UserItem struct {\n\tID            string     `json:\"id\"`\n\tEmail         string     `json:\"email\"`\n\tFirstName     string     `json:\"firstName\"`\n\tLastName      string     `json:\"lastName\"`\n\tCreatedAt     *time.Time `json:\"createdAt\"`\n\tInstanceAdmin bool       `json:\"instanceAdmin,omitempty\"`\n}\n```\n\n```go\nfunc (u *UserItem) PrintUserProfileWithEmail() string\n```\nPrintUserProfileWithEmail formats the user's profile with their email.\n\n```go\ntype ValidationStatus string\n```\n\n```go\nconst (\n\tValid   ValidationStatus = \"valid\"\n\tInvalid ValidationStatus = \"invalid\"\n)\n```\n\n```go\ntype WorkflowContractApply struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc NewWorkflowContractApply(cfg *ActionsOpts) *WorkflowContractApply\n```\n\n```go\nfunc (action *WorkflowContractApply) Run(ctx context.Context, contractName string, contractPath string, description *string, projectName string) (*WorkflowContractItem, bool, error)\n```\n\n```go\ntype WorkflowContractCreate struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc NewWorkflowContractCreate(cfg *ActionsOpts) *WorkflowContractCreate\n```\n\n```go\nfunc (action *WorkflowContractCreate) Run(name string, description *string, contractPath string, projectName string) (*WorkflowContractItem, error)\n```\n\n```go\ntype WorkflowContractDelete struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc NewWorkflowContractDelete(cfg *ActionsOpts) *WorkflowContractDelete\n```\n\n```go\nfunc (action *WorkflowContractDelete) Run(name string) error\n```\n\n```go\ntype WorkflowContractDescribe struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc NewWorkflowContractDescribe(cfg *ActionsOpts) *WorkflowContractDescribe\n```\n\n```go\nfunc (action *WorkflowContractDescribe) Run(ctx context.Context, name string, rev int32) (*WorkflowContractWithVersionItem, error)\n```\n\n```go\ntype WorkflowContractItem struct {\n\tName                    string         `json:\"name\"`\n\tDescription             string         `json:\"description,omitempty\"`\n\tID                      string         `json:\"id\"`\n\tLatestRevision          int            `json:\"latestRevision,omitempty\"`\n\tLatestRevisionCreatedAt *time.Time     `json:\"latestRevisionCreatedAt,omitempty\"`\n\tCreatedAt               *time.Time     `json:\"createdAt\"`\n\tWorkflows               []string       `json:\"workflows,omitempty\"` // TODO: remove this field after all clients are updated\n\tWorkflowRefs            []*WorkflowRef `json:\"workflowRefs,omitempty\"`\n\tScopedEntity            *ScopedEntity  `json:\"scopedEntity,omitempty\"`\n\tScope                   string         `json:\"scope\"`\n}\n```\n\n```go\ntype WorkflowContractList struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc NewWorkflowContractList(cfg *ActionsOpts) *WorkflowContractList\n```\n\n```go\nfunc (action *WorkflowContractList) Run() ([]*WorkflowContractItem, error)\n```\n\n```go\ntype WorkflowContractUpdate struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc NewWorkflowContractUpdate(cfg *ActionsOpts) *WorkflowContractUpdate\n```\n\n```go\nfunc (action *WorkflowContractUpdate) Run(name string, description *string, contractPath string, scope WorkflowContractUpdateScope) (*WorkflowContractWithVersionItem, error)\n```\n\n```go\ntype WorkflowContractUpdateScope struct {\n\t// ProjectName converts the contract to a project-level contract of this project\n\tProjectName string\n\t// Organization converts the contract to an organization-level contract\n\tOrganization bool\n}\n```\nWorkflowContractUpdateScope is the level that an update converts the contract to. The zero value keeps the level of the contract.\n\n```go\ntype WorkflowContractVersionItem struct {\n\tID          string                   `json:\"id\"`\n\tRevision    int                      `json:\"revision\"`\n\tDescription string                   `json:\"description\"`\n\tCreatedAt   *time.Time               `json:\"createdAt\"`\n\tBodyV1      *schemav1.CraftingSchema `json:\"bodyV1\"`\n\tRawBody     *ContractRawBody         `json:\"rawBody\"`\n}\n```\n\n```go\ntype WorkflowContractWithVersionItem struct {\n\tContract *WorkflowContractItem        `json:\"contract\"`\n\tRevision *WorkflowContractVersionItem `json:\"revision\"`\n}\n```\n\n```go\ntype WorkflowCreate struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc NewWorkflowCreate(cfg *ActionsOpts) *WorkflowCreate\n```\n\n```go\nfunc (action *WorkflowCreate) Run(ctx context.Context, opts *NewWorkflowCreateOpts) (*WorkflowItem, error)\n```\n\n```go\ntype WorkflowDelete struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc NewWorkflowDelete(cfg *ActionsOpts) *WorkflowDelete\n```\n\n```go\nfunc (action *WorkflowDelete) Run(name, projectName string) error\n```\n\n```go\ntype WorkflowDescribe struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc NewWorkflowDescribe(cfg *ActionsOpts) *WorkflowDescribe\n```\n\n```go\nfunc (action *WorkflowDescribe) Run(ctx context.Context, name, projectName string) (*WorkflowItem, error)\n```\n\n```go\ntype WorkflowItem struct {\n\tName                   string           `json:\"name\"`\n\tDescription            string           `json:\"description,omitempty\"`\n\tID                     string           `json:\"id\"`\n\tTeam                   string           `json:\"team\"`\n\tProject                string           `json:\"project,omitempty\"`\n\tCreatedAt              *time.Time       `json:\"createdAt\"`\n\tRunsCount              int32            `json:\"runsCount\"`\n\tContractName           string           `json:\"contractName,omitempty\"`\n\tContractRevisionLatest int32            `json:\"contractRevisionLatest,omitempty\"`\n\tLastRun                *WorkflowRunItem `json:\"lastRun,omitempty\"`\n\t// WorkflowTemplateID is the platform workflow template this workflow is bound to,\n\t// empty when it is not bound to any\n\tWorkflowTemplateID string `json:\"workflowTemplateId,omitempty\"`\n}\n```\n\n```go\nfunc (wi *WorkflowItem) NamespacedName() string\n```\nNamespacedName returns the project and workflow name in a formatted string\n\n```go\ntype WorkflowList struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc NewWorkflowList(cfg *ActionsOpts) *WorkflowList\n```\nNewWorkflowList creates a new instance of WorkflowList\n\n```go\nfunc (action *WorkflowList) Run(page int, pageSize int) (*WorkflowListResult, error)\n```\nRun executes the workflow list action\n\n```go\ntype WorkflowListResult struct {\n\tWorkflows  []*WorkflowItem   `json:\"workflows\"`\n\tPagination *OffsetPagination `json:\"pagination\"`\n}\n```\nWorkflowListResult holds the output of the workflow list action\n\n```go\ntype WorkflowRef struct {\n\tID          string `json:\"id\"`\n\tName        string `json:\"name\"`\n\tProjectName string `json:\"projectName\"`\n}\n```\n\n```go\ntype WorkflowRunAttestationItem struct {\n\tEnvelope *dsse.Envelope `json:\"envelope\"`\n\tBundle   []byte         `json:\"bundle\"`\n\n\tMaterials   []*Material   `json:\"materials,omitempty\"`\n\tEnvVars     []*EnvVar     `json:\"envvars,omitempty\"`\n\tAnnotations []*Annotation `json:\"annotations,omitempty\"`\n\t// Digest in CAS backend\n\tDigest string `json:\"digest\"`\n\t// Policy violations\n\tPolicyEvaluations map[string][]*PolicyEvaluation `json:\"policy_evaluations,omitempty\"`\n\t// Policy evaluation status\n\tPolicyEvaluationStatus *PolicyEvaluationStatus `json:\"policy_evaluation_status,omitempty\"`\n\t// Where the policy-evaluation bundle lives in the CAS backend, set whenever\n\t// the attestation carries one. When Inlined is false the evaluations above\n\t// are empty and must be fetched from there instead; PolicyEvaluationStatus\n\t// stays complete either way.\n\tPolicyEvaluationsRef *PolicyEvaluationsRef `json:\"policy_evaluations_ref,omitempty\"`\n\t// URL to view the attestation in the UI\n\tAttestationViewURL string `json:\"attestation_view_url\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (i *WorkflowRunAttestationItem) Statement() *intoto.Statement\n```\n\n```go\ntype WorkflowRunDescribe struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc NewWorkflowRunDescribe(cfg *ActionsOpts) *WorkflowRunDescribe\n```\n\n```go\nfunc (action *WorkflowRunDescribe) Run(ctx context.Context, opts *WorkflowRunDescribeOpts) (*WorkflowRunItemFull, error)\n```\n\n```go\ntype WorkflowRunDescribeOpts struct {\n\tRunID, Digest           string\n\tVerify                  bool\n\tPublicKeyRef            string\n\tCertPath, CertChainPath string\n}\n```\n\n```go\ntype WorkflowRunItem struct {\n\tID                     string                       `json:\"id\"`\n\tState                  string                       `json:\"state\"`\n\tReason                 string                       `json:\"reason,omitempty\"`\n\tCreatedAt              *time.Time                   `json:\"createdAt,omitempty\"`\n\tFinishedAt             *time.Time                   `json:\"finishedAt,omitempty\"`\n\tWorkflow               *WorkflowItem                `json:\"workflow,omitempty\"`\n\tRunURL                 string                       `json:\"runURL,omitempty\"`\n\tRunnerType             string                       `json:\"runnerType,omitempty\"`\n\tContractVersion        *WorkflowContractVersionItem `json:\"contractVersion,omitempty\"`\n\tContractRevisionUsed   int                          `json:\"contractRevisionUsed\"`\n\tContractRevisionLatest int                          `json:\"contractRevisionLatest\"`\n\tProjectVersion         *ProjectVersion              `json:\"projectVersion,omitempty\"`\n\tPolicyStatus           string                       `json:\"policyStatus,omitempty\"`\n}\n```\n\n```go\ntype WorkflowRunItemFull struct {\n\tWorkflowRun *WorkflowRunItem            `json:\"workflowRun\"`\n\tWorkflow    *WorkflowItem               `json:\"workflow\"`\n\tAttestation *WorkflowRunAttestationItem `json:\"attestation,omitempty\"`\n\tVerified    bool                        `json:\"verified\"`\n}\n```\n\n```go\ntype WorkflowRunList struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc NewWorkflowRunList(cfg *ActionsOpts) *WorkflowRunList\n```\n\n```go\nfunc (action *WorkflowRunList) Run(opts *WorkflowRunListOpts) (*PaginatedWorkflowRunItem, error)\n```\n\n```go\ntype WorkflowRunListOpts struct {\n\tWorkflowName, ProjectName string\n\t// ProjectVersionName filters by project version name (e.g. v1.2.0). It requires\n\t// ProjectName, since a version name is unique only within a project.\n\tProjectVersionName string\n\tPagination         *PaginationOpts\n\tStatus             string\n\tPolicyStatus       string\n}\n```\n\n```go\ntype WorkflowUpdate struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc NewWorkflowUpdate(cfg *ActionsOpts) *WorkflowUpdate\n```\n\n```go\nfunc (action *WorkflowUpdate) Run(ctx context.Context, name, project string, opts *WorkflowUpdateOpts) (*WorkflowItem, error)\n```\n\n```go\ntype WorkflowUpdateOpts struct {\n\tDescription, Team, ContractName *string\n}\n```\n\n```go\ntype YAMLDoc struct {\n\tKind    string\n\tName    string\n\tRawData []byte\n}\n```\nYAMLDoc holds a parsed YAML document with its kind and raw bytes\n\n```go\nfunc ParseYAMLPath(path string) ([]*YAMLDoc, error)\n```\nParseYAMLPath collects all YAML files from a path (file or directory), reads them, and splits multi-document files into individual YAMLDoc entries.\n\n```go\nfunc SplitYAMLDocuments(rawData []byte) ([]*YAMLDoc, error)\n```\nSplitYAMLDocuments splits a potentially multi-document YAML file into individual documents, extracting kind and name from each.\n\n","path":"github.com/chainloop-dev/chainloop/app/cli/pkg/action","name":"action","synopsis":"","isRedistributable":true}
