Keep configs in ~/.config/build-release/ and tool state in ~/.local/state/build-release/, under XDG_* where set
CI / tests (pull_request) Successful in 6m34s
CI / tests (pull_request) Successful in 6m34s
This commit is contained in:
@@ -22,9 +22,9 @@ NAMES = "the command names {}, a file of credentials that must stay out of the t
|
||||
SEARCHES = "the command searches a folder holding {}, a file of credentials that must stay out of the transcript; search a folder without it"
|
||||
|
||||
|
||||
def env_file_breaches(call: Call, home: str) -> list[Breach]:
|
||||
def env_file_breaches(call: Call, home: str, env: typing.Mapping[str, str]) -> list[Breach]:
|
||||
guarded: dict[str, pathlib.Path] = {}
|
||||
for path in (pathlib.Path(home, CLAUDE_HOME, ".env"), *env_files(pathlib.Path(home))):
|
||||
for path in (pathlib.Path(home, CLAUDE_HOME, ".env"), *env_files(pathlib.Path(home), env)):
|
||||
if path.is_file():
|
||||
# Several configs may name one file: it is checked, and reported, once.
|
||||
guarded.setdefault(os.path.realpath(path), path)
|
||||
|
||||
Reference in New Issue
Block a user