attested_status
Returns a signed CI test verdict for a project's attested/ctrf.json from a Sigstore attestation accepted by gh attestation verify, and labels local receipt fields as unverified.
Instructions
Return the signed verdict for the project's attested/ctrf.json, built only from the Sigstore attestation that gh attestation verify accepts under the same run, ref, and head policy as the required check, plus the local receipt fields labelled unverified. Local runs are never attested; CI runs are.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | Project directory to run in (default: the server working directory). | |
| repo | No | owner/repo (default: from git remote origin). | |
| run_id | No | Workflow run whose attestation is accepted (default: the latest completed run of the signer workflow for head_sha, from the GitHub API). | |
| head_sha | No | Commit the receipt must cover (default: git HEAD). | |
| source_ref | No | Ref that run must have signed on (default: refs/pull/<N>/merge or refs/heads/<branch>, from that run). | |
| signer_workflow | No | owner/repo/.github/workflows/<file>.yml that must have signed it (default: <repo>/.github/workflows/attested.yml). |