Skip to content

invalid-glob

GitHub Actionscorrectnessno fixdefault: offgithub-actions/actionlint

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.

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.

Reported
...
push:
branches:
- 'release/**'
- '^foo-'
tags:
- 'v*+'
- 'v[9-1]'
- 'v[0-'
- 'v1.*'
paths:
- ./foo/bar.txt
- 'src/**'
- ' foo'
jobs: {}
github-actions:
lint:
rules:
invalid-glob: warn # off (default), warn, error

Enabled by the presets: github-actions/actionlint.

Suppress one line with sudsy-disable-next-line invalid-glob in a comment of the file’s language.

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.