@w5s/eslint-config 5.0.0 → 6.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,708 @@
1
+ /* eslint-disable */
2
+ /* prettier-ignore */
3
+ import type { Linter } from 'eslint'
4
+
5
+ declare module 'eslint' {
6
+ namespace Linter {
7
+ interface RulesRecord extends RuleOptions {}
8
+ }
9
+ }
10
+
11
+ export interface RuleOptions {
12
+ /**
13
+ * enforce a consistent casing convention for workflow `name` values.
14
+ * @see https://nick2bad4u.github.io/eslint-plugin-github-actions-2/docs/rules/action-name-casing
15
+ */
16
+ 'github-actions/action-name-casing'?: Linter.RuleEntry<GithubActionsActionNameCasing>
17
+ /**
18
+ * enforce a consistent casing convention for declared action and workflow input identifiers.
19
+ * @see https://nick2bad4u.github.io/eslint-plugin-github-actions-2/docs/rules/input-id-case
20
+ */
21
+ 'github-actions/input-id-case'?: Linter.RuleEntry<GithubActionsInputIdCase>
22
+ /**
23
+ * enforce a consistent casing convention for workflow job identifiers.
24
+ * @see https://nick2bad4u.github.io/eslint-plugin-github-actions-2/docs/rules/job-id-casing
25
+ */
26
+ 'github-actions/job-id-casing'?: Linter.RuleEntry<GithubActionsJobIdCasing>
27
+ /**
28
+ * enforce a maximum number of jobs per workflow file so large pipelines stay modular and reviewable.
29
+ * @see https://nick2bad4u.github.io/eslint-plugin-github-actions-2/docs/rules/max-jobs-per-action
30
+ */
31
+ 'github-actions/max-jobs-per-action'?: Linter.RuleEntry<GithubActionsMaxJobsPerAction>
32
+ /**
33
+ * disallow case-insensitive collisions between action input ids.
34
+ * @see https://nick2bad4u.github.io/eslint-plugin-github-actions-2/docs/rules/no-case-insensitive-input-id-collision
35
+ */
36
+ 'github-actions/no-case-insensitive-input-id-collision'?: Linter.RuleEntry<[]>
37
+ /**
38
+ * disallow `github/codeql-action/autobuild` when CodeQL is only scanning JavaScript/TypeScript.
39
+ * @see https://nick2bad4u.github.io/eslint-plugin-github-actions-2/docs/rules/no-codeql-autobuild-for-javascript-typescript
40
+ */
41
+ 'github-actions/no-codeql-autobuild-for-javascript-typescript'?: Linter.RuleEntry<[]>
42
+ /**
43
+ * disallow CodeQL language matrices that split JavaScript and TypeScript instead of using `javascript-typescript`.
44
+ * @see https://nick2bad4u.github.io/eslint-plugin-github-actions-2/docs/rules/no-codeql-javascript-typescript-split-language-matrix
45
+ */
46
+ 'github-actions/no-codeql-javascript-typescript-split-language-matrix'?: Linter.RuleEntry<[]>
47
+ /**
48
+ * disallow `INPUT_*` environment-variable access in composite actions and require `inputs.*` context references.
49
+ * @see https://nick2bad4u.github.io/eslint-plugin-github-actions-2/docs/rules/no-composite-input-env-access
50
+ */
51
+ 'github-actions/no-composite-input-env-access'?: Linter.RuleEntry<[]>
52
+ /**
53
+ * disallow deprecated Node.js runtimes in action metadata `runs.using`.
54
+ * @see https://nick2bad4u.github.io/eslint-plugin-github-actions-2/docs/rules/no-deprecated-node-runtime
55
+ */
56
+ 'github-actions/no-deprecated-node-runtime'?: Linter.RuleEntry<[]>
57
+ /**
58
+ * disallow duplicate step IDs in `runs.steps` for composite actions.
59
+ * @see https://nick2bad4u.github.io/eslint-plugin-github-actions-2/docs/rules/no-duplicate-composite-step-id
60
+ */
61
+ 'github-actions/no-duplicate-composite-step-id'?: Linter.RuleEntry<[]>
62
+ /**
63
+ * disallow empty or whitespace-only entries in workflow-template `filePatterns`.
64
+ * @see https://nick2bad4u.github.io/eslint-plugin-github-actions-2/docs/rules/no-empty-template-file-pattern
65
+ */
66
+ 'github-actions/no-empty-template-file-pattern'?: Linter.RuleEntry<[]>
67
+ /**
68
+ * disallow reusable-workflow jobs declared with `jobs.<id>.uses` when you want every job defined inline in the workflow file.
69
+ * @see https://nick2bad4u.github.io/eslint-plugin-github-actions-2/docs/rules/no-external-job
70
+ */
71
+ 'github-actions/no-external-job'?: Linter.RuleEntry<[]>
72
+ /**
73
+ * disallow hardcoded `main`/`master` branch literals in workflow template YAML files.
74
+ * @see https://nick2bad4u.github.io/eslint-plugin-github-actions-2/docs/rules/no-hardcoded-default-branch-in-template
75
+ */
76
+ 'github-actions/no-hardcoded-default-branch-in-template'?: Linter.RuleEntry<[]>
77
+ /**
78
+ * disallow `.svg` extensions in workflow-template `iconName` values.
79
+ * @see https://nick2bad4u.github.io/eslint-plugin-github-actions-2/docs/rules/no-icon-file-extension-in-template-icon-name
80
+ */
81
+ 'github-actions/no-icon-file-extension-in-template-icon-name'?: Linter.RuleEntry<[]>
82
+ /**
83
+ * disallow `secrets: inherit` on reusable-workflow jobs so callers pass only the named secrets each workflow actually needs.
84
+ * @see https://nick2bad4u.github.io/eslint-plugin-github-actions-2/docs/rules/no-inherit-secrets
85
+ */
86
+ 'github-actions/no-inherit-secrets'?: Linter.RuleEntry<[]>
87
+ /**
88
+ * disallow unavailable contexts in workflow-level and job-level `concurrency` expressions.
89
+ * @see https://nick2bad4u.github.io/eslint-plugin-github-actions-2/docs/rules/no-invalid-concurrency-context
90
+ */
91
+ 'github-actions/no-invalid-concurrency-context'?: Linter.RuleEntry<[]>
92
+ /**
93
+ * disallow unsupported keys in common GitHub Actions workflow mappings.
94
+ * @see https://nick2bad4u.github.io/eslint-plugin-github-actions-2/docs/rules/no-invalid-key
95
+ */
96
+ 'github-actions/no-invalid-key'?: Linter.RuleEntry<[]>
97
+ /**
98
+ * disallow unsupported keys on jobs that call reusable workflows via `jobs.<job_id>.uses`.
99
+ * @see https://nick2bad4u.github.io/eslint-plugin-github-actions-2/docs/rules/no-invalid-reusable-workflow-job-key
100
+ */
101
+ 'github-actions/no-invalid-reusable-workflow-job-key'?: Linter.RuleEntry<[]>
102
+ /**
103
+ * disallow syntactically invalid regexes in workflow-template `filePatterns`.
104
+ * @see https://nick2bad4u.github.io/eslint-plugin-github-actions-2/docs/rules/no-invalid-template-file-pattern-regex
105
+ */
106
+ 'github-actions/no-invalid-template-file-pattern-regex'?: Linter.RuleEntry<[]>
107
+ /**
108
+ * disallow `workflow_call` output values that use unavailable contexts or fail to map from `jobs.<job_id>.outputs.<output_name>`.
109
+ * @see https://nick2bad4u.github.io/eslint-plugin-github-actions-2/docs/rules/no-invalid-workflow-call-output-value
110
+ */
111
+ 'github-actions/no-invalid-workflow-call-output-value'?: Linter.RuleEntry<[]>
112
+ /**
113
+ * disallow guaranteed overlapping Dependabot directory selectors for the same package ecosystem and target branch.
114
+ * @see https://nick2bad4u.github.io/eslint-plugin-github-actions-2/docs/rules/no-overlapping-dependabot-directories
115
+ */
116
+ 'github-actions/no-overlapping-dependabot-directories'?: Linter.RuleEntry<[]>
117
+ /**
118
+ * disallow path separators in workflow-template `iconName` values.
119
+ * @see https://nick2bad4u.github.io/eslint-plugin-github-actions-2/docs/rules/no-path-separators-in-template-icon-name
120
+ */
121
+ 'github-actions/no-path-separators-in-template-icon-name'?: Linter.RuleEntry<[]>
122
+ /**
123
+ * disallow `runs.post-if` when `runs.post` is not configured in action metadata.
124
+ * @see https://nick2bad4u.github.io/eslint-plugin-github-actions-2/docs/rules/no-post-if-without-post
125
+ */
126
+ 'github-actions/no-post-if-without-post'?: Linter.RuleEntry<[]>
127
+ /**
128
+ * disallow `actions/checkout` configurations in `pull_request_target` workflows that fetch pull request head refs, SHAs, or repositories into a privileged run.
129
+ * @see https://nick2bad4u.github.io/eslint-plugin-github-actions-2/docs/rules/no-pr-head-checkout-in-pull-request-target
130
+ */
131
+ 'github-actions/no-pr-head-checkout-in-pull-request-target'?: Linter.RuleEntry<[]>
132
+ /**
133
+ * disallow `runs.pre-if` when `runs.pre` is not configured in action metadata.
134
+ * @see https://nick2bad4u.github.io/eslint-plugin-github-actions-2/docs/rules/no-pre-if-without-pre
135
+ */
136
+ 'github-actions/no-pre-if-without-pre'?: Linter.RuleEntry<[]>
137
+ /**
138
+ * disallow action inputs that set both `required: true` and `default`.
139
+ * @see https://nick2bad4u.github.io/eslint-plugin-github-actions-2/docs/rules/no-required-input-with-default
140
+ */
141
+ 'github-actions/no-required-input-with-default'?: Linter.RuleEntry<[]>
142
+ /**
143
+ * disallow direct `secrets.*` references in job and step `if` conditionals; move secret values into `env` first and condition on that instead.
144
+ * @see https://nick2bad4u.github.io/eslint-plugin-github-actions-2/docs/rules/no-secrets-in-if
145
+ */
146
+ 'github-actions/no-secrets-in-if'?: Linter.RuleEntry<[]>
147
+ /**
148
+ * disallow self-hosted runners in workflows triggered by fork-capable pull-request events that can execute untrusted contributor activity.
149
+ * @see https://nick2bad4u.github.io/eslint-plugin-github-actions-2/docs/rules/no-self-hosted-runner-on-fork-pr-events
150
+ */
151
+ 'github-actions/no-self-hosted-runner-on-fork-pr-events'?: Linter.RuleEntry<[]>
152
+ /**
153
+ * disallow workflow-template `filePatterns` that match subdirectory paths instead of repository-root files.
154
+ * @see https://nick2bad4u.github.io/eslint-plugin-github-actions-2/docs/rules/no-subdirectory-template-file-pattern
155
+ */
156
+ 'github-actions/no-subdirectory-template-file-pattern'?: Linter.RuleEntry<[]>
157
+ /**
158
+ * disallow `$default-branch` placeholder usage outside workflow template YAML files.
159
+ * @see https://nick2bad4u.github.io/eslint-plugin-github-actions-2/docs/rules/no-template-placeholder-in-non-template-workflow
160
+ */
161
+ 'github-actions/no-template-placeholder-in-non-template-workflow'?: Linter.RuleEntry<[]>
162
+ /**
163
+ * disallow top-level workflow `env` when you want environment variables scoped closer to the jobs and steps that use them.
164
+ * @see https://nick2bad4u.github.io/eslint-plugin-github-actions-2/docs/rules/no-top-level-env
165
+ */
166
+ 'github-actions/no-top-level-env'?: Linter.RuleEntry<[]>
167
+ /**
168
+ * disallow top-level workflow `permissions` when you want every job to declare its own token scope explicitly.
169
+ * @see https://nick2bad4u.github.io/eslint-plugin-github-actions-2/docs/rules/no-top-level-permissions
170
+ */
171
+ 'github-actions/no-top-level-permissions'?: Linter.RuleEntry<[]>
172
+ /**
173
+ * disallow universal catch-all regexes in workflow-template `filePatterns`.
174
+ * @see https://nick2bad4u.github.io/eslint-plugin-github-actions-2/docs/rules/no-universal-template-file-pattern
175
+ */
176
+ 'github-actions/no-universal-template-file-pattern'?: Linter.RuleEntry<[]>
177
+ /**
178
+ * disallow Dependabot `multi-ecosystem-group` references that do not match a declared top-level group.
179
+ * @see https://nick2bad4u.github.io/eslint-plugin-github-actions-2/docs/rules/no-unknown-dependabot-multi-ecosystem-group
180
+ */
181
+ 'github-actions/no-unknown-dependabot-multi-ecosystem-group'?: Linter.RuleEntry<[]>
182
+ /**
183
+ * disallow `inputs.<id>` references in composite action metadata when the input id is not declared.
184
+ * @see https://nick2bad4u.github.io/eslint-plugin-github-actions-2/docs/rules/no-unknown-input-reference-in-composite
185
+ */
186
+ 'github-actions/no-unknown-input-reference-in-composite'?: Linter.RuleEntry<[]>
187
+ /**
188
+ * disallow `needs.*.outputs.*` and reusable-workflow `jobs.*.outputs.*` references that point at undeclared jobs or outputs.
189
+ * @see https://nick2bad4u.github.io/eslint-plugin-github-actions-2/docs/rules/no-unknown-job-output-reference
190
+ */
191
+ 'github-actions/no-unknown-job-output-reference'?: Linter.RuleEntry<[]>
192
+ /**
193
+ * disallow `steps.<id>.*` references that target a missing step id or a step that has not run yet.
194
+ * @see https://nick2bad4u.github.io/eslint-plugin-github-actions-2/docs/rules/no-unknown-step-reference
195
+ */
196
+ 'github-actions/no-unknown-step-reference'?: Linter.RuleEntry<[]>
197
+ /**
198
+ * disallow directly embedding untrusted event payload values inside `run` scripts; move them through `env` first or pass them to an action input.
199
+ * @see https://nick2bad4u.github.io/eslint-plugin-github-actions-2/docs/rules/no-untrusted-input-in-run
200
+ */
201
+ 'github-actions/no-untrusted-input-in-run'?: Linter.RuleEntry<[]>
202
+ /**
203
+ * disallow the top-level Dependabot `enable-beta-ecosystems` setting because GitHub currently documents it as unused.
204
+ * @see https://nick2bad4u.github.io/eslint-plugin-github-actions-2/docs/rules/no-unused-dependabot-enable-beta-ecosystems
205
+ */
206
+ 'github-actions/no-unused-dependabot-enable-beta-ecosystems'?: Linter.RuleEntry<[]>
207
+ /**
208
+ * disallow declared composite-action inputs that are never referenced.
209
+ * @see https://nick2bad4u.github.io/eslint-plugin-github-actions-2/docs/rules/no-unused-input-in-composite
210
+ */
211
+ 'github-actions/no-unused-input-in-composite'?: Linter.RuleEntry<[]>
212
+ /**
213
+ * disallow `permissions: write-all` so workflows and jobs keep GitHub token scopes least-privileged.
214
+ * @see https://nick2bad4u.github.io/eslint-plugin-github-actions-2/docs/rules/no-write-all-permissions
215
+ */
216
+ 'github-actions/no-write-all-permissions'?: Linter.RuleEntry<[]>
217
+ /**
218
+ * require third-party `uses` references to pin full-length commit SHAs instead of mutable tags or branches.
219
+ * @see https://nick2bad4u.github.io/eslint-plugin-github-actions-2/docs/rules/pin-action-shas
220
+ */
221
+ 'github-actions/pin-action-shas'?: Linter.RuleEntry<[]>
222
+ /**
223
+ * require action metadata files to prefer `action.yml` over `action.yaml`.
224
+ * @see https://nick2bad4u.github.io/eslint-plugin-github-actions-2/docs/rules/prefer-action-yml
225
+ */
226
+ 'github-actions/prefer-action-yml'?: Linter.RuleEntry<[]>
227
+ /**
228
+ * disallow `strategy.fail-fast: false` so failing matrix jobs can stop redundant work sooner.
229
+ * @see https://nick2bad4u.github.io/eslint-plugin-github-actions-2/docs/rules/prefer-fail-fast
230
+ */
231
+ 'github-actions/prefer-fail-fast'?: Linter.RuleEntry<[]>
232
+ /**
233
+ * enforce a consistent file extension for GitHub Actions workflow files.
234
+ * @see https://nick2bad4u.github.io/eslint-plugin-github-actions-2/docs/rules/prefer-file-extension
235
+ */
236
+ 'github-actions/prefer-file-extension'?: Linter.RuleEntry<GithubActionsPreferFileExtension>
237
+ /**
238
+ * enforce the `inputs` context instead of `github.event.inputs` in `workflow_dispatch` workflows so boolean inputs preserve their native type semantics.
239
+ * @see https://nick2bad4u.github.io/eslint-plugin-github-actions-2/docs/rules/prefer-inputs-context
240
+ */
241
+ 'github-actions/prefer-inputs-context'?: Linter.RuleEntry<[]>
242
+ /**
243
+ * enforce a consistent style for step-level `uses` references.
244
+ * @see https://nick2bad4u.github.io/eslint-plugin-github-actions-2/docs/rules/prefer-step-uses-style
245
+ */
246
+ 'github-actions/prefer-step-uses-style'?: Linter.RuleEntry<GithubActionsPreferStepUsesStyle>
247
+ /**
248
+ * require workflow template files to prefer `.yml` over `.yaml`.
249
+ * @see https://nick2bad4u.github.io/eslint-plugin-github-actions-2/docs/rules/prefer-template-yml-extension
250
+ */
251
+ 'github-actions/prefer-template-yml-extension'?: Linter.RuleEntry<[]>
252
+ /**
253
+ * require a non-empty string workflow `name` so workflow runs stay readable in the GitHub Actions UI.
254
+ * @see https://nick2bad4u.github.io/eslint-plugin-github-actions-2/docs/rules/require-action-name
255
+ */
256
+ 'github-actions/require-action-name'?: Linter.RuleEntry<[]>
257
+ /**
258
+ * require a non-empty string workflow `run-name` when you want queued and in-progress runs to remain self-describing.
259
+ * @see https://nick2bad4u.github.io/eslint-plugin-github-actions-2/docs/rules/require-action-run-name
260
+ */
261
+ 'github-actions/require-action-run-name'?: Linter.RuleEntry<[]>
262
+ /**
263
+ * require an `actions/checkout` step before using repository-local step actions so local action paths resolve reliably.
264
+ * @see https://nick2bad4u.github.io/eslint-plugin-github-actions-2/docs/rules/require-checkout-before-local-action
265
+ */
266
+ 'github-actions/require-checkout-before-local-action'?: Linter.RuleEntry<[]>
267
+ /**
268
+ * require jobs running CodeQL actions to grant `actions: read`.
269
+ * @see https://nick2bad4u.github.io/eslint-plugin-github-actions-2/docs/rules/require-codeql-actions-read
270
+ */
271
+ 'github-actions/require-codeql-actions-read'?: Linter.RuleEntry<[]>
272
+ /**
273
+ * require CodeQL `push` and `pull_request` triggers to scope branches explicitly.
274
+ * @see https://nick2bad4u.github.io/eslint-plugin-github-actions-2/docs/rules/require-codeql-branch-filters
275
+ */
276
+ 'github-actions/require-codeql-branch-filters'?: Linter.RuleEntry<[]>
277
+ /**
278
+ * require CodeQL analyze steps to set `with.category` using `matrix.language` when the job uses a language matrix.
279
+ * @see https://nick2bad4u.github.io/eslint-plugin-github-actions-2/docs/rules/require-codeql-category-when-language-matrix
280
+ */
281
+ 'github-actions/require-codeql-category-when-language-matrix'?: Linter.RuleEntry<[]>
282
+ /**
283
+ * require CodeQL workflows to listen for `pull_request`.
284
+ * @see https://nick2bad4u.github.io/eslint-plugin-github-actions-2/docs/rules/require-codeql-pull-request-trigger
285
+ */
286
+ 'github-actions/require-codeql-pull-request-trigger'?: Linter.RuleEntry<[]>
287
+ /**
288
+ * require CodeQL workflows to include a scheduled trigger for periodic re-analysis.
289
+ * @see https://nick2bad4u.github.io/eslint-plugin-github-actions-2/docs/rules/require-codeql-schedule
290
+ */
291
+ 'github-actions/require-codeql-schedule'?: Linter.RuleEntry<[]>
292
+ /**
293
+ * require jobs running CodeQL analysis to grant `security-events: write`.
294
+ * @see https://nick2bad4u.github.io/eslint-plugin-github-actions-2/docs/rules/require-codeql-security-events-write
295
+ */
296
+ 'github-actions/require-codeql-security-events-write'?: Linter.RuleEntry<[]>
297
+ /**
298
+ * require each composite action step to declare a descriptive `name`.
299
+ * @see https://nick2bad4u.github.io/eslint-plugin-github-actions-2/docs/rules/require-composite-step-name
300
+ */
301
+ 'github-actions/require-composite-step-name'?: Linter.RuleEntry<[]>
302
+ /**
303
+ * require Dependabot update entries to define effective `assignees` directly or via a multi-ecosystem group.
304
+ * @see https://nick2bad4u.github.io/eslint-plugin-github-actions-2/docs/rules/require-dependabot-assignees
305
+ */
306
+ 'github-actions/require-dependabot-assignees'?: Linter.RuleEntry<[]>
307
+ /**
308
+ * require minimum GitHub token permissions for Dependabot pull request automation steps.
309
+ * @see https://nick2bad4u.github.io/eslint-plugin-github-actions-2/docs/rules/require-dependabot-automation-permissions
310
+ */
311
+ 'github-actions/require-dependabot-automation-permissions'?: Linter.RuleEntry<[]>
312
+ /**
313
+ * require Dependabot pull request automation workflows to listen for `pull_request`.
314
+ * @see https://nick2bad4u.github.io/eslint-plugin-github-actions-2/docs/rules/require-dependabot-automation-pull-request-trigger
315
+ */
316
+ 'github-actions/require-dependabot-automation-pull-request-trigger'?: Linter.RuleEntry<[]>
317
+ /**
318
+ * require Dependabot automation jobs to guard execution on `dependabot[bot]`.
319
+ * @see https://nick2bad4u.github.io/eslint-plugin-github-actions-2/docs/rules/require-dependabot-bot-actor-guard
320
+ */
321
+ 'github-actions/require-dependabot-bot-actor-guard'?: Linter.RuleEntry<[]>
322
+ /**
323
+ * require Dependabot commit messages to set `commit-message.include: "scope"`.
324
+ * @see https://nick2bad4u.github.io/eslint-plugin-github-actions-2/docs/rules/require-dependabot-commit-message-include-scope
325
+ */
326
+ 'github-actions/require-dependabot-commit-message-include-scope'?: Linter.RuleEntry<[]>
327
+ /**
328
+ * require Dependabot update entries to define an effective `commit-message.prefix` directly or via a multi-ecosystem group.
329
+ * @see https://nick2bad4u.github.io/eslint-plugin-github-actions-2/docs/rules/require-dependabot-commit-message-prefix
330
+ */
331
+ 'github-actions/require-dependabot-commit-message-prefix'?: Linter.RuleEntry<[]>
332
+ /**
333
+ * require npm-like Dependabot update entries to define `commit-message.prefix-development`.
334
+ * @see https://nick2bad4u.github.io/eslint-plugin-github-actions-2/docs/rules/require-dependabot-commit-message-prefix-development
335
+ */
336
+ 'github-actions/require-dependabot-commit-message-prefix-development'?: Linter.RuleEntry<[]>
337
+ /**
338
+ * require Dependabot update entries to declare a `cooldown` policy.
339
+ * @see https://nick2bad4u.github.io/eslint-plugin-github-actions-2/docs/rules/require-dependabot-cooldown
340
+ */
341
+ 'github-actions/require-dependabot-cooldown'?: Linter.RuleEntry<[]>
342
+ /**
343
+ * require every Dependabot `updates` entry to define exactly one of `directory` or `directories`.
344
+ * @see https://nick2bad4u.github.io/eslint-plugin-github-actions-2/docs/rules/require-dependabot-directory
345
+ */
346
+ 'github-actions/require-dependabot-directory'?: Linter.RuleEntry<[]>
347
+ /**
348
+ * require Dependabot `github-actions` update entries to use `directory: "/"`.
349
+ * @see https://nick2bad4u.github.io/eslint-plugin-github-actions-2/docs/rules/require-dependabot-github-actions-directory-root
350
+ */
351
+ 'github-actions/require-dependabot-github-actions-directory-root'?: Linter.RuleEntry<[]>
352
+ /**
353
+ * require Dependabot update entries to define effective `labels` directly or via a multi-ecosystem group.
354
+ * @see https://nick2bad4u.github.io/eslint-plugin-github-actions-2/docs/rules/require-dependabot-labels
355
+ */
356
+ 'github-actions/require-dependabot-labels'?: Linter.RuleEntry<[]>
357
+ /**
358
+ * require standalone Dependabot update entries to define `open-pull-requests-limit`.
359
+ * @see https://nick2bad4u.github.io/eslint-plugin-github-actions-2/docs/rules/require-dependabot-open-pull-requests-limit
360
+ */
361
+ 'github-actions/require-dependabot-open-pull-requests-limit'?: Linter.RuleEntry<[]>
362
+ /**
363
+ * require every Dependabot `updates` entry to define a non-empty `package-ecosystem`.
364
+ * @see https://nick2bad4u.github.io/eslint-plugin-github-actions-2/docs/rules/require-dependabot-package-ecosystem
365
+ */
366
+ 'github-actions/require-dependabot-package-ecosystem'?: Linter.RuleEntry<[]>
367
+ /**
368
+ * require Dependabot update entries that use `multi-ecosystem-group` to define non-empty `patterns`.
369
+ * @see https://nick2bad4u.github.io/eslint-plugin-github-actions-2/docs/rules/require-dependabot-patterns-for-multi-ecosystem-group
370
+ */
371
+ 'github-actions/require-dependabot-patterns-for-multi-ecosystem-group'?: Linter.RuleEntry<[]>
372
+ /**
373
+ * require Dependabot `schedule.cronjob` for `interval: cron` and disallow it for non-cron intervals.
374
+ * @see https://nick2bad4u.github.io/eslint-plugin-github-actions-2/docs/rules/require-dependabot-schedule-cronjob
375
+ */
376
+ 'github-actions/require-dependabot-schedule-cronjob'?: Linter.RuleEntry<[]>
377
+ /**
378
+ * require every Dependabot update entry to define a valid effective `schedule.interval`.
379
+ * @see https://nick2bad4u.github.io/eslint-plugin-github-actions-2/docs/rules/require-dependabot-schedule-interval
380
+ */
381
+ 'github-actions/require-dependabot-schedule-interval'?: Linter.RuleEntry<[]>
382
+ /**
383
+ * require non-cron Dependabot schedules to declare an explicit `schedule.time`.
384
+ * @see https://nick2bad4u.github.io/eslint-plugin-github-actions-2/docs/rules/require-dependabot-schedule-time
385
+ */
386
+ 'github-actions/require-dependabot-schedule-time'?: Linter.RuleEntry<[]>
387
+ /**
388
+ * require explicit `schedule.timezone` when Dependabot schedules use `time` or `cron` semantics.
389
+ * @see https://nick2bad4u.github.io/eslint-plugin-github-actions-2/docs/rules/require-dependabot-schedule-timezone
390
+ */
391
+ 'github-actions/require-dependabot-schedule-timezone'?: Linter.RuleEntry<[]>
392
+ /**
393
+ * require Dependabot update entries to define an effective `target-branch` directly or via a multi-ecosystem group.
394
+ * @see https://nick2bad4u.github.io/eslint-plugin-github-actions-2/docs/rules/require-dependabot-target-branch
395
+ */
396
+ 'github-actions/require-dependabot-target-branch'?: Linter.RuleEntry<[]>
397
+ /**
398
+ * require Dependabot configuration files to define a non-empty top-level `updates` sequence.
399
+ * @see https://nick2bad4u.github.io/eslint-plugin-github-actions-2/docs/rules/require-dependabot-updates
400
+ */
401
+ 'github-actions/require-dependabot-updates'?: Linter.RuleEntry<[]>
402
+ /**
403
+ * require Dependabot configuration files to declare `version: 2`.
404
+ * @see https://nick2bad4u.github.io/eslint-plugin-github-actions-2/docs/rules/require-dependabot-version
405
+ */
406
+ 'github-actions/require-dependabot-version'?: Linter.RuleEntry<[]>
407
+ /**
408
+ * require npm Dependabot update entries to define `versioning-strategy`.
409
+ * @see https://nick2bad4u.github.io/eslint-plugin-github-actions-2/docs/rules/require-dependabot-versioning-strategy-for-npm
410
+ */
411
+ 'github-actions/require-dependabot-versioning-strategy-for-npm'?: Linter.RuleEntry<[]>
412
+ /**
413
+ * require dependency-review workflow files to invoke `actions/dependency-review-action`.
414
+ * @see https://nick2bad4u.github.io/eslint-plugin-github-actions-2/docs/rules/require-dependency-review-action
415
+ */
416
+ 'github-actions/require-dependency-review-action'?: Linter.RuleEntry<[]>
417
+ /**
418
+ * require `actions/dependency-review-action` steps to set `with.fail-on-severity`.
419
+ * @see https://nick2bad4u.github.io/eslint-plugin-github-actions-2/docs/rules/require-dependency-review-fail-on-severity
420
+ */
421
+ 'github-actions/require-dependency-review-fail-on-severity'?: Linter.RuleEntry<[]>
422
+ /**
423
+ * require jobs using `actions/dependency-review-action` to grant effective `contents: read`.
424
+ * @see https://nick2bad4u.github.io/eslint-plugin-github-actions-2/docs/rules/require-dependency-review-permissions-contents-read
425
+ */
426
+ 'github-actions/require-dependency-review-permissions-contents-read'?: Linter.RuleEntry<[]>
427
+ /**
428
+ * require workflows using `actions/dependency-review-action` to listen for `pull_request`.
429
+ * @see https://nick2bad4u.github.io/eslint-plugin-github-actions-2/docs/rules/require-dependency-review-pull-request-trigger
430
+ */
431
+ 'github-actions/require-dependency-review-pull-request-trigger'?: Linter.RuleEntry<[]>
432
+ /**
433
+ * require `dependabot/fetch-metadata` steps to configure `with.github-token`.
434
+ * @see https://nick2bad4u.github.io/eslint-plugin-github-actions-2/docs/rules/require-fetch-metadata-github-token
435
+ */
436
+ 'github-actions/require-fetch-metadata-github-token'?: Linter.RuleEntry<[]>
437
+ /**
438
+ * require every workflow job to declare a non-empty string `name` for readable run summaries.
439
+ * @see https://nick2bad4u.github.io/eslint-plugin-github-actions-2/docs/rules/require-job-name
440
+ */
441
+ 'github-actions/require-job-name'?: Linter.RuleEntry<[]>
442
+ /**
443
+ * require every workflow step to declare a non-empty string `name` so job logs remain readable.
444
+ * @see https://nick2bad4u.github.io/eslint-plugin-github-actions-2/docs/rules/require-job-step-name
445
+ */
446
+ 'github-actions/require-job-step-name'?: Linter.RuleEntry<[]>
447
+ /**
448
+ * require every non-reusable workflow job to define a bounded `timeout-minutes` value.
449
+ * @see https://nick2bad4u.github.io/eslint-plugin-github-actions-2/docs/rules/require-job-timeout-minutes
450
+ */
451
+ 'github-actions/require-job-timeout-minutes'?: Linter.RuleEntry<GithubActionsRequireJobTimeoutMinutes>
452
+ /**
453
+ * require pull-request validation workflows to include the `merge_group` trigger so required checks also run for merge queues.
454
+ * @see https://nick2bad4u.github.io/eslint-plugin-github-actions-2/docs/rules/require-merge-group-trigger
455
+ */
456
+ 'github-actions/require-merge-group-trigger'?: Linter.RuleEntry<[]>
457
+ /**
458
+ * require `on.pull_request_target` triggers to scope target base branches with `branches` or `branches-ignore` so privileged workflows do not react to every branch by default.
459
+ * @see https://nick2bad4u.github.io/eslint-plugin-github-actions-2/docs/rules/require-pull-request-target-branches
460
+ */
461
+ 'github-actions/require-pull-request-target-branches'?: Linter.RuleEntry<[]>
462
+ /**
463
+ * require `run` steps to use an explicit shell directly or through `defaults.run.shell` so execution behavior stays predictable across runners.
464
+ * @see https://nick2bad4u.github.io/eslint-plugin-github-actions-2/docs/rules/require-run-step-shell
465
+ */
466
+ 'github-actions/require-run-step-shell'?: Linter.RuleEntry<[]>
467
+ /**
468
+ * require workflow jobs containing run steps to declare a `timeout-minutes` value.
469
+ * @see https://nick2bad4u.github.io/eslint-plugin-github-actions-2/docs/rules/require-run-step-timeout
470
+ */
471
+ 'github-actions/require-run-step-timeout'?: Linter.RuleEntry<[]>
472
+ /**
473
+ * require jobs uploading SARIF to GitHub code scanning to grant `security-events: write`.
474
+ * @see https://nick2bad4u.github.io/eslint-plugin-github-actions-2/docs/rules/require-sarif-upload-security-events-write
475
+ */
476
+ 'github-actions/require-sarif-upload-security-events-write'?: Linter.RuleEntry<[]>
477
+ /**
478
+ * require `ossf/scorecard-action` steps to set `results_format: sarif`.
479
+ * @see https://nick2bad4u.github.io/eslint-plugin-github-actions-2/docs/rules/require-scorecard-results-format-sarif
480
+ */
481
+ 'github-actions/require-scorecard-results-format-sarif'?: Linter.RuleEntry<[]>
482
+ /**
483
+ * require workflows using `ossf/scorecard-action` to upload SARIF results to GitHub code scanning.
484
+ * @see https://nick2bad4u.github.io/eslint-plugin-github-actions-2/docs/rules/require-scorecard-upload-sarif-step
485
+ */
486
+ 'github-actions/require-scorecard-upload-sarif-step'?: Linter.RuleEntry<[]>
487
+ /**
488
+ * require secret scanning workflows to grant `contents: read`.
489
+ * @see https://nick2bad4u.github.io/eslint-plugin-github-actions-2/docs/rules/require-secret-scan-contents-read
490
+ */
491
+ 'github-actions/require-secret-scan-contents-read'?: Linter.RuleEntry<[]>
492
+ /**
493
+ * require secret scanning workflows to checkout full history with `fetch-depth: 0`.
494
+ * @see https://nick2bad4u.github.io/eslint-plugin-github-actions-2/docs/rules/require-secret-scan-fetch-depth-zero
495
+ */
496
+ 'github-actions/require-secret-scan-fetch-depth-zero'?: Linter.RuleEntry<[]>
497
+ /**
498
+ * require secret scanning workflows to include a scheduled trigger.
499
+ * @see https://nick2bad4u.github.io/eslint-plugin-github-actions-2/docs/rules/require-secret-scan-schedule
500
+ */
501
+ 'github-actions/require-secret-scan-schedule'?: Linter.RuleEntry<[]>
502
+ /**
503
+ * require non-empty `categories` in workflow-template metadata.
504
+ * @see https://nick2bad4u.github.io/eslint-plugin-github-actions-2/docs/rules/require-template-categories
505
+ */
506
+ 'github-actions/require-template-categories'?: Linter.RuleEntry<[]>
507
+ /**
508
+ * require non-empty `filePatterns` in workflow-template metadata.
509
+ * @see https://nick2bad4u.github.io/eslint-plugin-github-actions-2/docs/rules/require-template-file-patterns
510
+ */
511
+ 'github-actions/require-template-file-patterns'?: Linter.RuleEntry<[]>
512
+ /**
513
+ * require local `iconName` references in workflow-template metadata to point to existing SVG files.
514
+ * @see https://nick2bad4u.github.io/eslint-plugin-github-actions-2/docs/rules/require-template-icon-file-exists
515
+ */
516
+ 'github-actions/require-template-icon-file-exists'?: Linter.RuleEntry<[]>
517
+ /**
518
+ * require `iconName` in workflow-template `.properties.json` metadata.
519
+ * @see https://nick2bad4u.github.io/eslint-plugin-github-actions-2/docs/rules/require-template-icon-name
520
+ */
521
+ 'github-actions/require-template-icon-name'?: Linter.RuleEntry<[]>
522
+ /**
523
+ * require workflow template YAML files to declare a non-empty top-level `name`.
524
+ * @see https://nick2bad4u.github.io/eslint-plugin-github-actions-2/docs/rules/require-template-workflow-name
525
+ */
526
+ 'github-actions/require-template-workflow-name'?: Linter.RuleEntry<[]>
527
+ /**
528
+ * require explicit `types` filters for selected multi-activity workflow events so workflows do not subscribe to every supported activity implicitly.
529
+ * @see https://nick2bad4u.github.io/eslint-plugin-github-actions-2/docs/rules/require-trigger-types
530
+ */
531
+ 'github-actions/require-trigger-types'?: Linter.RuleEntry<[]>
532
+ /**
533
+ * require TruffleHog workflows to enable verified-results mode explicitly.
534
+ * @see https://nick2bad4u.github.io/eslint-plugin-github-actions-2/docs/rules/require-trufflehog-verified-results-mode
535
+ */
536
+ 'github-actions/require-trufflehog-verified-results-mode'?: Linter.RuleEntry<[]>
537
+ /**
538
+ * require every `workflow_call` input to declare one of the documented reusable-workflow input types so callers and validators agree on interface semantics.
539
+ * @see https://nick2bad4u.github.io/eslint-plugin-github-actions-2/docs/rules/require-workflow-call-input-type
540
+ */
541
+ 'github-actions/require-workflow-call-input-type'?: Linter.RuleEntry<[]>
542
+ /**
543
+ * require every `workflow_call` output to declare a non-empty `value` so reusable workflows expose concrete runtime output mappings.
544
+ * @see https://nick2bad4u.github.io/eslint-plugin-github-actions-2/docs/rules/require-workflow-call-output-value
545
+ */
546
+ 'github-actions/require-workflow-call-output-value'?: Linter.RuleEntry<[]>
547
+ /**
548
+ * require workflow-level `concurrency` so redundant runs can be deduplicated predictably.
549
+ * @see https://nick2bad4u.github.io/eslint-plugin-github-actions-2/docs/rules/require-workflow-concurrency
550
+ */
551
+ 'github-actions/require-workflow-concurrency'?: Linter.RuleEntry<GithubActionsRequireWorkflowConcurrency>
552
+ /**
553
+ * require every `workflow_dispatch` input to declare an explicit `type` so manual runs expose clearer controls and preserve intended value semantics.
554
+ * @see https://nick2bad4u.github.io/eslint-plugin-github-actions-2/docs/rules/require-workflow-dispatch-input-type
555
+ */
556
+ 'github-actions/require-workflow-dispatch-input-type'?: Linter.RuleEntry<[]>
557
+ /**
558
+ * require descriptions for `workflow_dispatch` inputs and reusable workflow interfaces so manual forms and callable workflows stay self-documenting.
559
+ * @see https://nick2bad4u.github.io/eslint-plugin-github-actions-2/docs/rules/require-workflow-interface-description
560
+ */
561
+ 'github-actions/require-workflow-interface-description'?: Linter.RuleEntry<[]>
562
+ /**
563
+ * require explicit `permissions` to avoid relying on GitHub Actions' default token scope.
564
+ * @see https://nick2bad4u.github.io/eslint-plugin-github-actions-2/docs/rules/require-workflow-permissions
565
+ */
566
+ 'github-actions/require-workflow-permissions'?: Linter.RuleEntry<GithubActionsRequireWorkflowPermissions>
567
+ /**
568
+ * require `on.workflow_run` triggers to scope upstream branches with `branches` or `branches-ignore` so follow-up workflows do not react to every branch indiscriminately.
569
+ * @see https://nick2bad4u.github.io/eslint-plugin-github-actions-2/docs/rules/require-workflow-run-branches
570
+ */
571
+ 'github-actions/require-workflow-run-branches'?: Linter.RuleEntry<[]>
572
+ /**
573
+ * require each workflow template YAML file to have a matching `.properties.json` metadata file.
574
+ * @see https://nick2bad4u.github.io/eslint-plugin-github-actions-2/docs/rules/require-workflow-template-pair
575
+ */
576
+ 'github-actions/require-workflow-template-pair'?: Linter.RuleEntry<[]>
577
+ /**
578
+ * require each workflow-template `.properties.json` file to have a matching template YAML file.
579
+ * @see https://nick2bad4u.github.io/eslint-plugin-github-actions-2/docs/rules/require-workflow-template-properties-pair
580
+ */
581
+ 'github-actions/require-workflow-template-properties-pair'?: Linter.RuleEntry<[]>
582
+ /**
583
+ * disallow invalid literal `timeout-minutes` values for jobs and steps.
584
+ * @see https://nick2bad4u.github.io/eslint-plugin-github-actions-2/docs/rules/valid-timeout-minutes
585
+ */
586
+ 'github-actions/valid-timeout-minutes'?: Linter.RuleEntry<GithubActionsValidTimeoutMinutes>
587
+ /**
588
+ * disallow invalid GitHub Actions trigger events under the workflow `on` key.
589
+ * @see https://nick2bad4u.github.io/eslint-plugin-github-actions-2/docs/rules/valid-trigger-events
590
+ */
591
+ 'github-actions/valid-trigger-events'?: Linter.RuleEntry<[]>
592
+ }
593
+
594
+ /* ======= Declarations ======= */
595
+ // ----- github-actions/action-name-casing -----
596
+ type GithubActionsActionNameCasing = []|[(("camelCase" | "kebab-case" | "PascalCase" | "SCREAMING_SNAKE_CASE" | "snake_case" | "Title Case" | "Train-Case") | {
597
+
598
+ ignores?: string[]
599
+
600
+ camelCase?: boolean
601
+
602
+ "kebab-case"?: boolean
603
+
604
+ PascalCase?: boolean
605
+
606
+ SCREAMING_SNAKE_CASE?: boolean
607
+
608
+ snake_case?: boolean
609
+
610
+ "Title Case"?: boolean
611
+
612
+ "Train-Case"?: boolean
613
+ })]
614
+ // ----- github-actions/input-id-case -----
615
+ type GithubActionsInputIdCase = []|[(("camelCase" | "kebab-case" | "PascalCase" | "SCREAMING_SNAKE_CASE" | "snake_case" | "Train-Case") | {
616
+
617
+ ignores?: string[]
618
+
619
+ camelCase?: boolean
620
+
621
+ "kebab-case"?: boolean
622
+
623
+ PascalCase?: boolean
624
+
625
+ SCREAMING_SNAKE_CASE?: boolean
626
+
627
+ snake_case?: boolean
628
+
629
+ "Train-Case"?: boolean
630
+ })]
631
+ // ----- github-actions/job-id-casing -----
632
+ type GithubActionsJobIdCasing = []|[(("camelCase" | "kebab-case" | "PascalCase" | "SCREAMING_SNAKE_CASE" | "snake_case" | "Train-Case") | {
633
+
634
+ ignores?: string[]
635
+
636
+ camelCase?: boolean
637
+
638
+ "kebab-case"?: boolean
639
+
640
+ PascalCase?: boolean
641
+
642
+ SCREAMING_SNAKE_CASE?: boolean
643
+
644
+ snake_case?: boolean
645
+
646
+ "Train-Case"?: boolean
647
+ })]
648
+ // ----- github-actions/max-jobs-per-action -----
649
+ type GithubActionsMaxJobsPerAction = []|[number]
650
+ // ----- github-actions/prefer-file-extension -----
651
+ type GithubActionsPreferFileExtension = []|[(("yaml" | "yml") | {
652
+
653
+ caseSensitive?: boolean
654
+
655
+ extension?: ("yaml" | "yml")
656
+ })]
657
+ // ----- github-actions/prefer-step-uses-style -----
658
+ type GithubActionsPreferStepUsesStyle = []|[(("branch" | "commit" | "release") | {
659
+
660
+ allowDocker?: boolean
661
+
662
+ allowRepository?: boolean
663
+
664
+ branch?: boolean
665
+
666
+ commit?: boolean
667
+
668
+ ignores?: string[]
669
+
670
+ release?: boolean
671
+ })]
672
+ // ----- github-actions/require-job-timeout-minutes -----
673
+ type GithubActionsRequireJobTimeoutMinutes = []|[{
674
+
675
+ maxMinutes?: number
676
+ }]
677
+ // ----- github-actions/require-workflow-concurrency -----
678
+ type GithubActionsRequireWorkflowConcurrency = []|[{
679
+
680
+ onlyForEvents?: string[]
681
+
682
+ requireCancelInProgress?: boolean
683
+ }]
684
+ // ----- github-actions/require-workflow-permissions -----
685
+ type GithubActionsRequireWorkflowPermissions = []|[{
686
+
687
+ allowJobLevelPermissions?: boolean
688
+ }]
689
+ // ----- github-actions/valid-timeout-minutes -----
690
+ type GithubActionsValidTimeoutMinutes = []|[(number | {
691
+
692
+ max?: number
693
+
694
+ min?: number
695
+ } | {
696
+ job?: (number | {
697
+
698
+ max?: number
699
+
700
+ min?: number
701
+ })
702
+ step?: (number | {
703
+
704
+ max?: number
705
+
706
+ min?: number
707
+ })
708
+ })]