Skip to content

Feature: Clarify why zizmor itself needs actions: read permission #1415

@johnbillion

Description

@johnbillion

Pre-submission checks

  • I am not reporting a bug (crash, false positive/negative, etc). These must be filed via the bug report template.
  • I have looked through both the open and closed issues for a duplicate request.

What's the problem this feature will solve?

I'm auditing the permissions in my workflow files and I haven't been able to identify why the actions: read permission is required by the GH_TOKEN that zizmor itself uses for its checks when it runs on GitHub Actions.

I looked at the list of audit rules that don't work offline to see if I could figure out which one requires it, but with no luck.

Candidates:

  • impostor-commit
  • known-vulnerable-actions
  • ref-confusion
  • stale-action-refs

Previous issue: #608

Describe the solution you'd like

Could you confirm why this permission is required by zizmor and which audit rule uses it?

Additional context

Big fan of zizmor!

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesttriageIssue is being triaged

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions