Skip to content

Add actionlint workflow to lint GitHub Actions workflows#424

Merged
rajbos merged 2 commits intomainfrom
copilot/add-actionlint-workflow
Mar 18, 2026
Merged

Add actionlint workflow to lint GitHub Actions workflows#424
rajbos merged 2 commits intomainfrom
copilot/add-actionlint-workflow

Conversation

Copy link
Contributor

Copilot AI commented Mar 18, 2026

Adds automated linting of workflow files using devops-actions/actionlint to catch common errors and security issues in GitHub Actions definitions.

Changes

  • New workflow .github/workflows/actionlint.yml:
    • Triggers on push and pull_request scoped to .github/workflows/**
    • SHA-pinned to devops-actions/actionlint v0.1.11 — latest release
    • pull-requests: write permission included to enable inline PR annotations on changed files
    • Follows existing repo conventions: step-security/harden-runner, SHA-pinned actions
- name: Run actionlint
  uses: devops-actions/actionlint@469810fd82c015d3c43815cd2b0e4d02eecc4819 # v0.1.11

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • https://api.github.com/repos/devops-actions/actionlint/git/refs/tags/v0.1.11
    • Triggering command: /home/REDACTED/work/_temp/ghcca-node/node/bin/node /home/REDACTED/work/_temp/ghcca-node/node/bin/node --enable-source-maps /home/REDACTED/work/_temp/copilot-developer-action-main/dist/index.js (http block)

If you need me to access, download, or install something from one of these locations, you can either:

Original prompt

Add a new workflow that triggers on changes in the .github/workflows folder. Name it "actionlint" and implement a call to the DevOps-actions/actionlint action in it, to lint our actions workflows for common (security) issues.

Check the action readme for examples. Use the latest version.


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Co-authored-by: rajbos <6085745+rajbos@users.noreply.github.com>
Copilot AI changed the title [WIP] Add workflow to lint actions for security issues Add actionlint workflow to lint GitHub Actions workflows Mar 18, 2026
Copilot AI requested a review from rajbos March 18, 2026 07:03
@rajbos rajbos marked this pull request as ready for review March 18, 2026 07:22
@rajbos rajbos enabled auto-merge March 18, 2026 07:23
@rajbos rajbos merged commit ac7ff68 into main Mar 18, 2026
14 of 16 checks passed
@rajbos rajbos deleted the copilot/add-actionlint-workflow branch March 18, 2026 07: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.

2 participants