Skip to main content

Rule overview

eslint-plugin-github-actions-2 targets GitHub Actions workflow YAML files, action metadata files (action.yml / action.yaml), repository Dependabot configuration files (.github/dependabot.yml), and workflow-template package files under workflow-templates/.

New to the plugin? Start with Getting started. Need config guidance? See the preset reference. Looking for a specific check? Jump to Current rules.

Included rule categoriesโ€‹

  • Security: explicit least-privilege permissions and immutable SHA pinning
  • Reliability: bounded job timeouts
  • Operations: workflow concurrency controls and valid concurrency expression contexts
  • Naming and readability: workflow names, job IDs, job names, and step names
  • Execution clarity: explicit run-step shells, typed workflow interfaces, canonical manual-dispatch input access, and valid step-context references
  • Workflow interface quality: documented manual-dispatch and reusable workflow interfaces plus valid reusable output values and job-output mappings
  • Reusable workflow hygiene: explicit checkout ordering, narrowly scoped secret passing, and valid reusable-workflow caller job keys
  • Workflow safety: safer conditional secret handling, untrusted-script handling, scoped workflow chaining, safer privileged PR automation, fork-triggered self-hosted runner hardening, and scoped privileged PR targets
  • Trigger precision: explicit activity-type scoping for broad multi-activity events and merge-queue-aware pull request validation
  • Dependency automation: required Dependabot keys, explicit schedules, PR routing, labels, ownership, and commit-title conventions

Current rulesโ€‹