Review report

core: PR #36673

1 minor finding · 3 suggestions

Findings

Link

[minor] · Any user's matching issue can permanently suppress the expiry alert

Any account that can open issues can file and close a matching issue, suppressing reports of the current certificate's expiry; no signing capability is affected.

Location: .github/workflows/code-signing-certificate.yml:48 (head).

Details and suggested fix

The duplicate check accepts any issue, open or closed and from any author, whose title matches TITLE. For the checked-in certificate, the title is Windows code signing certificate expires May 31 23:59:59 2027 GMT. Blank issues are enabled, so any account that can open issues can file an issue with that title and then close it. Every later run prints “already reported” and exits 0, during the 90-day warning window and after expiry. Weekly reruns do not recover; only deleting or retitling the issue does. Restrict the search to issues created by the workflow, for example by adding author:app/github-actions to the query. This relies on GitHub's standard rules for opening and closing one's own issue; the repository's issue settings were not checked beyond the template configuration.


Optional improvements

Link

[suggestion] · Closing the warning also suppresses a later expired-certificate alert

After the warning issue is filed, the workflow never reports that the certificate has expired, even if renewal stalls after the issue is closed.

Location: .github/workflows/code-signing-certificate.yml:47 (head).

Details and suggested fix

TITLE depends on the certificate's notAfter date, not whether it is nearing expiry or already expired. The lookup uses --state all, and a match exits before STATUS is computed. After the first warning, every later run exits early; the has expired branch runs only if no warning was filed, such as when the workflow first runs after the warning threshold. For the current certificate, the warning would be filed in early March 2027. If the issue is then closed without a renewal, nothing alerts again when the certificate expires on 2027-05-31. The comment indicates that closing is meant to acknowledge the warning; the design question is whether it should also acknowledge expiry. If not, give the expired state its own deduplication key, such as by including the status in the title. This retains one warning while raising a separate alert at expiry.


Link

[suggestion] · Release branches can continue using an expired certificate without an alert

A point release from a branch that missed a renewal backport can still use the old certificate, while this workflow checks only master.

Location: .github/workflows/code-signing-certificate.yml:27 (head).

Details and suggested fix

Windows signing uses the certificate in the tree being built. package.sh copies contrib/windeploy into the -win64-codesigning.tar.gz tarball, and detached-sig-create.sh passes win-codesign.cert to osslsigncode sign -certs. The workflow checks out only master, and its issue asks only to update $CERT. After renewal lands on master, the title follows the new notAfter date and the check passes, but maintained release branches can still hold the old certificate. Past renewals needed backports: #25201 appears in the 22.1 and 23.1 release notes, and #30149 in the 26.2 and 27.1 release notes. Since short-notice bugfix releases are cut from release branches, ask in the issue body for renewal to be backported to maintained branches. Alternatively, check each maintained *.x branch and include the branch name in the title.


Link

[suggestion] · A failed monitoring run does not alert maintainers with an issue

If the certificate file is missing or unparsable, the job fails without creating an issue, and scheduled-workflow failure notifications may reach only one user.

Location: .github/workflows/code-signing-certificate.yml:39 (head).

Details and suggested fix

The parse at line 39 is intended to fail on malformed input. A missing file, a gh error, or a checkout failure also stops the job before it creates an issue. GitHub sends scheduled-workflow failure notifications only to the user who created the workflow or last changed the cron line. Other maintainers would need to find the failure in the Actions tab, so a broken monitor may go unnoticed until signing. Add a final if: failure() step that opens an issue linking to the run, deduplicated like the expiry alert. This would not help if gh is broken or the schedule stops running.


Coverage details