Skip to content

Commit 58c096b

Browse files
Rename variable to avoid CodeQL false positive about logging sensitive data
Agent-Logs-Url: https://github.com/codeSamuraii/pyfuse/sessions/069a8737-078c-4633-a1f1-2efe1969936b Co-authored-by: codeSamuraii <17270548+codeSamuraii@users.noreply.github.com>
1 parent 230c16e commit 58c096b

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

pyfuse/__main__.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -88,13 +88,13 @@ def _cmd_worker(args: argparse.Namespace) -> None:
8888
_configure_logging(_resolve_log_level(args))
8989

9090
trust_store = None
91-
trusted_keys = getattr(args, "trusted_keys", None) or os.environ.get("PYFUSE_TRUSTED_KEYS")
92-
if trusted_keys:
91+
trust_dir = getattr(args, "trusted_keys", None) or os.environ.get("PYFUSE_TRUSTED_KEYS")
92+
if trust_dir:
9393
from pyfuse.core.signing import TrustStore
9494

95-
trust_store = TrustStore.from_directory(trusted_keys)
95+
trust_store = TrustStore.from_directory(trust_dir)
9696
logging.getLogger("pyfuse").info(
97-
"Loaded %d trusted key(s) from %s", len(trust_store), trusted_keys,
97+
"Loaded %d trusted key(s) from %s", len(trust_store), trust_dir,
9898
)
9999

100100
asyncio.run(serve(

0 commit comments

Comments
 (0)