Skip to content

Add a File-Naming Audit Check and Secret-Stem Casing #3141

Closed

Description

@ptr727

Depends on #3140, which states the rule this check measures.

Problem

The audit does not check file names. The runtime-secrets check confirms that a .secrets/ directory exists, that each secret has a .example file, and that the README catalogs it. It never checks the stem's casing, so a repository whose secret files mix db-root-password and mail_relay.env passes.

Work

  • Add a file-naming check to AUDIT.md with a matching spec/ entry. It is mechanical where a per-extension pattern plus the exemption list decides it: .py snake_case, .sh, .ps1, .cmd, and .bat lowercase-hyphenated, an extensionless executable with a shebang lowercase-hyphenated, and the wrapper and externally fixed exemptions from State the Fleet Standard for Script and Utility File Names #3140. A file the patterns cannot decide is reported for judgment rather than failed.
  • Extend runtime-secrets to check that each secret file stem is lowercase snake_case.
  • Cover both checks with tests, using constructed trees that carry each conforming and failing shape.

Activity

  1. added
    enhancement
    gate
    on Oct 16, 2026
  2. ptr727 commented on Oct 19, 2026

    @ptr727
    OwnerAuthor

    #3219 renames the carried hook helper to hub_fetch_run.py. Carriers that copied it earlier still hold hub-fetch-run.py, and nothing mechanical carries the helper, so this check is the one that will report a carrier left on the hyphenated name or holding both. The two-name sets in spec/audit.py (CARRIED_PYTHON_HELPERS) and the python-directories action (CARRIED_HELPERS) keep the former name only for Python-type discovery, so this check should not reuse them as a naming exemption.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementgate

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions