1 minor finding · 2 suggestions
Findings
[minor] · An unrelated issue can permanently suppress the certificate expiry alert
Anyone who can open issues can create and close one with the expected title, preventing the monitor from reporting the expiry; certificate signing is unaffected.
Location: .github/workflows/code-signing-certificate.yml:52 (head).
Details and suggested fix
The duplicate check matches any issue, open or closed and from any author, whose title equals TITLE. That title is built only from the public certificate’s notAfter date. For the checked-in leaf, it is Windows code signing certificate expires May 31 23:59:59 2027 GMT. Blank issues are enabled, and GitHub lets an issue’s author close it, so any account that can open issues can create and close a matching issue at any time. Every later run then prints “already reported” and exits successfully, both before and after expiry. Weekly reruns do not recover; the issue must be deleted or retitled. A matching spam issue that maintainers close has the same effect. Restrict the lookup to issues created by the workflow, for example by adding author:app/github-actions to the search or filtering on the returned author.login. Maintainers could still acknowledge a bot-created alert by closing it. The repository’s issue interaction settings were not checked beyond the template configuration.
Optional improvements
[suggestion] · Closing the warning also suppresses the later expiry alert
Once the 90-day warning exists, later runs do not report that the certificate expired, even if the warning was closed without a renewal landing.
Location: .github/workflows/code-signing-certificate.yml:54 (head).
Details and suggested fix
The warning and expiry alert share a title built only from the certificate’s notAfter date. The lookup includes closed issues, and any match exits before STATUS is computed. Once the warning exists, every later run exits early, including after expiry. The has expired branch runs only if no warning was filed, such as when the workflow is first enabled inside the warning window. For the current leaf, the warning would be filed around early March 2027. If it is then closed without a renewal landing, whether as an acknowledgement, duplicate, or by mistake, nothing alerts at expiry on 2027-05-31; the next Windows signing would reveal it. Closing the issue is documented as acknowledging the warning, but it is unclear whether that should also acknowledge expiry. If not, give the expired state its own deduplication key, such as by including the status in the title. This preserves one warning while allowing one alert at expiry.
[suggestion] · A failed certificate-monitoring run does not notify maintainers with an issue
If the certificate check or another workflow step fails, no issue is created, and scheduled-run notifications reach only the workflow creator or the user who last changed the cron line.
Location: .github/workflows/code-signing-certificate.yml:41 (head).
Details and suggested fix
The check at lines 39–43 deliberately fails when the first PEM block is not a non-CA code-signing certificate. With shell: bash and -eo pipefail, an OpenSSL or 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 whoever last changed the cron line. Other maintainers would need to notice the failure in the Actions tab, so a broken monitor could go unnoticed until signing, as before this change. Add a final step with if: failure() that opens a deduplicated issue linking to the run, with GH_TOKEN set. This would not help if gh itself is broken or the schedule stops running.