S8Safetyscope: coreweight: 1fix: manual

    S8: No pull_request_target trigger

    Why this rule exists (Empirical Evidence)

    Workflows using pull_request_target run with write access and secrets from the base branch. AI agents push code and create PRs frequently, increasing exposure to this attack vector. A malicious PR can execute arbitrary code with elevated permissions.

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

    More Safety checks