Skip to content

Commit d0975d6

Browse files
committed
ci: restore working global actionlint ignore for wait-all
actionlint's -ignore matches the error message text only, not the file path, so a 'ci.yaml.*' regex prefix can never match and the wait-all syntax-check error keeps resurfacing, failing nix flake check. Restore the plain message regex (proven green at 6d9aae8). Narrowing the ignore to a single file would need a real actionlint config (.github/actionlint.yaml paths.ignore), not a -ignore regex prefix.
1 parent 0fe4e24 commit d0975d6

1 file changed

Lines changed: 6 additions & 5 deletions

File tree

‎nix/treefmt.nix‎

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -101,14 +101,15 @@ in
101101
# GitHub Actions on 2026-06-25 that actionlint does not yet recognize.
102102
# actionlint:ignore inline comments cannot suppress syntax-check errors
103103
# (only expression-evaluation and job-dependency errors support that),
104-
# so a -ignore pattern is the only available mechanism.
105-
# The wait-all ignore is scoped to ci.yaml (via the file path prefix in
106-
# the regex) so missing run:/uses: errors in other workflow files are
107-
# still caught.
104+
# so a global -ignore pattern is the only mechanism that works here.
105+
# `-ignore` matches the message text only (not the file path), so the
106+
# pattern cannot be narrowed to ci.yaml by prefixing the regex with a
107+
# filename. The risk is bounded: any step genuinely missing run:/uses:
108+
# would fail immediately at GitHub Actions runtime.
108109
"-ignore"
109110
''unexpected key "background" for step''
110111
"-ignore"
111-
"ci.yaml.*step must run script with .run. section or run action with .uses. section"
112+
"step must run script with .run. section or run action with .uses. section"
112113
];
113114
includes = [
114115
".github/workflows/*.yaml"

0 commit comments

Comments
 (0)