Dashboard › publish › Distillation
d1361b66-1921-417b-b69e-5beff266abc2["lore_tm_v1_Kqfn-n75jRHrjyhxicci8aQLsxLkGwLM0VIo_iToxPE","lore_tm_v1_iiob08DLDhXwa0kcKkFRSKO3GuO7v-VMG8HYLB5VF7w","lore_tm_v1_uw6hV49gVJaEoXmvWgECTQopbuR6nwI9m6Y-HDqXSTg","lore_tm_v1_2DcxBUY7VeSzMOZ3CsdnLNlTArObltwEp7S4L3uMCyA"]
-): 58b43354ebad6c25f3a689f9e6672a60632c9461d537dd9229c85a03bfc44ef4 and 8ca4aa7afcb6a1c171f695d488a06b8cf4d08436a414a3223a18b33a08db4fc6.src/publish/record-ci-ready-attestation.js is 109 lines and imports createCiReadyAttestation and currentAcceptedEvent from ../modules/approval-attestation.js, plus getAllPages, getGitHubResponse, and getIssue from ./validate-approval-attestation.js.getAuthenticatedLogin() in src/publish/record-ci-ready-attestation.js calls getGitHubResponse("user"); a non-OK response throws Could not retrieve the authenticated user: GitHub returned ${response.status}, and a non-string login throws GitHub returned no authenticated user login.recordCiReadyAttestation() concurrently retrieves the issue, all issue events, and authenticated login via Promise.all, then resolves the current approval using currentAcceptedEvent(events).recordCiReadyAttestation() throws The approval changed before CI could be marked ready if the issue is not open, its title differs from issueTitle, it lacks an accepted label, there is no current accepted event, or the accepted eventβs actor/eventId differs from an optionally supplied expectedAcceptedEvent.recordCiReadyAttestation() returns createCiReadyAttestation({ acceptedEvent, ciReadyActor, issue }).main() in src/publish/record-ci-ready-attestation.js requires GITHUB_OUTPUT, APPROVAL_TOKEN, APPROVAL_ISSUE_NUMBER, APPROVAL_ISSUE_REPOSITORY, and APPROVAL_ISSUE_TITLE; a missing value throws No "${name}" environment variable found.main() supplies expectedAcceptedEvent only when both EXPECTED_ACCEPTED_ACTOR and EXPECTED_ACCEPTED_EVENT_ID are present, and retrieves issue events through getAllPages({ repository, issueNumber, resource: "events" }).src/publish/record-ci-ready-attestation.js appends ci_ready_attestation=${attestation}\n to process.env.GITHUB_OUTPUT using fs.appendFileSync; direct execution catches errors, logs them, and sets process.exitCode = 1.src/publish/record-ci-ready-attestation.js exports getAuthenticatedLogin, main, and recordCiReadyAttestation.workflow_run supports activity types completed, requested, and in_progress; for this event, GITHUB_SHA is the last commit on the default branch and GITHUB_REF is the default branch.workflow_run supports branches and branches-ignore filters controlling which branch of the triggering workflow can trigger the dependent workflow; its example restricts workflow Build to branch canary.workflow_dispatch and repository_dispatch, events initiated by GITHUB_TOKEN generally do not create workflow runs; pull_request events of types opened, synchronize, or reopened are separately described as producing runs that require approval when created or updated via GITHUB_TOKEN.