Skip to content

Compiled lock files and agentics-maintenance fail zizmor pedantic audits #65940

Closed

Description

@WilliamBerryiii

Summary

zizmor 1.30.1 at --persona pedantic reports these findings in code that gh-aw v0.89.21 generates and that the workflow source cannot change. Custom jobs already get name: in our source.

zizmor audit Generated location Count here
anonymous-definition Generated jobs without name:: pre_activation, activation, agent, detection, safe_outputs, conclusion, and the agentics-maintenance.yml jobs 56
undocumented-permissions Generated permissions: blocks without explanatory comments. The compiler also drops comments written on custom-job and on.permissions blocks in the source. 45
template-injection Start MCP Gateway expands ${{ steps.parse-guard-vars.outputs.approval_labels }}, blocked_users, and trusted_users into the run script when tools.github.min-integrity is set. Static lists in the source still compile through parse-guard-vars. 6
concurrency-limits agentics-maintenance.yml sets no concurrency 1

Related request for agentics-maintenance.yml

maintenance.disabled_jobs accepts only close-expired-entities, apply_safe_outputs, label_disable_agentic_workflow, and label_apply_safe_outputs. A repository that wants the nightly expiry jobs cannot turn off the following:

  • the manual operations: run_operation (contents, pull-requests, and actions write), update_pull_request_branches, validate_workflows, activity_report, forecast_report, close_agentic_workflows_issues, and create_labels;
  • cleanup-cache-memory, when no workflow uses cache memory.

Please let disabled_jobs cover them, or omit them when unused.

Version

gh-aw v0.89.21 (v0.90.3 is the same); zizmor 1.30.1.

Reproduction

Compile any workflow with gh aw compile and run zizmor --persona pedantic .github/workflows/.

Expected

  • Generated jobs carry names and permission comments, and source permission comments are kept.
  • Guard-policy values reach the script through env: rather than inline expressions.
  • agentics-maintenance.yml sets concurrency.

gh-aw's own static-analysis report (#65245) shows the same rules across its workflows; this issue lists what remains in v0.89.21 output for a consuming repository.

Metadata

Metadata

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions