Skip to content

Support rule aliases #2232

Description

@woodruffw

Over time, I've realized that many of zizmor's rule names are confusing, misleading, or overly specific.

For example, hardcoded-container-credentials should arguably just be hardcoded-credentials, with the fact that it looks at credentials: in GHA being an implementation detail.

To do that, I think I'm going to add support for aliases: that'll let me rename an audit but keep its old name around as an alias. User configs and ignore comments will continue to work via the alias, although configuring via an alias will produce a warning telling the user to prefer the non-alias name.

Metadata

Metadata

Assignees

Labels

configConfiguration functionalityenhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions