Skip to content

ci: add ubuntu-26.04 as a custom runner label so actionlint stops complaining - #5102

Merged
tarek-y-ismail merged 1 commit into
mainfrom
pre-commit-actionlint-fix
Jul 17, 2026
Merged

tarek-y-ismail merged 1 commit into
mainfrom
pre-commit-actionlint-fix

Conversation

@jhenstridge

Copy link
Copy Markdown
Contributor

This is a slightly cleaner version of #5099. The underlying problem is that actionlint v1.7.12 includes a hard coded list of runner images it believes that Github provides, and ubuntu-26.04 is not on that list. Ideally we could move to a newer version in our pre-commit configuration, but no newer versions have been released (there is rhysd/actionlint#683 open to add it though).

We can augment the list of runner images actionlint will treat as valid through it's configuration file though, so that's what this PR does. This has the benefit that we'll be linting the spread.yml and symbols-check.yml workflows again, and no change will be necessary if we start using ubuntu-26.04 in other workflows.

Closes #5097

How to test

Check if the PreCommit actions workflow succeeds.

Checklist

  • Tests added and pass
  • Adequate documentation added
  • (optional) Added Screenshots or videos

…plaining

While ubuntu-26.04 is not actually a custom runner, actionlint v1.7.12
does not know about it.
@jhenstridge
jhenstridge marked this pull request as ready for review July 17, 2026 04:15
Copilot AI review requested due to automatic review settings July 17, 2026 04:15

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.

Pull request overview

This PR updates the repository’s actionlint configuration to recognize ubuntu-26.04 as a valid runner label (working around actionlint v1.7.12’s hard-coded runner list), and removes the temporary pre-commit workflow workaround that excluded affected workflows from linting.

Changes:

  • Extend .github/actionlint.yaml runner-label configuration to accept ubuntu-26.04.
  • Remove the pre-commit/action extra_args workaround that filtered out spread.yml and symbols-check.yml, allowing them to be linted again.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
.github/workflows/pre-commit.yaml Drops the explicit --files $(find … -not -name spread.yml …) workaround so pre-commit/action runs with its default behavior and can lint all workflows again.
.github/actionlint.yaml Adds ubuntu-26.04 to the configured runner labels so actionlint v1.7.12 stops flagging it as unknown.

@tarek-y-ismail tarek-y-ismail 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.

Seems to blend

@tarek-y-ismail
tarek-y-ismail added this pull request to the merge queue Jul 17, 2026
Merged via the queue into main with commit 91c4c5c Jul 17, 2026
38 of 39 checks passed
@tarek-y-ismail
tarek-y-ismail deleted the pre-commit-actionlint-fix branch July 17, 2026 07:40
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.

PreCommit hook failing since 2026-07-14

3 participants