Skip to content

Add linter for GitHub actions #811

@ArBridgeman

Description

@ArBridgeman

Summary

GitHub actions might introduce vulnerabilities into projects. Currently our linter Sonar does not validate actions.

We should add a linter for GitHub actions, e.g. https://github.com/zizmorcore/zizmor

zizmor can be installed with poetry. We could use the command directly or build a nox session around it.
probably would be helpful if we allow projects eventually to use the BaseConfig option for this stuff too, add to the checks.yml, but we first need to resolve the high errors or it would be annoying.

Possible Points

  • resolve zizmor errors & create tracking issues for more tedious ones
  • put zizmor in a nox session
  • put zizmor in checks.yml -> add documentation for setup
  • ⚠️ Figure out if zizmor can check templates & how - seems to only do workflows

Metadata

Metadata

Assignees

Labels

securitySecurity related change
No fields configured for Security.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions