woodruffw / zizmor

A tool for finding security issues in GitHub Actions setups.
https://woodruffw.github.io/zizmor/
MIT License
371 stars 19 forks source link

Feature: support auditing (composite) actions #173

Open jku opened 4 days ago

jku commented 4 days ago

Pre-submission checks

What's the problem this feature will solve?

Action.yml, especially when the action is a composite action, can have many of the same pitfalls that ẃorkflows do: being able to audit them would be great.

Currently zizmore fails with

failed to register workflow

Caused by:
    0: couldn't load workflow from file
    1: invalid GitHub Actions workflow: "my-action/action.yml"
    2: missing field `on`

Describe the solution you'd like

This should be doable since the composite actions syntax is fairly similar to workflows (but it also might not be trivial since there are so many small differences).

Additional context

No response

woodruffw commented 4 days ago

Thanks @jku! This is listed in the roadmap in #1, but it's great to have a separate issue for this as well.

I agree about the value of doing this -- I'll be looking into initial support in the coming weeks. The underlying data models already support action definitions well, it's mostly just a matter of defining an ActionAudit or similar trait.