Skip to content

ci: fix workflow bugs and bump action versions - #1972

Merged
coliff merged 1 commit into
mainfrom
ci/fix-workflow-bugs
Nov 25, 2026
Merged

coliff merged 1 commit into
mainfrom
ci/fix-workflow-bugs

Conversation

@coliff

@coliff coliff commented Nov 25, 2026

Copy link
Copy Markdown
Member

Requested by Christian · project thread

Short description of what this resolves

An audit of .github/workflows found three real bugs, plus some cleanup and two action version bumps.

Proposed changes

Bugs

  • Tests never ran on Ubuntu. In chore: Update Node Versions Supported (20, 22, 24) #1530 the "Run tests" step got if: matrix.os != 'ubuntu-latest' (it was meant to skip only the one coverage job). The coverage step was later removed, so every Ubuntu job in the matrix built the project but never ran npm run test. The condition is removed so all 6 matrix jobs run tests.
  • Label sync couldn't write labels. sync-labels.yml only had contents: read, but creating, editing and deleting labels needs issues: write. It is now granted at job level.
  • Manual labeler had no PR to label. labeler.yml only triggers on workflow_dispatch, which carries no pull request, so actions/labeler had nothing to act on. A required pr-number input is added and passed through to the action.

Cleanup

  • Replaced styfle/cancel-workflow-action with a native concurrency group (the same pattern the other workflows use), which also drops the actions: write permission.
  • nick-invision/retry → nick-fields/retry (the repo was renamed; same pinned commit).

Version bumps (SHA pins with version comments)

  • github/codeql-action v4.39.3 → v4.39.5
  • ossf/scorecard-action v2.5.0 → v2.6.0

Every other action is already on its latest release. publish.yml is untouched, so its existing zizmor findings won't trip Super-Linter. Checked locally: zizmor reports nothing new, actionlint is clean, and Prettier 3.9.8 passes.


Generated by Claude Code

- Run tests on Ubuntu again: a leftover `matrix.os != 'ubuntu-latest'` condition meant the test step only ran on Windows
- Grant `issues: write` to the label sync job, which needs it to create, edit and delete labels
- Add a `pr-number` input to the manually triggered labeler, which has no pull request to label without it
- Replace styfle/cancel-workflow-action with a native `concurrency` group and drop the `actions: write` permission it needed
- Use the renamed nick-fields/retry repository (same commit)
- Bump github/codeql-action to v4.39.5 and ossf/scorecard-action to v2.6.0

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B4uAX7qUQtZRpZNPepkBsu
Copilot AI balanced review requested due to automatic review settings November 25, 2026 05:59
@coliff coliff self-assigned this Nov 25, 2026
@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying htmlhint with  Cloudflare Pages  Cloudflare Pages

Latest commit: 4681ad9
Status: ✅  Deploy successful!
Preview URL: https://4dc1dde3.htmlhint.pages.dev
Branch Preview URL: https://ci-fix-workflow-bugs.htmlhint.pages.dev

View logs

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

No active review issues are reported for the CI and automation workflow updates.

No open issues 🎉

What changed in this PR

This PR fixes HTMLHint’s CI test execution and label automation, simplifies workflow cancellation, and updates pinned security actions.

Changes:

  • Restore tests across all six matrix jobs and replace the cancellation action with native concurrency.
  • Grant label sync write access and add a required pull request input to the manual labeler.
  • Update CodeQL and Scorecard action pins and use the renamed retry action repository.
File Description
.github/​workflows/​website.yml Update the CodeQL SARIF upload action.
.github/​workflows/​test.yml Restore Ubuntu tests, add native concurrency, and update the retry action reference.
.github/​workflows/​sync-labels.yml Grant permissions to create, update, and delete labels.
.github/​workflows/​ossf-scorecard.yml Update Scorecard and CodeQL SARIF upload actions.
.github/​workflows/​labeler.yml Accept and pass explicit pull request numbers for manual labeling.
.github/​workflows/​codeql-analysis.yml Update CodeQL initialization and analysis actions.

Review effort: Balanced

@coliff
coliff merged commit 87766b0 into main Nov 25, 2026
25 checks passed
@coliff
coliff deleted the ci/fix-workflow-bugs branch November 25, 2026 06:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants