mirror of
https://github.com/garrytan/gstack.git
synced 2026-11-29 19:34:29 +01:00
/cso is gone: the skill, its native helper programs, scanner images, CI jobs, docs and the rest of its tests. Upgrading removes gstack's own `/cso` entries and old helper files, and leaves a skill of your own named `cso` alone. Why: on 52 real security advisories, plainly asking the agent to audit the code caught more than /cso (13 vs 7 on particle-1; 12 vs 8 of 51 on Claude Opus 5.5, within the margin of error). To do: nothing. Optional cleanup of old scanner images and reports is in the changelog entry. Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com> Review-Finding: p1/outside-voice#1 reader=outside-voice Review-Finding: p1/outside-voice#2 reader=outside-voice Review-Finding: p1/adversarial-native#1 reader=adversarial-native Review-Finding: p1/adversarial-native#2 reader=adversarial-native
20 lines
915 B
TypeScript
20 lines
915 B
TypeScript
/**
|
|
* Environment for fixture git commands and `gstack-redact install-prepush-hook`.
|
|
*
|
|
* With the parent environment, a developer's global or system core.hooksPath
|
|
* (or the same key via GIT_CONFIG_COUNT / GIT_CONFIG_PARAMETERS) reaches the
|
|
* fixture: `git rev-parse --git-path hooks` resolves to that directory, so the
|
|
* install rewrites the developer's own pre-push (#3353), and their hook runs
|
|
* on fixture pushes and rejects the local remote (#2967). /dev/null drops the
|
|
* global file on every platform: Git for Windows rejects NUL. Config written
|
|
* inside the fixture repo still applies.
|
|
*/
|
|
export function gitEnv(extra: Record<string, string | undefined> = {}): NodeJS.ProcessEnv {
|
|
const env: NodeJS.ProcessEnv = { ...process.env, ...extra };
|
|
env.GIT_CONFIG_GLOBAL = "/dev/null";
|
|
env.GIT_CONFIG_NOSYSTEM = "1";
|
|
env.GIT_CONFIG_COUNT = "0";
|
|
delete env.GIT_CONFIG_PARAMETERS;
|
|
return env;
|
|
}
|