Skip to content

feat: Add actionlint workflow to validate GitHub Actions - #11946

Open
AnzalKhan16 wants to merge 1 commit into
SandeepVashishtha:masterfrom
AnzalKhan16:feat/actionlint
Open

feat: Add actionlint workflow to validate GitHub Actions#11946
AnzalKhan16 wants to merge 1 commit into
SandeepVashishtha:masterfrom
AnzalKhan16:feat/actionlint

Conversation

@AnzalKhan16

Copy link
Copy Markdown
Contributor

✅ Add actionlint for GitHub Actions Workflow Validation

Overview

GitHub Actions workflows should be validated prior to execution to catch syntax errors, invalid expressions, and common configuration mistakes. This PR introduces actionlint into the CI pipeline to statically analyze all workflow files and ensure correctness, improving overall pipeline reliability.

Changes Made

  • Created a new workflow at .github/workflows/actionlint.yml.
  • Configured the workflow to trigger on push and pull_request events affecting files in the .github/workflows/ directory.
  • Integrated the popular reviewdog/action-actionlint action to run actionlint against all workflow files.
  • The pipeline is explicitly configured to fail (fail_on_error: true) if any validation errors are detected, preventing broken workflows from being merged to master.
  • reviewdog is configured to report linting errors directly in the GitHub PR check interface for immediate feedback.

Verification

  • Checked that the actionlint.yml file has correct YAML syntax.
  • Existing workflows continue to operate normally; this workflow simply serves as a fast static analysis gate specifically for .github/workflows/**/*.yml changes.

fixes #11945

@vercel

vercel Bot commented Aug 6, 2026

Copy link
Copy Markdown
Contributor

@AnzalKhan16 is attempting to deploy a commit to the sandeepvashishtha's projects Team on Vercel.

A member of the Team first needs to authorize it.

@github-actions github-actions Bot added the level:beginner 20pts label Aug 6, 2026
@github-actions github-actions Bot added gssoc:approved gssoc approved PR quality:clean 1.2x type:devops CI/CD, infrastructure, or tooling changes type:feature size/S Small pull request labels Aug 6, 2026

@codescene-access codescene-access Bot 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.

No application code in the PR — skipped Code Health checks.

See analysis details in CodeScene

Quality Gate Profile: Custom Configuration
Install CodeScene MCP: safeguard and uplift AI-generated code. Catch issues early with our IDE extension and CLI tool.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

gssoc:approved gssoc approved PR level:beginner 20pts quality:clean 1.2x size/S Small pull request type:devops CI/CD, infrastructure, or tooling changes type:feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add YAML Workflow Linting with actionlint

1 participant