Skip to content

Update deprecated actions/checkout v2 -> v4#3

Merged
mattgodbolt merged 1 commit into
mainfrom
add-actionlint
Jul 12, 2026
Merged

Update deprecated actions/checkout v2 -> v4#3
mattgodbolt merged 1 commit into
mainfrom
add-actionlint

Conversation

@mattgodbolt

@mattgodbolt mattgodbolt commented Jul 10, 2026

Copy link
Copy Markdown
Member

Found by an org-wide actionlint sweep. Per review feedback the lint tooling itself is staying in the core repos (compiler-explorer, infra, compiler-workflows) — this PR keeps just the fixes, which stand on their own:

  • actions/checkout v2 -> v4

🤖 Generated with Claude Code

Copilot AI review requested due to automatic review settings July 10, 2026 21:16

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Adds repository-level linting for GitHub Actions workflows using actionlint, aligning this repo with the org-wide rollout and updating the remaining actions/checkout usage to v4 to satisfy runner/tooling checks.

Changes:

  • Introduces a new workflow to run actionlint on pushes/PRs that modify workflow or actionlint config files.
  • Adds .github/actionlint.yaml to define self-hosted runner labels and suppress ShellCheck info/style findings.
  • Updates actions/checkout from v2 → v4 in the Windows build/test workflow.

Reviewed changes

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

File Description
.github/workflows/lint-actions.yml New CI workflow that runs actionlint on workflow/config changes.
.github/workflows/build-test.yml Updates checkout action to v4.
.github/actionlint.yaml Adds actionlint configuration (runner labels + ShellCheck ignore patterns).

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread .github/workflows/lint-actions.yml Outdated
pull_request:
paths: ['.github/workflows/**', '.github/actionlint.yaml']

jobs:
Comment thread .github/actionlint.yaml Outdated
Comment on lines +13 to +18
paths:
.github/workflows/**/*.yml:
ignore: &shellcheck-info-style
- 'shellcheck reported issue in this script: SC\d+:(info|style):'
.github/workflows/**/*.yaml:
ignore: *shellcheck-info-style
- actions/checkout v2 -> v4

Found by an org-wide actionlint sweep; the lint tooling itself is staying in the core repos only, but these fixes stand on their own.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@mattgodbolt mattgodbolt changed the title Lint GitHub Actions workflows with actionlint Update deprecated actions/checkout v2 -> v4 Jul 10, 2026
@mattgodbolt mattgodbolt merged commit 568b102 into main Jul 12, 2026
2 checks passed
@mattgodbolt mattgodbolt deleted the add-actionlint branch July 12, 2026 19:30
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.

2 participants