invalid-glob
What it does
Section titled “What it does”Reports a branch, tag or path filter that is not a valid pattern: a bad range or escape, a character that a ref name cannot have, or . or .. in a path.
Why it matters
Section titled “Why it matters”A pattern that GitHub cannot read does not select the refs or paths it was written for, so the workflow runs for the wrong pushes or not at all.
To fix, correct the pattern.
Example
Section titled “Example”... push: branches: - 'release/**' - '^foo-' tags: - 'v*+' - 'v[9-1]' - 'v[0-' - 'v1.*' paths: - ./foo/bar.txt - 'src/**' - ' foo'jobs: {}Configuration
Section titled “Configuration”github-actions: lint: rules: invalid-glob: warn # off (default), warn, errorEnabled by the presets: github-actions/actionlint.
Suppress one line with sudsy-disable-next-line invalid-glob in a comment of the file’s language.
Upstream equivalents
Section titled “Upstream equivalents”The same check in other tools. full: Sudsy reports what the upstream rule reports; partial: only part of it, as the last column says.
| Tool | Rule | Match | What differs |
|---|---|---|---|
| actionlint | glob |
partial | Glob syntax (ranges, escapes, quantifiers), ref name characters and path dots of the filters; messages differ. |