Skip to content

yaml-actionlint: only allow inside GitHub workflows dir#2083

Merged
bbatsov merged 1 commit intoflycheck:masterfrom
berquist:yaml-actionlint-condition
Jul 26, 2024
Merged

yaml-actionlint: only allow inside GitHub workflows dir#2083
bbatsov merged 1 commit intoflycheck:masterfrom
berquist:yaml-actionlint-condition

Conversation

@berquist
Copy link
Contributor

Right now, with the default chain and priority setup, the yaml-actionlint checker is running first for all YAML files. For anything outside of a repository's .github/workflows (not .github!) directory, this checker doesn't make sense.

Without modifying the YAML checker chain, this patch stops actionlint from running on files outside this directory. I also tried to handle Windows but I'm not sure if .github\\workflows is the correct path.

I think this checker should be added to the chains after yaml-yamllint but wanted to make this change first.

@bbatsov
Copy link
Contributor

bbatsov commented Jul 26, 2024

I think this checker should be added to the chains after yaml-yamllint but wanted to make this change first.

Agreed.

@bbatsov bbatsov merged commit 7a6398e into flycheck:master Jul 26, 2024
@berquist berquist deleted the yaml-actionlint-condition branch July 26, 2024 14:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants