require-workflow-template-pair
Rule catalog ID: R054
Targeted pattern scopeโ
Workflow template YAML files under workflow-templates/.
What this rule reportsโ
Reports template YAML files without matching .properties.json metadata files.
Why this rule existsโ
Template metadata is required for correct template presentation in the workflow chooser.
โ Incorrectโ
workflow-templates/ci.yml
โ Correctโ
workflow-templates/ci.yml
workflow-templates/ci.properties.json
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/require-workflow-template-pair": "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.