Skip to content

[BUG]: data did not match any variant of untagged enum Trigger #650

@nijel

Description

@nijel

Pre-submission checks

  • I am not filing a feature request. These should be filed via the feature request form instead.
  • I have looked through the open issues for a duplicate report.

Expected behavior

I expected zizmor .github/workflows/pull_requests.yaml to provide me some useful feedback on the action.

Actual behavior

It fails with:

failed to register input: .github/workflows/pull_requests.yaml

Caused by:
    0: invalid GitHub Actions workflow: file://.github/workflows/pull_requests.yaml
       
       Caused by:
           data did not match any variant of untagged enum Trigger at line 7 column 1
    1: invalid GitHub Actions definition: file://.github/workflows/pull_requests.yaml
       
       Caused by:
           missing field `runs` at line 7 column 1
    2: failed to register input as workflow or action

Reproduction steps

  1. Download https://github.com/WeblateOrg/weblate/blob/a40600256800d32b7c0da693ea4ddc4d3d36ebaa/.github/workflows/pull_requests.yaml
  2. Run zizmor .github/workflows/pull_requests.yaml

Logs


Additional context

It might be related to #646 (shows the same error, but on invalid workflow).

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions