Skip to content

⭐️ add actionlint for GitHub Actions linting#1373

Merged
chris-rock merged 4 commits intomainfrom
add-actionlint
Feb 6, 2026
Merged

⭐️ add actionlint for GitHub Actions linting#1373
chris-rock merged 4 commits intomainfrom
add-actionlint

Conversation

@chris-rock
Copy link
Copy Markdown
Member

@chris-rock chris-rock commented Feb 5, 2026

Summary

  • Add actionlint job to CI to lint GitHub Actions workflows on PRs
  • Add make lint/actions target for local linting before pushing
  • Fix several existing workflow issues discovered by actionlint:
    • Invalid secrets section under workflow_dispatch in cloud-tests.yaml
    • References to non-existent steps.build-providers in slack notification jobs
    • Missing secret declarations in integration-tests.yaml workflow_call

Closes #673

Test plan

  • Verify make lint/actions runs successfully locally
  • Verify the new actionlint CI job passes on this PR
  • Confirm existing workflows still function correctly

🤖 Generated with Claude Code

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Feb 5, 2026

Test Results

  5 files  ±0   41 suites  ±0   34m 9s ⏱️ +37s
282 tests ±0  282 ✅ ±0  0 💤 ±0  0 ❌ ±0 
301 runs  ±0  299 ✅ ±0  2 💤 ±0  0 ❌ ±0 

Results for commit 9b1d228. ± Comparison against base commit 0d2138f.

♻️ This comment has been updated with latest results.

- Add actionlint job to lint.yaml CI workflow
- Add `make lint/actions` target for local linting
- Fix invalid `secrets` section in cloud-tests.yaml workflow_dispatch
- Fix bogus step references in slack notification jobs
- Add missing secret declarations in integration-tests.yaml

Closes #673

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
chris-rock and others added 3 commits February 6, 2026 12:23
- Pin actionlint version to v1.7.10 instead of @latest
- Mark MONDOO_TEST_ORG_TOKEN as required (tests depend on it)
- Enable shellcheck in actionlint for full linting coverage

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
steps:
- name: Send Slack notification on failure
uses: slackapi/slack-github-action@91efab103c0de0a537f72a35f6b8cda0ee76bf0a # v2.1.1
if: ${{ always() && steps.build-providers.outcome != 'success' }}
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

we have the condition on the job level, so we do not need this here anymore

steps:
- name: Send Slack notification on failure
uses: slackapi/slack-github-action@91efab103c0de0a537f72a35f6b8cda0ee76bf0a # v2.1.1
if: ${{ always() && steps.build-providers.outcome != 'success' }}
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

we have the if condition on the job level, so we do not need this here.

@chris-rock chris-rock merged commit 64f2d59 into main Feb 6, 2026
24 checks passed
@chris-rock chris-rock deleted the add-actionlint branch February 6, 2026 12:42
@github-actions github-actions Bot locked and limited conversation to collaborators Feb 6, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add linting for GitHub actions

1 participant