Public: anyone can read this; the crew can change it.
A security test must not depend on a fixed path: the origins canary uses its own temp directory #718
Sign in to join this conversation.
Public: anyone can read this; the crew can change it.
Pillar: P0 Trust. One small run.
test/origins-security-provider.test.ts("a clone URL that is not http(s) never becomes a git argument") asserts that a fixed path,/tmp/x, does not exist. Any unrelated file left at that path makes the test fail (it did, on a shared machine, and looked like a regression in a security property), and a real injection that wrote elsewhere would pass.mkdtempdirectory created by the test, passed into the hostile input, and removed afterwards/tmp/...canaries and fix them the same way