Spaces:
Sleeping
Sleeping
Commit History
-
ci(ai-standards): SHA-pin actions + least-privilege permissions (slice 2b) (#25)
Unverified signatureWorkflow hardening only — no app-code edits. Completes the deferred slice 2b from the icat_app standards remediation. SHA-pin all workflow actions (floating tags can be moved; SHAs cannot): - actions/checkout -> 11bd719 (v4.2.2) in main.yml, gate.yml (x2), repo_validate.yml (main.yml bumped v3->v4 to match the rest of the repo; v3 is deprecated) - actions/setup-python -> a26af69 (v5.6.0) in repo_validate.yml - ActionsDesk/lfs-warning -> 1a3a745 (v2.0) in check-file-size.yml (third-party; kept on v2 to avoid a behavior change) Add least-privilege permissions blocks: - main.yml, gate.yml: contents: read (deploy pushes via HF_TOKEN; incident job files issues via a PAT — neither needs GITHUB_TOKEN write) - check-file-size.yml: contents: read + issues: write + pull-requests: write (lfs-warning adds the lfs-detected! label and posts a PR comment) - repo_validate.yml already had contents: read Manifest: slice-2b deferred -> in_progress with the pin/permission ledger.c745b10
-
gates: sync to final DECODE hardening pattern
Brings this branch up to the version now on PBI_team_utils/master and icat_results/master. Closes gaps that were found by reviewer-subagent passes on those two repos. Hardening files (hook scripts, commit-msg gate, language-gate, setup, settings.json, gate.yml workflow, .gitignore) are byte-identical copies from PBI_team_utils/master. Kleo's icat_app-specific "## This repo" section in CLAUDE.md is preserved verbatim. Key closures vs the pre-fix version on this branch: - scripts/reviewer-hash.sh (new): hashes git diff HEAD + untracked file contents. Closes a real bypass where an agent could create a new file, pass the reviewer, then silently edit the new file — the marker would still validate because plain `git diff HEAD` misses untracked files. - .claude/hooks/ensure-setup.sh (new): SessionStart hook auto-wires core.hooksPath to .githooks on first Claude Code session. No one has to remember `bash scripts/setup.sh`. Idempotent, warns without overwriting if a conflicting ho…c2771d8
-
feat: add DECODE Claude Code hardening gates
Kleopatra JägerAdds reviewer-marker gate, language gate (ruff/Python), hooks, and CI backstop from decode-claude-wiki template. Tier: python.1878a50