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

  • switch github actions to pins from BaseConfig
  • nox session to compare remote version sha to BaseConfig to say if anything can be updated and what kind of human readable version change it is. maybe with link to release notes?
  • resolve more zizmor errors
  • put zizmor in a nox session?
  • consider if we should enable zizmor via checks.yml -> think we might want to think about how in non-PTB templates we'd update version.... (an idea is allowing them to have a template folder or we have targets they replace)

Metadata

Metadata

Assignees

Labels

securitySecurity related change

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions