Skip to content

Empty Files and Private Actions #724

Closed Answered by woodruffw
jamesc-grafana asked this question in Q&A
Discussion options

You must be logged in to vote

No problem, and thanks for making a reproducer!

Ah yeah, I see what's happening here -- an empty file isn't a valid YAML file, so we fail hard rather than skipping it. I did that originally because I was under the impression that GitHub Actions fails if it can't parse a workflow definition, but they might have an skip condition for completely empty files.

I'll look into that more in a bit, but either way this case can definitely be improved on zizmor's side -- the error message itself will get better now that #719 has landed, but we should probably also just skip entirely empty files.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@jamesc-grafana
Comment options

@woodruffw
Comment options

Answer selected by woodruffw
@woodruffw
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
triage Issue is being triaged
2 participants