Skip to content

v1.0.1 lock files still omit permission comments (zizmor pedantic undocumented-permissions) #75581

Done

Description

@jkim323

Summary

Thanks for #66042. gh-aw v1.0.1 clears the anonymous-definition, template-injection, and concurrency-limits findings reported in #65940, and the SC2154 finding from #65941. One finding from #65940 remains: zizmor 1.30.1 at --persona pedantic reports undocumented-permissions on every permissions: block the compiler generates, because none carries an explanatory comment. The compiler also drops comments that the workflow source writes on custom-job and top-level permissions: blocks, so a consuming repository cannot document them itself.

Version

gh-aw v1.0.1; zizmor 1.30.1.

Reproduction

  1. Compile any workflow with gh aw compile --action-mode action.
  2. Run zizmor --persona pedantic --no-ignores .github/workflows/.

In microsoft/hve-core this reports 44 undocumented-permissions results across the 8 compiled *.lock.yml files and agentics-maintenance.yml.

Expected

  • Generated permissions: blocks carry a short reason comment for each scope beyond contents: read, for example issues: write # post the triage comment.
  • Comments written on permissions: blocks in the workflow source are kept in the compiled lock file.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions