S2Safetyscope: coreweight: 2fix: manual

    S2: Actions SHA pinned

    Why this rule exists (Empirical Evidence)

    Corpus analysis: 58% of repos use floating tags for GitHub Actions. A compromised tag can steal CI secrets when AI pushes code. SHA pinning makes actions immutable.

    Claude Code Repository Corpus Analysis (2026)
    Anti-pattern (Triggers S2)
    uses: actions/checkout@v4   # Mutable tag — supply-chain risk
    Compliant pattern (Passes S2)
    uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
    Verify locally or online
    npm install -g agentlint-ai && agentlint fix S2

    More Safety checks