60 const squashMessage = `${title} (#${number})\n\n${fullBody}`;
61
62▶ async function findStickyComment() {
63 const comments = await github.paginate(github.rest.issues.listComments, {
64 ...context.repo,
· · ·
72 // turn this advisory job red on its own: fork PRs run with
73 // restricted tokens, secondary rate limits, transient API errors.
74▶ // Fall back to `core.summary` so a maintainer can paste the
75 // remediation manually. The check still fails — `setFailed` is
76 // invoked before this function, so the failure signal is already
· · ·
76▶ // invoked before this function, so the failure signal is already
77 // recorded by the time the comment write is attempted.
78 //
· · ·
80 // `findStickyComment` (e.g., pagination throwing) surfaces with
81 // its true cause instead of being misattributed to "fork PR token".
82▶ async function postStickyOrSummary(commentBody, summaryHeading) {
83 const existing = await findStickyComment();
84 try {