Files
cacti/.github/scripts
Thomas Vincent ad6cf9e8be hardening(ci): isolate review credentials and release signing authority from pull request code (#8347)
* security: isolate review credentials from pull request code

Runs the privileged security review from the trusted base revision and reads PR files as Git data, so no pull request code executes while the model API key and comment token are in scope.

Signed-off-by: Thomas Vincent <thomasvincent@gmail.com>

* chore(ci): remove compiled Python artifacts

Signed-off-by: Thomas Vincent <thomasvincent@gmail.com>

* docs(ci): document review key isolation and the checkout lint scope

A repository secret stays readable by workflows pushed to same-repository
branches, so explain that real isolation needs an Environment limited to
develop and why the job does not name one yet. State that the privileged
checkout rule only inspects actions/checkout refs, not run steps.

Signed-off-by: Thomas Vincent <thomasvincent@gmail.com>

* security: separate release builds from signing authority

Signed-off-by: Thomas Vincent <thomasvincent@gmail.com>

* ci: build release artifacts without restored dependency caches

Tag runs can restore cache entries saved by any develop-scope job, and the
Composer cache falls back to a key prefix while composer.lock has no dist
shasums, so a poisoned zip could reach an attested tarball. Turn off the
npm cache and add a cache input to the Composer setup action so the release
build downloads its dependencies fresh. Other callers keep the cache.

Drop the attest job's pull_request check; the workflow has no such trigger.

Signed-off-by: Thomas Vincent <thomasvincent@gmail.com>

---------

Signed-off-by: Thomas Vincent <thomasvincent@gmail.com>
2026-11-17 13:35:21 -05:00
..