Repository navigation
ci: fix workflow bugs and bump action versions - #1972
Merged
Merged
Conversation
- 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
Deploying htmlhint with
|
| Latest commit: |
4681ad9
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://4dc1dde3.htmlhint.pages.dev |
| Branch Preview URL: | https://ci-fix-workflow-bugs.htmlhint.pages.dev |
Contributor
There was a problem hiding this comment.
🟢 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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Requested by Christian · project thread
Short description of what this resolves
An audit of
.github/workflowsfound three real bugs, plus some cleanup and two action version bumps.Proposed changes
Bugs
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 rannpm run test. The condition is removed so all 6 matrix jobs run tests.sync-labels.ymlonly hadcontents: read, but creating, editing and deleting labels needsissues: write. It is now granted at job level.labeler.ymlonly triggers onworkflow_dispatch, which carries no pull request, soactions/labelerhad nothing to act on. A requiredpr-numberinput is added and passed through to the action.Cleanup
styfle/cancel-workflow-actionwith a nativeconcurrencygroup (the same pattern the other workflows use), which also drops theactions: writepermission.nick-invision/retry→nick-fields/retry(the repo was renamed; same pinned commit).Version bumps (SHA pins with version comments)
github/codeql-actionv4.39.3 → v4.39.5ossf/scorecard-actionv2.5.0 → v2.6.0Every other action is already on its latest release.
publish.ymlis 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