action-name-casing
Rule catalog ID: R009
Targeted pattern scopeโ
GitHub Actions workflow YAML files that declare a top-level name.
What this rule reportsโ
This rule reports workflow name values whose casing does not match the configured naming convention.
Why this rule existsโ
Consistent workflow names make Actions tabs, status checks, and release dashboards easier to scan. Teams that standardize naming conventions can search and review workflow runs more quickly.
โ Incorrectโ
name: releasePipeline
โ Correctโ
name: Release Pipeline
name: release-pipeline
The second example is valid when the rule is configured for kebab-case.
Behavior and migration notesโ
When the rule is configured with exactly one allowed casing, the autofixer rewrites the workflow name into that casing. If multiple casings are allowed at once, the rule stays report-only because there is no single unambiguous target format.
Additional examplesโ
For larger repositories, this rule is often enabled together with one of the published presets so violations are caught in pull requests before workflow changes are merged.
ESLint flat config exampleโ
import githubActions from "eslint-plugin-github-actions-2";
export default [
{
files: ["**/*.{yml,yaml}"],
plugins: {
"github-actions": githubActions,
},
rules: {
"github-actions/action-name-casing": "error",
},
},
];
When not to use itโ
You can disable this rule when its policy does not match your repository standards, or when equivalent enforcement is already handled by another policy tool.