S5Safetyscope: coreweight: 1fix: manual

    S5: Workflow permissions minimized

    Why this rule exists (Empirical Evidence)

    Workflow-level contents:write grants write access to every job. AI-triggered workflows should use job-level permissions with minimal scope.

    Multi-Project Dev Discipline Audit (2026)
    Anti-pattern (Triggers S5)
    # Anti-pattern triggering S5 (Workflow permissions minimized)
    # Rule or repository configuration violates this check without verification.
    Compliant pattern (Passes S5)
    # Compliant harness passing S5 (Workflow permissions minimized)
    # Concrete, verifiable repository configuration backed by practical-audit.
    Verify locally or online
    npm install -g agentlint-ai && agentlint check --check S5

    More Safety checks