Close Open Privacy Scan

bolt Snapshot: commit 7ea2320
science engine v1.21
schedule 2026-07-19T15:07:44.133799+00:00

verified_user Possible application data leak

Potential data exfiltration identified in application code.

App Privacy Score

22 /100
High privacy risk — possible application leak

High risk · 1103 finding(s)

Dependency score: 100 (Low risk)

bar_chart Score Breakdown

pii_flow −60
egress −15
env_fs −3

list Scan Summary

0 high 6 medium 1097 low
First-party packages: 1
Dependency packages: 0
Ecosystem: python

swap_horiz Potential data exfiltration in application code

External domains: app.neptune.aiarxiv.orgaxtkn4xl5cip.objectstorage.us-phoenix-1.oci.customer-oci.combugs.python.orgcdn-datasets.huggingface.cocdn-media.huggingface.cocdn.britannica.comcircleci.comclear.mlclip-cn-beijing.oss-cn-beijing.aliyuncs.comconversationhub.blob.core.windows.netdagshub.comdiscuss.huggingface.codiscuss.pytorch.orgdl.fbaipublicfiles.comdocs.neptune.aidocs.nvidia.comdocs.python.orgdocs.pytorch.orgdocs.ray.iodocs.swanlab.cndocs.wandb.aidownload.openmmlab.comdvc.orgen.wikipedia.orgessentia.upf.edufarm4.staticflickr.comflyte.orggiou.stanford.edugist.github.comgithub.comguillaumejaume.github.iohf.cohips.hearstapps.comhub-ci.huggingface.cohuggingface.coi.postimg.ccimages.cocodataset.orgimages.pexels.comlayoutlm.blob.core.windows.netmistralai.github.ionineplanets.orgnlp.stanford.eduobject.pouta.csc.fioptuna.readthedocs.iopaddle-model-ecology.bj.bcebos.compbs.twimg.compraeclarumjj3.github.ioproceedings.neurips.ccprojects4jw.blob.core.windows.netpublicgit.blob.core.windows.netpypi.orgpytorch.orgqwenlm.github.ioraw.githubusercontent.comrrc.cvc.uab.essafetensors-convert.hf.spacestorage.googleapis.comsuno-ai.notion.siteswanlab.cnthumbs.dreamstime.comtwitter.comuploads4.wikiart.orgwww.comet.comwww.cs.cmu.eduwww.deepmind.comwww.dropbox.comwww.dvc.orgwww.ilankelman.orgwww.kxan.comwww.mlflow.orgwww.nature.comwww.tensorflow.orgwww.wandb.com

medium first-party (python) PII-bearing data is written to a log/print sink. Logged PII is a privacy concern even when it does not leave the process.
repo/src/transformers/integrations/integration_utils.py:2512 repo/src/transformers/integrations/integration_utils.py:2514
medium first-party (python) PII-bearing data is written to a log/print sink. Logged PII is a privacy concern even when it does not leave the process.
repo/src/transformers/models/regnet/convert_regnet_seer_10b_to_pytorch.py:236 repo/src/transformers/models/regnet/convert_regnet_seer_10b_to_pytorch.py:236
medium first-party (python) A credential read from the environment/filesystem is applied as authorization on the same outbound request (auth header). This is intentional authentication, not unexpected data exfiltration.
repo/utils/notification_service.py:1079 repo/utils/notification_service.py:1084
medium first-party (python) A credential read from the environment/filesystem is applied as authorization on the same outbound request (auth header). This is intentional authentication, not unexpected data exfiltration.
repo/utils/notification_service.py:1079 repo/utils/notification_service.py:1098
medium first-party (python) PII-bearing data is written to a log/print sink. Logged PII is a privacy concern even when it does not leave the process.
repo/utils/process_bad_commit_report.py:37 repo/utils/process_bad_commit_report.py:151
medium first-party (python) PII-bearing data is written to a log/print sink. Logged PII is a privacy concern even when it does not leave the process.
repo/utils/update_pr_ci_dashboard_recap.py:331 repo/utils/update_pr_ci_dashboard_recap.py:350

</> First-Party Code

first-party (python)

python first-party
medium pii_flow production #068eee7ebef75619 PII-bearing data is written to a log/print sink. Logged PII is a privacy concern even when it does not leave the process.
repo/src/transformers/integrations/integration_utils.py:2514 · flow /tmp/closeopen-7cjr0__1/repo/src/transformers/integrations/integration_utils.py:2512 → /tmp/closeopen-7cjr0__1/repo/src/transformers/integrations/integration_utils.py:2514
            logger.debug(f"[Kubeflow] Token file not found: {token_path}")

PII-bearing data is written to a log/print sink — it stays in-process and does not leave the application, but logged PII is still a privacy concern.

Fix: Avoid logging user identifiers; redact or omit PII from log/print statements.

medium pii_flow production #cb83e61dae18bc81 PII-bearing data is written to a log/print sink. Logged PII is a privacy concern even when it does not leave the process.
repo/src/transformers/models/regnet/convert_regnet_seer_10b_to_pytorch.py:236 · flow /tmp/closeopen-7cjr0__1/repo/src/transformers/models/regnet/convert_regnet_seer_10b_to_pytorch.py:236 → /tmp/closeopen-7cjr0__1/repo/src/transformers/models/regnet/convert_regnet_seer_10b_to_pytorch.py:236
        logger.info(f"Token is {os.environ['HF_TOKEN']}")

PII-bearing data is written to a log/print sink — it stays in-process and does not leave the application, but logged PII is still a privacy concern.

Fix: Avoid logging user identifiers; redact or omit PII from log/print statements.

medium pii_flow production #046c3feb3e3722fe A credential read from the environment/filesystem is applied as authorization on the same outbound request (auth header). This is intentional authentication, not unexpected data exfiltration.
repo/utils/notification_service.py:1084 · flow /tmp/closeopen-7cjr0__1/repo/utils/notification_service.py:1079 → /tmp/closeopen-7cjr0__1/repo/utils/notification_service.py:1084
        ci_details = requests.get(ci_detail_url, headers=github_headers).json()

A credential read from the environment/filesystem is applied as authorization on the same outbound request (an auth header). This is intentional authentication to the service the credential belongs to, not unexpected data exfiltration.

Fix: Confirm the destination is the credential's own service; scope the credential and avoid logging it. No action if this is the intended authenticated API call.

medium pii_flow production #a0c5a1a954781940 A credential read from the environment/filesystem is applied as authorization on the same outbound request (auth header). This is intentional authentication, not unexpected data exfiltration.
repo/utils/notification_service.py:1098 · flow /tmp/closeopen-7cjr0__1/repo/utils/notification_service.py:1079 → /tmp/closeopen-7cjr0__1/repo/utils/notification_service.py:1098
            ci_details = requests.get(ci_detail_url, headers=github_headers).json()

A credential read from the environment/filesystem is applied as authorization on the same outbound request (an auth header). This is intentional authentication to the service the credential belongs to, not unexpected data exfiltration.

Fix: Confirm the destination is the credential's own service; scope the credential and avoid logging it. No action if this is the intended authenticated API call.

medium pii_flow production #d2afbaf40d07b945 PII-bearing data is written to a log/print sink. Logged PII is a privacy concern even when it does not leave the process.
repo/utils/process_bad_commit_report.py:151 · flow /tmp/closeopen-7cjr0__1/repo/utils/process_bad_commit_report.py:37 → /tmp/closeopen-7cjr0__1/repo/utils/process_bad_commit_report.py:151
    print(report)

PII-bearing data is written to a log/print sink — it stays in-process and does not leave the application, but logged PII is still a privacy concern.

Fix: Avoid logging user identifiers; redact or omit PII from log/print statements.

medium pii_flow production #8821431fbd7b29a9 PII-bearing data is written to a log/print sink. Logged PII is a privacy concern even when it does not leave the process.
repo/utils/update_pr_ci_dashboard_recap.py:350 · flow /tmp/closeopen-7cjr0__1/repo/utils/update_pr_ci_dashboard_recap.py:331 → /tmp/closeopen-7cjr0__1/repo/utils/update_pr_ci_dashboard_recap.py:350
    print(f"Matched PR #{pr['number']}: {pr['html_url']}")

PII-bearing data is written to a log/print sink — it stays in-process and does not leave the application, but logged PII is still a privacy concern.

Fix: Avoid logging user identifiers; redact or omit PII from log/print statements.

expand_more 1097 low-confidence finding(s)
low env_fs production #27ff16a8f0e2d362 Environment-variable access.
repo/.circleci/create_circleci_config.py:117
            print(os.environ.get("GIT_COMMIT_MESSAGE"))

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #fcb1d2214c1649b3 Environment-variable access.
repo/.circleci/create_circleci_config.py:119
                "[build-ci-image]" in os.environ.get("GIT_COMMIT_MESSAGE", "")

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #bfd09d6a5018cfa5 Environment-variable access.
repo/.circleci/create_circleci_config.py:120
                or os.environ.get("GIT_COMMIT_MESSAGE", "") == "dev-ci"

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #83fda013cc45e730 Filesystem access.
repo/.circleci/create_circleci_config.py:138
                with open(test_file, encoding="utf-8") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #b7fd32a22a003bc6 Environment-variable access.
repo/.circleci/create_circleci_config.py:154
        env["RUN_FLAKY"] = os.environ.get("CIRCLE_PULL_REQUEST", "") == ""

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #6f836a2200836450 Environment-variable access.
repo/.circleci/create_circleci_config.py:444
    os.environ["test_preparation_dir"] = folder

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #446acd295245ac17 Environment-variable access.
repo/.circleci/create_circleci_config.py:476
    if "CIRCLE_TOKEN" in os.environ:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #95b3b83b97760340 Filesystem access.
repo/.circleci/create_circleci_config.py:485
    with open(os.path.join(folder, "generated_config.yml"), "w", encoding="utf-8") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #eb3ab4e34c4a191b Filesystem access.
repo/.circleci/parse_test_outputs.py:8
    with open(file_path, 'r', encoding='utf-8') as file:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #4e21527327edd961 Filesystem access.
repo/.circleci/parse_test_outputs.py:22
    with open(file_path, 'r', encoding='utf-8') as file:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #11b4a9e3ff66065f Filesystem access.
repo/.circleci/parse_test_outputs.py:39
    with open(file_path, 'r', encoding='utf-8') as file:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs test-only Excluded from app score #b4b611ad7370e1bd Filesystem access.
repo/.github/scripts/assign_reviewers.py:76
    with open(script_dir / "codeowners_for_review_action") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs test-only Excluded from app score #8b50bbc8a200c915 Environment-variable access.
repo/.github/scripts/assign_reviewers.py:79
    g = Github(os.environ['GITHUB_TOKEN'])

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs test-only Excluded from app score #f18e96f5c534217d Filesystem access.
repo/.github/scripts/assign_reviewers.py:81
    with open(os.environ['GITHUB_EVENT_PATH']) as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs test-only Excluded from app score #c449cf5b93ca48fa Environment-variable access.
repo/.github/scripts/assign_reviewers.py:81
    with open(os.environ['GITHUB_EVENT_PATH']) as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low pii_flow test-only Excluded from app score #16159b5109deca0e PII-bearing data is written to a log/print sink. Logged PII is a privacy concern even when it does not leave the process. Non-production path — not application runtime.
repo/.github/scripts/assign_reviewers.py:89 · flow /tmp/closeopen-7cjr0__1/repo/.github/scripts/assign_reviewers.py:79 → /tmp/closeopen-7cjr0__1/repo/.github/scripts/assign_reviewers.py:89
        print(f"PR author {pr_author} is in codeowners, skipping review request.")

PII-bearing data is written to a log/print sink — it stays in-process and does not leave the application, but logged PII is still a privacy concern.

Fix: Avoid logging user identifiers; redact or omit PII from log/print statements.

low pii_flow test-only Excluded from app score #231fbe8a312c9a7d PII-bearing data is written to a log/print sink. Logged PII is a privacy concern even when it does not leave the process. Non-production path — not application runtime.
repo/.github/scripts/assign_reviewers.py:94 · flow /tmp/closeopen-7cjr0__1/repo/.github/scripts/assign_reviewers.py:79 → /tmp/closeopen-7cjr0__1/repo/.github/scripts/assign_reviewers.py:94
        print(f"Already has reviews: {[r.user.login for r in existing_reviews]}")

PII-bearing data is written to a log/print sink — it stays in-process and does not leave the application, but logged PII is still a privacy concern.

Fix: Avoid logging user identifiers; redact or omit PII from log/print statements.

low pii_flow test-only Excluded from app score #4f0a4e4e43a1885e PII-bearing data is written to a log/print sink. Logged PII is a privacy concern even when it does not leave the process. Non-production path — not application runtime.
repo/.github/scripts/assign_reviewers.py:100 · flow /tmp/closeopen-7cjr0__1/repo/.github/scripts/assign_reviewers.py:79 → /tmp/closeopen-7cjr0__1/repo/.github/scripts/assign_reviewers.py:100
        print(f"Reviewers already requested: {users_requested}")

PII-bearing data is written to a log/print sink — it stays in-process and does not leave the application, but logged PII is still a privacy concern.

Fix: Avoid logging user identifiers; redact or omit PII from log/print statements.

low pii_flow test-only Excluded from app score #f477eb47281634fe PII-bearing data is written to a log/print sink. Logged PII is a privacy concern even when it does not leave the process. Non-production path — not application runtime.
repo/.github/scripts/assign_reviewers.py:112 · flow /tmp/closeopen-7cjr0__1/repo/.github/scripts/assign_reviewers.py:79 → /tmp/closeopen-7cjr0__1/repo/.github/scripts/assign_reviewers.py:112
    print("Top owners", top_owners)

PII-bearing data is written to a log/print sink — it stays in-process and does not leave the application, but logged PII is still a privacy concern.

Fix: Avoid logging user identifiers; redact or omit PII from log/print statements.

low pii_flow test-only Excluded from app score #cbd8968bc3ef7d34 PII-bearing data is written to a log/print sink. Logged PII is a privacy concern even when it does not leave the process. Non-production path — not application runtime.
repo/.github/scripts/assign_reviewers.py:117 · flow /tmp/closeopen-7cjr0__1/repo/.github/scripts/assign_reviewers.py:79 → /tmp/closeopen-7cjr0__1/repo/.github/scripts/assign_reviewers.py:117
        print(f"Failed to request review for {top_owners}: {e}")

PII-bearing data is written to a log/print sink — it stays in-process and does not leave the application, but logged PII is still a privacy concern.

Fix: Avoid logging user identifiers; redact or omit PII from log/print statements.

low env_fs test-only Excluded from app score #60c721d2c5345c4b Environment-variable access.
repo/benchmark/benches/llama.py:44
os.environ["HF_XET_HIGH_PERFORMANCE"] = "1"

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs test-only Excluded from app score #72fbeb62e0a9f36b Environment-variable access.
repo/benchmark/benches/llama.py:45
os.environ["TOKENIZERS_PARALLELISM"] = "1"

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs test-only Excluded from app score #a692b54349e98667 Environment-variable access.
repo/benchmark/benches/llama.py:111
        os.environ["TOKENIZERS_PARALLELISM"] = "false"  # silence warnings when compiling

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs test-only Excluded from app score #0cbd23b87e2e7550 Filesystem access.
repo/benchmark/benchmark.py:143
        with open(os.path.join(report_dir, "summary.json"), "w") as fp:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs test-only Excluded from app score #f299eefd945a984c Filesystem access.
repo/benchmark/benchmark.py:190
    with open(os.path.join(exp_run_dir, "summary.json"), "w") as fp:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs test-only Excluded from app score #0c6fd6e448e0db6b Filesystem access.
repo/benchmark/benchmark.py:310
        with open(os.path.join(exp_run_dir, "summaries.json"), "w") as fp:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #0fa32275ba6fd474 Environment-variable access.
repo/benchmark_v2/benchmark_scripts/continuous_batching_overall.py:176
        self.global_rank = int(os.environ.get("RANK", 0))

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #980cc2be9facafe2 Environment-variable access.
repo/benchmark_v2/benchmark_scripts/continuous_batching_overall.py:177
        self.local_rank = int(os.environ.get("LOCAL_RANK", 0))

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #cf880979162a627c Filesystem access.
repo/benchmark_v2/benchmark_scripts/continuous_batching_overall.py:287
        with open(filename, "w") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #9974cfbb6f759c26 Filesystem access.
repo/benchmark_v2/benchmark_scripts/continuous_batching_overall.py:298
        data = json.loads(candidates[-1].read_text())

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #26f596144f700165 Environment-variable access.
repo/benchmark_v2/framework/benchmark_runner.py:56
PUSH_TO_HUB_TOKEN = os.getenv("PUSH_TO_HUB_TOKEN", None)

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #18df8d9fa3ab7cc7 Filesystem access.
repo/benchmark_v2/framework/benchmark_runner.py:437
        with open(filepath, "w") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #f7184670f5f9359b Filesystem access.
repo/benchmark_v2/framework/benchmark_runner.py:467
                with open(jsonl_path, "w") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #6968b16dd5ef005c Filesystem access.
repo/benchmark_v2/run_benchmarks.py:99
            with open(args.config_file, "r") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #bd412e40b0d90fe6 Filesystem access.
repo/benchmark_v2/run_benchmarks.py:102
            with open(args.config_file, "r") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #a26494ce91b4142f Environment-variable access.
repo/conftest.py:56
    worker = os.environ.get("PYTEST_XDIST_WORKER", "main")

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #55921bf616091dc8 Filesystem access.
repo/conftest.py:58
        with open(os.path.join(_ci_fallback_events_dir, f"{worker}-{os.getpid()}.log"), "a", encoding="utf-8") as fh:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #ebe1aec29db6d97b Filesystem access.
repo/conftest.py:70
                with open(os.path.join(_ci_fallback_events_dir, name), encoding="utf-8") as fh:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #8ad44a9c90e9f619 Environment-variable access.
repo/conftest.py:147
                mock.patch.dict(os.environ, {"HF_HUB_DISABLE_XET": "1"}),

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #aa417c9a8a16d9c9 Environment-variable access.
repo/conftest.py:149
                mock.patch.dict(os.environ, {"HF_XET_CACHE": _ci_fallback_cache_dir}),

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #02e1894b2cbde7c6 Environment-variable access.
repo/conftest.py:209
    _ci_fallback_events_dir = os.environ.get("CI_FALLBACK_EVENTS_DIR")

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #025866c04ff75e1a Environment-variable access.
repo/conftest.py:212
        os.environ["CI_FALLBACK_EVENTS_DIR"] = _ci_fallback_events_dir

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #15c51fad078b72f2 Environment-variable access.
repo/conftest.py:259
    os.environ["DISABLE_SAFETENSORS_CONVERSION"] = "true"

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #70727306092fa3e3 Environment-variable access.
repo/conftest.py:353
if os.environ.get("PATCH_TESTING_METHODS_TO_COLLECT_OUTPUTS", "").lower() in ("yes", "true", "on", "y", "1"):

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs test-only Excluded from app score #6afd0e6f2ab786a4 Environment-variable access.
repo/examples/3D_parallel.py:75
    tp_size = int(os.environ.get("TP_SIZE", "1"))

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs test-only Excluded from app score #4d087035c1194150 Environment-variable access.
repo/examples/3D_parallel.py:76
    dp_size = int(os.environ.get("DP_SIZE", "1"))

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs test-only Excluded from app score #3b49eff2398f2d72 Environment-variable access.
repo/examples/3D_parallel.py:77
    cp_size = int(os.environ.get("CP_SIZE", "1"))  # Add CP size configuration

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs test-only Excluded from app score #d7059833e1528fb0 Environment-variable access.
repo/examples/3D_parallel.py:90
    if "RANK" in os.environ and "WORLD_SIZE" in os.environ:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs test-only Excluded from app score #b1bcaa222d557381 Environment-variable access.
repo/examples/3D_parallel.py:94
        local_rank = int(os.environ["LOCAL_RANK"])

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs test-only Excluded from app score #da0d080eb7418c79 Environment-variable access.
repo/examples/pytorch/3d_parallel_checks.py:58
ignore_sanity_checks = int(os.environ.get("IGNORE_SANITY", "0")) == 1

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs test-only Excluded from app score #ad6a0e1a3e8e4790 Environment-variable access.
repo/examples/pytorch/3d_parallel_checks.py:76
    tp_size = int(os.environ.get("TP_SIZE", "1"))

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs test-only Excluded from app score #3a5e98d462fe3ece Environment-variable access.
repo/examples/pytorch/3d_parallel_checks.py:77
    dp_size = int(os.environ.get("DP_SIZE", "4"))

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs test-only Excluded from app score #78a4fcad0ef945c5 Environment-variable access.
repo/examples/pytorch/3d_parallel_checks.py:78
    cp_size = int(os.environ.get("CP_SIZE", "1"))  # Add CP size configuration

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs test-only Excluded from app score #2641e3e4a225be5d Environment-variable access.
repo/examples/pytorch/3d_parallel_checks.py:91
    if "RANK" in os.environ and "WORLD_SIZE" in os.environ:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs test-only Excluded from app score #fa150647bf144225 Environment-variable access.
repo/examples/pytorch/3d_parallel_checks.py:95
        local_rank = int(os.environ["LOCAL_RANK"])

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs test-only Excluded from app score #300c0780dd4c439d Environment-variable access.
repo/examples/pytorch/context_parallel.py:27
world_size = int(os.environ.get("WORLD_SIZE", "1"))

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs test-only Excluded from app score #503fdf36b3eca702 Filesystem access.
repo/examples/pytorch/continuous_batching.py:131
        with open(output_file, "w") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs test-only Excluded from app score #c6cbb45b110180e0 Filesystem access.
repo/examples/pytorch/image-classification/run_image_classification.py:78
    with open(path, "rb") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs test-only Excluded from app score #5b6e1fc0494d208c Filesystem access.
repo/examples/pytorch/image-classification/run_image_classification_no_trainer.py:280
            with open(os.path.join(args.output_dir, ".gitignore"), "w+") as gitignore:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs test-only Excluded from app score #b8b4b78f4a2b3e39 Filesystem access.
repo/examples/pytorch/image-classification/run_image_classification_no_trainer.py:650
            with open(os.path.join(args.output_dir, "all_results.json"), "w") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs test-only Excluded from app score #dffe7f91ede02445 Filesystem access.
repo/examples/pytorch/image-pretraining/run_mim_no_trainer.py:432
            with open(os.path.join(args.output_dir, ".gitignore"), "w+") as gitignore:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs test-only Excluded from app score #e099a7c245cc8808 Filesystem access.
repo/examples/pytorch/instance-segmentation/run_instance_segmentation_no_trainer.py:401
            with open(os.path.join(args.output_dir, ".gitignore"), "w+") as gitignore:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs test-only Excluded from app score #b45596ddbdae398c Filesystem access.
repo/examples/pytorch/instance-segmentation/run_instance_segmentation_no_trainer.py:731
            with open(os.path.join(args.output_dir, "all_results.json"), "w") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs test-only Excluded from app score #86a3484b0a64ddf1 Filesystem access.
repo/examples/pytorch/language-modeling/run_clm_no_trainer.py:317
                with open(gitignore_path, "r") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs test-only Excluded from app score #f23511faccb88bf5 Filesystem access.
repo/examples/pytorch/language-modeling/run_clm_no_trainer.py:319
            with open(gitignore_path, "a") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs test-only Excluded from app score #74312b1d00fefa9a Filesystem access.
repo/examples/pytorch/language-modeling/run_clm_no_trainer.py:729
            with open(os.path.join(args.output_dir, "all_results.json"), "w") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs test-only Excluded from app score #d155c75ce050b8d2 Filesystem access.
repo/examples/pytorch/language-modeling/run_fim_no_trainer.py:379
            with open(os.path.join(args.output_dir, ".gitignore"), "w+") as gitignore:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs test-only Excluded from app score #91551dc39aa35c04 Filesystem access.
repo/examples/pytorch/language-modeling/run_fim_no_trainer.py:910
            with open(os.path.join(args.output_dir, "all_results.json"), "w") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs test-only Excluded from app score #e6e64630adfd721e Filesystem access.
repo/examples/pytorch/language-modeling/run_mlm_no_trainer.py:320
            with open(os.path.join(args.output_dir, ".gitignore"), "w+") as gitignore:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs test-only Excluded from app score #72a8a722332da976 Filesystem access.
repo/examples/pytorch/language-modeling/run_mlm_no_trainer.py:759
            with open(os.path.join(args.output_dir, "all_results.json"), "w") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs test-only Excluded from app score #2359eb006fcdcae1 Filesystem access.
repo/examples/pytorch/multiple-choice/run_swag_no_trainer.py:283
            with open(os.path.join(args.output_dir, ".gitignore"), "w+") as gitignore:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs test-only Excluded from app score #30dab05962a1c1c1 Filesystem access.
repo/examples/pytorch/multiple-choice/run_swag_no_trainer.py:653
            with open(os.path.join(args.output_dir, "all_results.json"), "w") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs test-only Excluded from app score #e9593ada5e3b92eb Filesystem access.
repo/examples/pytorch/object-detection/run_object_detection_no_trainer.py:444
            with open(os.path.join(args.output_dir, ".gitignore"), "w+") as gitignore:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs test-only Excluded from app score #2103a99e141b360a Filesystem access.
repo/examples/pytorch/object-detection/run_object_detection_no_trainer.py:775
            with open(os.path.join(args.output_dir, "all_results.json"), "w") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs test-only Excluded from app score #507605b5e894683d Filesystem access.
repo/examples/pytorch/old_test_xla_examples.py:35
        with open(path) as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs test-only Excluded from app score #fe873beb915b1697 Filesystem access.
repo/examples/pytorch/question-answering/run_qa_beam_search_no_trainer.py:85
    with open(os.path.join(output_dir, file_name), "w") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs test-only Excluded from app score #418f5de82411b39f Filesystem access.
repo/examples/pytorch/question-answering/run_qa_beam_search_no_trainer.py:344
            with open(os.path.join(args.output_dir, ".gitignore"), "w+") as gitignore:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs test-only Excluded from app score #9cad95b2fac93fba Filesystem access.
repo/examples/pytorch/question-answering/run_qa_no_trainer.py:90
    with open(os.path.join(output_dir, file_name), "w") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs test-only Excluded from app score #7b3853b8c57ecb79 Filesystem access.
repo/examples/pytorch/question-answering/run_qa_no_trainer.py:383
            with open(os.path.join(args.output_dir, ".gitignore"), "w+") as gitignore:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs test-only Excluded from app score #0d5d81e17b6bfcbe Filesystem access.
repo/examples/pytorch/question-answering/utils_qa.py:238
        with open(prediction_file, "w") as writer:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs test-only Excluded from app score #6c9be056c81d517d Filesystem access.
repo/examples/pytorch/question-answering/utils_qa.py:241
        with open(nbest_file, "w") as writer:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs test-only Excluded from app score #d069e359afbf80a0 Filesystem access.
repo/examples/pytorch/question-answering/utils_qa.py:245
            with open(null_odds_file, "w") as writer:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs test-only Excluded from app score #6067241e26185c45 Filesystem access.
repo/examples/pytorch/question-answering/utils_qa.py:432
        with open(prediction_file, "w") as writer:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs test-only Excluded from app score #8693f4605bb09b99 Filesystem access.
repo/examples/pytorch/question-answering/utils_qa.py:435
        with open(nbest_file, "w") as writer:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs test-only Excluded from app score #da45cee8e44aed1a Filesystem access.
repo/examples/pytorch/question-answering/utils_qa.py:439
            with open(null_odds_file, "w") as writer:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs test-only Excluded from app score #1bf2dcfa392c5864 Filesystem access.
repo/examples/pytorch/semantic-segmentation/run_semantic_segmentation.py:240
    id2label = json.load(open(hf_hub_download(repo_id, filename, repo_type="dataset")))

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs test-only Excluded from app score #8da209f18b201a28 Filesystem access.
repo/examples/pytorch/semantic-segmentation/run_semantic_segmentation_no_trainer.py:272
            with open(os.path.join(args.output_dir, ".gitignore"), "w+") as gitignore:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs test-only Excluded from app score #13ecbb673337ce34 Filesystem access.
repo/examples/pytorch/semantic-segmentation/run_semantic_segmentation_no_trainer.py:308
    id2label = json.load(open(hf_hub_download(repo_id, filename, repo_type="dataset")))

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs test-only Excluded from app score #0ef89924e851665f Filesystem access.
repo/examples/pytorch/semantic-segmentation/run_semantic_segmentation_no_trainer.py:614
            with open(os.path.join(args.output_dir, "all_results.json"), "w") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs test-only Excluded from app score #4526d0fd348f09bc Filesystem access.
repo/examples/pytorch/speech-pretraining/run_wav2vec2_pretraining_no_trainer.py:442
            with open(os.path.join(args.output_dir, ".gitignore"), "w+") as gitignore:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs test-only Excluded from app score #c8343b705f98742f Filesystem access.
repo/examples/pytorch/speech-recognition/run_speech_recognition_ctc.py:562
                with open(vocab_file, "w") as file:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs test-only Excluded from app score #bddf6660ea62986c Filesystem access.
repo/examples/pytorch/speech-recognition/run_speech_recognition_ctc_adapter.py:566
                with open(vocab_file, "w") as file:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs test-only Excluded from app score #a1f446efe628cb66 Filesystem access.
repo/examples/pytorch/summarization/run_summarization.py:737
                with open(output_prediction_file, "w") as writer:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs test-only Excluded from app score #0170e5ccd14737c4 Filesystem access.
repo/examples/pytorch/summarization/run_summarization_no_trainer.py:392
            with open(os.path.join(args.output_dir, ".gitignore"), "w+") as gitignore:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs test-only Excluded from app score #7de46647203e7c60 Filesystem access.
repo/examples/pytorch/summarization/run_summarization_no_trainer.py:808
            with open(os.path.join(args.output_dir, "all_results.json"), "w") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs test-only Excluded from app score #9b7e5d92fbd491ac Filesystem access.
repo/examples/pytorch/test_accelerate_examples.py:53
        with open(path) as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs test-only Excluded from app score #d427945261e43505 Environment-variable access.
repo/examples/pytorch/test_accelerate_examples.py:78
    @mock.patch.dict(os.environ, {"WANDB_MODE": "offline", "DVCLIVE_TEST": "true"})

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs test-only Excluded from app score #7b325992debe2e98 Environment-variable access.
repo/examples/pytorch/test_accelerate_examples.py:103
    @mock.patch.dict(os.environ, {"WANDB_MODE": "offline", "DVCLIVE_TEST": "true"})

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs test-only Excluded from app score #41ca6675b3d3a5e4 Environment-variable access.
repo/examples/pytorch/test_accelerate_examples.py:131
    @mock.patch.dict(os.environ, {"WANDB_MODE": "offline", "DVCLIVE_TEST": "true"})

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs test-only Excluded from app score #38f78e0792c00f70 Environment-variable access.
repo/examples/pytorch/test_accelerate_examples.py:152
    @mock.patch.dict(os.environ, {"WANDB_MODE": "offline", "DVCLIVE_TEST": "true"})

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs test-only Excluded from app score #61bfdd3cf50f741f Environment-variable access.
repo/examples/pytorch/test_accelerate_examples.py:181
    @mock.patch.dict(os.environ, {"WANDB_MODE": "offline", "DVCLIVE_TEST": "true"})

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs test-only Excluded from app score #51fac98fa0a72e6e Environment-variable access.
repo/examples/pytorch/test_accelerate_examples.py:210
    @mock.patch.dict(os.environ, {"WANDB_MODE": "offline", "DVCLIVE_TEST": "true"})

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs test-only Excluded from app score #cd756336c1e83c09 Environment-variable access.
repo/examples/pytorch/test_accelerate_examples.py:233
    @mock.patch.dict(os.environ, {"WANDB_MODE": "offline", "DVCLIVE_TEST": "true"})

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs test-only Excluded from app score #60fc00b4e9a1b3da Environment-variable access.
repo/examples/pytorch/test_accelerate_examples.py:261
    @mock.patch.dict(os.environ, {"WANDB_MODE": "offline", "DVCLIVE_TEST": "true"})

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs test-only Excluded from app score #f0b316bad214e053 Environment-variable access.
repo/examples/pytorch/test_accelerate_examples.py:313
    @mock.patch.dict(os.environ, {"WANDB_MODE": "offline", "DVCLIVE_TEST": "true"})

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs test-only Excluded from app score #78abc8f35ee8ac9f Environment-variable access.
repo/examples/pytorch/test_accelerate_examples.py:340
    @mock.patch.dict(os.environ, {"WANDB_MODE": "offline", "DVCLIVE_TEST": "true"})

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs test-only Excluded from app score #684ef1297f95328c Environment-variable access.
repo/examples/pytorch/test_accelerate_examples.py:364
    @mock.patch.dict(os.environ, {"WANDB_MODE": "offline", "DVCLIVE_TEST": "true"})

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs test-only Excluded from app score #6f28ad0e903771eb Filesystem access.
repo/examples/pytorch/test_pytorch_examples.py:89
        with open(path) as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs test-only Excluded from app score #f11ed40aa5e88c62 Environment-variable access.
repo/examples/pytorch/test_pytorch_examples.py:604
    @patch.dict(os.environ, {"WANDB_DISABLED": "true"})

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs test-only Excluded from app score #fb158a4e0e05421b Environment-variable access.
repo/examples/pytorch/test_pytorch_examples.py:632
    @patch.dict(os.environ, {"WANDB_DISABLED": "true"})

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs test-only Excluded from app score #0fbb2cb9c3babfa3 Filesystem access.
repo/examples/pytorch/text-classification/run_classification.py:716
            with open(output_predict_file, "w") as writer:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs test-only Excluded from app score #090360ac1b6a0aaf Filesystem access.
repo/examples/pytorch/text-classification/run_glue.py:615
                with open(output_predict_file, "w") as writer:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs test-only Excluded from app score #1865575c891e3597 Filesystem access.
repo/examples/pytorch/text-classification/run_glue_no_trainer.py:275
            with open(os.path.join(args.output_dir, ".gitignore"), "w+") as gitignore:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs test-only Excluded from app score #387516dcd08aef19 Filesystem access.
repo/examples/pytorch/text-classification/run_glue_no_trainer.py:691
        with open(os.path.join(args.output_dir, "all_results.json"), "w") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs test-only Excluded from app score #7bc02b2bca49236b Filesystem access.
repo/examples/pytorch/text-classification/run_xnli.py:438
            with open(output_predict_file, "w") as writer:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs test-only Excluded from app score #a3a4417a833ad49c Filesystem access.
repo/examples/pytorch/token-classification/run_ner.py:617
            with open(output_predictions_file, "w") as writer:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs test-only Excluded from app score #0ecf71822e41b94a Filesystem access.
repo/examples/pytorch/token-classification/run_ner_no_trainer.py:324
            with open(os.path.join(args.output_dir, ".gitignore"), "w+") as gitignore:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs test-only Excluded from app score #00495668c78ea266 Filesystem access.
repo/examples/pytorch/token-classification/run_ner_no_trainer.py:828
            with open(os.path.join(args.output_dir, "all_results.json"), "w") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low egress test-only Excluded from app score #45fcb8e0619921c5 Outbound request to a variable or assembled URL on a network client. Review what data is sent to this destination.
repo/examples/pytorch/transformers_serve_cb_eval_job.py:29
            req = urllib.request.urlopen(f"http://127.0.0.1:{port}/health", timeout=2)

Data is sent to a hardcoded external endpoint; review what leaves the process.

Fix: Verify the destination and that only non-sensitive data is sent; pin and audit the dependency.

low env_fs test-only Excluded from app score #a76e4788bc82c665 Filesystem access.
repo/examples/pytorch/translation/run_translation.py:661
                with open(output_prediction_file, "w", encoding="utf-8") as writer:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs test-only Excluded from app score #e9b1e8952afca3d9 Filesystem access.
repo/examples/pytorch/translation/run_translation_no_trainer.py:369
            with open(os.path.join(args.output_dir, ".gitignore"), "w+") as gitignore:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs test-only Excluded from app score #d3f03bb5788e083a Filesystem access.
repo/examples/pytorch/translation/run_translation_no_trainer.py:792
        with open(os.path.join(args.output_dir, "all_results.json"), "w") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs test-only Excluded from app score #8b4c76c214a7929c Environment-variable access.
repo/examples/training/distributed_training.py:9
LOCAL_RANK = int(os.environ["LOCAL_RANK"])

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs test-only Excluded from app score #26180be8f1d3f4a3 Environment-variable access.
repo/examples/training/distributed_training.py:10
WORLD_SIZE = int(os.environ["WORLD_SIZE"])

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs test-only Excluded from app score #7551487e5cf1313a Environment-variable access.
repo/examples/training/distributed_training.py:11
WORLD_RANK = int(os.environ["RANK"])

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs test-only Excluded from app score #1d0cd59d104fbf22 Environment-variable access.
repo/examples/training/distributed_training.py:13
LOCAL_RANK = int(os.environ["OMPI_COMM_WORLD_LOCAL_RANK"])

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs test-only Excluded from app score #7ec29a74bbb87f85 Environment-variable access.
repo/examples/training/distributed_training.py:14
WORLD_SIZE = int(os.environ["OMPI_COMM_WORLD_SIZE"])

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs test-only Excluded from app score #a1e36aafbe419848 Environment-variable access.
repo/examples/training/distributed_training.py:15
WORLD_RANK = int(os.environ["OMPI_COMM_WORLD_RANK"])

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs test-only Excluded from app score #75ea261f3a3652c4 Filesystem access.
repo/scripts/distributed/torch-distributed-gpu-test.py:55
    with open(__file__, "r") as fh:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs test-only Excluded from app score #7058b4ab4b6c5949 Environment-variable access.
repo/scripts/distributed/torch-distributed-gpu-test.py:63
local_rank = int(os.environ["LOCAL_RANK"])

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs test-only Excluded from app score #303493692284bf75 Environment-variable access.
repo/scripts/stale.py:37
    g = Github(os.environ["GITHUB_TOKEN"])

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low pii_flow test-only Excluded from app score #fb20dfd79995d921 PII-bearing data is written to a log/print sink. Logged PII is a privacy concern even when it does not leave the process. Non-production path — not application runtime.
repo/scripts/stale.py:42 · flow /tmp/closeopen-7cjr0__1/repo/scripts/stale.py:37 → /tmp/closeopen-7cjr0__1/repo/scripts/stale.py:42
        print(i, issue)

PII-bearing data is written to a log/print sink — it stays in-process and does not leave the application, but logged PII is still a privacy concern.

Fix: Avoid logging user identifiers; redact or omit PII from log/print statements.

low env_fs production #266aeab49c3502c6 Filesystem access.
repo/setup.py:311
        with open(target, "w", encoding="utf-8", newline="\n") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #da4a351642d8ed6b Filesystem access.
repo/setup.py:331
        long_description=open("README.md", "r", encoding="utf-8").read(),

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low egress production #46aa9600de1c1514 Outbound request to a variable or assembled URL on a network client. Review what data is sent to this destination.
repo/src/transformers/audio_utils.py:69
    response = httpx.get(url, follow_redirects=True, timeout=timeout)

Data is sent to a hardcoded external endpoint; review what leaves the process.

Fix: Verify the destination and that only non-sensitive data is sent; pin and audit the dependency.

low env_fs production #bdf41c0554023a6c Filesystem access.
repo/src/transformers/audio_utils.py:339
            with open(audio, "rb") as audio_file:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #7679ac7b43304595 Filesystem access.
repo/src/transformers/cli/add_new_model_like.py:176
    with open(file_name, "r", encoding="utf-8") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #1b9814b736f1aa58 Filesystem access.
repo/src/transformers/cli/add_new_model_like.py:182
    with open(file_name, "w", encoding="utf-8") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #8ef594fa5db9e5bc Filesystem access.
repo/src/transformers/cli/add_new_model_like.py:228
    autofile = (repo_path / "src" / "transformers" / "models" / "auto" / "auto_mappings.py").read_text()

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #cabe2308dcda69ec Filesystem access.
repo/src/transformers/cli/add_new_model_like.py:246
                file = (repo_path / "src" / "transformers" / "models" / "auto" / filename).read_text()

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #48291bcb07c27d44 Filesystem access.
repo/src/transformers/cli/add_new_model_like.py:333
    with open(toc_file, "r") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #8ea44fa6b14e31ba Filesystem access.
repo/src/transformers/cli/add_new_model_like.py:392
    with open(module_name, "r", encoding="utf-8") as file:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #bfda8e65574899db Filesystem access.
repo/src/transformers/cli/add_new_model_like.py:517
            with open(original_test_path, "r") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #e1722bc712c1b827 Filesystem access.
repo/src/transformers/cli/add_new_model_like.py:567
    with open(new_module_folder / f"modular_{new_lowercase_name}.py", "w") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #a9d7decb03fb5f1a Filesystem access.
repo/src/transformers/cli/add_new_model_like.py:572
    with open(new_module_folder / "__init__.py", "w") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #f241d9dc2e6516a2 Filesystem access.
repo/src/transformers/cli/add_new_model_like.py:589
    with open(tests_folder / "__init__.py", "w"):

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #2959b62d54e80d99 Filesystem access.
repo/src/transformers/cli/add_new_model_like.py:593
        with open(tests_folder / filename, "w") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #c4d566b723da52d7 Filesystem access.
repo/src/transformers/cli/add_new_model_like.py:598
    with open(repo_path / "docs" / "source" / "en" / "model_doc" / f"{new_lowercase_name}.md", "w") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low egress production #0329bafec8679078 Outbound request to a variable or assembled URL on a network client. Review what data is sent to this destination.
repo/src/transformers/cli/chat.py:212
        response = requests.post(f"{self.base_url.rstrip('/')}/load_model", json={"model": model}, stream=True)

Data is sent to a hardcoded external endpoint; review what leaves the process.

Fix: Verify the destination and that only non-sensitive data is sent; pin and audit the dependency.

low env_fs production #5f58e0c3f0e99224 Filesystem access.
repo/src/transformers/cli/chat.py:363
            with open(examples_path) as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low egress production #dc22ec3f1c262b01 Outbound request to a variable or assembled URL on a network client. Review what data is sent to this destination.
repo/src/transformers/cli/chat.py:379
            output = httpx.get(health_url)

Data is sent to a hardcoded external endpoint; review what leaves the process.

Fix: Verify the destination and that only non-sensitive data is sent; pin and audit the dependency.

low env_fs production #e09cc1b634ab2dad Filesystem access.
repo/src/transformers/cli/chat.py:659
    with open(filename, "w") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #36eeb8ea645c2ad9 Filesystem access.
repo/src/transformers/configuration_utils.py:922
        with open(json_file, encoding="utf-8") as reader:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #47b119f7435d5bd0 Filesystem access.
repo/src/transformers/configuration_utils.py:1137
        with open(json_file_path, "w", encoding="utf-8") as writer:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #d392abf9a5f86fc9 Filesystem access.
repo/src/transformers/convert_slow_tokenizer.py:157
        with open(model, "rb") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #fdeddbae83f3fd1a Filesystem access.
repo/src/transformers/convert_slow_tokenizer.py:704
        with open(self.original_tokenizer.vocab_file, "rb") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #498207cd47e1a136 Filesystem access.
repo/src/transformers/convert_slow_tokenizer.py:1711
        with open(vocab_file, "rb") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #72fe81ad09fad3e1 Filesystem access.
repo/src/transformers/convert_slow_tokenizer.py:1751
        with open(vocab_file, "rb") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #e488da8fd09f6b63 Filesystem access.
repo/src/transformers/convert_slow_tokenizer.py:1841
        with open(vocab_file, "rb") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #db18aa52d18720af Filesystem access.
repo/src/transformers/data/metrics/squad_metrics.py:576
        with open(output_prediction_file, "w") as writer:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #490cfbfdddf619df Filesystem access.
repo/src/transformers/data/metrics/squad_metrics.py:580
        with open(output_nbest_file, "w") as writer:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #4a4aa41af49aff33 Filesystem access.
repo/src/transformers/data/metrics/squad_metrics.py:584
        with open(output_null_log_odds_file, "w") as writer:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #9023ac47db10ddc8 Filesystem access.
repo/src/transformers/data/metrics/squad_metrics.py:769
    with open(output_prediction_file, "w") as writer:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #8d26c8aa89f2878e Filesystem access.
repo/src/transformers/data/metrics/squad_metrics.py:772
    with open(output_nbest_file, "w") as writer:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #c28d34efbe5e3603 Filesystem access.
repo/src/transformers/data/metrics/squad_metrics.py:776
        with open(output_null_log_odds_file, "w") as writer:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #c3a3afea4cf59544 Filesystem access.
repo/src/transformers/data/processors/squad.py:515
        with open(
            os.path.join(data_dir, self.train_file if filename is None else filename), "r", encoding="utf-8"
        ) as reader:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #6140f4d30843e616 Filesystem access.
repo/src/transformers/data/processors/squad.py:536
        with open(
            os.path.join(data_dir, self.dev_file if filename is None else filename), "r", encoding="utf-8"
        ) as reader:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #d45165e373c99b41 Filesystem access.
repo/src/transformers/data/processors/utils.py:119
        with open(input_file, "r", encoding="utf-8-sig") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #6051c51a126756bf Filesystem access.
repo/src/transformers/distributed/configuration_utils.py:86
        with open(json_file_path, "w", encoding="utf-8") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #67d8ef897a11df7c Environment-variable access.
repo/src/transformers/distributed/fsdp.py:48
        and strtobool(os.environ.get("ACCELERATE_USE_FSDP", "False")) == 1

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #1951af6807e93b7d Environment-variable access.
repo/src/transformers/distributed/fsdp.py:49
        and strtobool(os.environ.get("FSDP_CPU_RAM_EFFICIENT_LOADING", "False")) == 1

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #d005f62ddf28d537 Filesystem access.
repo/src/transformers/dynamic_module_utils.py:133
    with open(module_file, encoding="utf-8") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #7f7b6ddd291f6179 Filesystem access.
repo/src/transformers/dynamic_module_utils.py:186
    with open(filename, encoding="utf-8") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #11245f9df61ca21b Filesystem access.
repo/src/transformers/dynamic_module_utils.py:298
        module_hash: str = hashlib.sha256(b"".join(bytes(f) + f.read_bytes() for f in module_files)).hexdigest()

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #83c914a39ed8e83a Filesystem access.
repo/src/transformers/dynamic_module_utils.py:341
        source_files_hash.update(file_path.read_bytes())

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #c5bb69d9339c6dfe Filesystem access.
repo/src/transformers/dynamic_module_utils.py:813
        with open(requirements, "r") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #29ea3a195b1bf343 Filesystem access.
repo/src/transformers/feature_extraction_utils.py:611
        with open(json_file, encoding="utf-8") as reader:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #30786f1a5a5475ca Filesystem access.
repo/src/transformers/feature_extraction_utils.py:639
        with open(json_file_path, "w", encoding="utf-8") as writer:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #f5ea78d456b40594 Filesystem access.
repo/src/transformers/generation/configuration_utils.py:1088
        with open(json_file, "r", encoding="utf-8") as reader:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #c7758ce9599303dd Filesystem access.
repo/src/transformers/generation/configuration_utils.py:1251
        with open(json_file_path, "w", encoding="utf-8") as writer:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #f0912f49c15c8023 Filesystem access.
repo/src/transformers/generation/configuration_utils.py:1372
        with open(json_file_path, "w", encoding="utf-8") as writer:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #543a08b44d288e40 Environment-variable access.
repo/src/transformers/generation/configuration_utils.py:1818
        graph_mixing_supported = os.environ.get("NCCL_GRAPH_MIXING_SUPPORT", "1") == "1"

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #cf5e26ea0cd9bd7b Environment-variable access.
repo/src/transformers/generation/configuration_utils.py:1819
        distributed = int(os.environ.get("WORLD_SIZE", "1")) > 1

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #277b0fa0f585eba0 Environment-variable access.
repo/src/transformers/generation/configuration_utils.py:1824
            os.environ.setdefault("NCCL_GRAPH_MIXING_SUPPORT", "0")

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #c69217d707505061 Environment-variable access.
repo/src/transformers/generation/continuous_batching/distributed.py:160
        graph_mixing_not_disabled = os.environ.get("NCCL_GRAPH_MIXING_SUPPORT") != "0"

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #aaec3d1c4a12b04d Environment-variable access.
repo/src/transformers/generation/utils.py:2177
            os.environ["TOKENIZERS_PARALLELISM"] = "0"

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #8ccf2106f0be5a10 Filesystem access.
repo/src/transformers/hf_argparser.py:333
                    file_args += args_file.read_text().split()

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #d9c3a93350e8bd37 Filesystem access.
repo/src/transformers/hf_argparser.py:403
        with open(Path(json_file), encoding="utf-8") as open_json_file:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #bf4831f4ce7b6917 Filesystem access.
repo/src/transformers/hf_argparser.py:425
        outputs = self.parse_dict(yaml.safe_load(Path(yaml_file).read_text()), allow_extra_keys=allow_extra_keys)

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #4e653bb7cc2db635 Filesystem access.
repo/src/transformers/image_processing_base.py:417
        with open(json_file, encoding="utf-8") as reader:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #ee29815129ac2634 Filesystem access.
repo/src/transformers/image_processing_base.py:445
        with open(json_file_path, "w", encoding="utf-8") as writer:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low egress production #444c56e9244dcf25 Outbound request to a variable or assembled URL on a network client. Review what data is sent to this destination.
repo/src/transformers/image_utils.py:486
            image = PIL.Image.open(BytesIO(httpx.get(image, timeout=timeout, follow_redirects=True).content))

Data is sent to a hardcoded external endpoint; review what leaves the process.

Fix: Verify the destination and that only non-sensitive data is sent; pin and audit the dependency.

low egress production #d793ca68768acea5 Outbound request to a variable or assembled URL on a network client. Review what data is sent to this destination.
repo/src/transformers/image_utils.py:531
            raw = httpx.get(image, timeout=timeout, follow_redirects=True).content

Data is sent to a hardcoded external endpoint; review what leaves the process.

Fix: Verify the destination and that only non-sensitive data is sent; pin and audit the dependency.

low env_fs production #7d7abaaf66c9c2a5 Environment-variable access.
repo/src/transformers/integrations/accelerate.py:115
                local_rank = int(os.environ.get("LOCAL_RANK", 0))

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #11891402f4f3d660 Environment-variable access.
repo/src/transformers/integrations/deepgemm.py:88
    cuda_home = os.environ.get("CUDA_HOME") or os.environ.get("CUDA_PATH")

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #9d675221c7ea9acc Filesystem access.
repo/src/transformers/integrations/deepgemm.py:113
            with open(version_json) as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #fb5a183d37d93bb6 Filesystem access.
repo/src/transformers/integrations/deepgemm.py:124
            with open(version_txt) as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #906f7567c2fc7b05 Filesystem access.
repo/src/transformers/integrations/deepgemm.py:135
            with open(cuda_h) as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #336ef5e5bb6b2edf Environment-variable access.
repo/src/transformers/integrations/finegrained_fp8.py:258
        and os.environ.get("TRANSFORMERS_DISABLE_DEEPGEMM_LINEAR", "0") != "1"

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #b340fbefc8a0b257 Environment-variable access.
repo/src/transformers/integrations/hub_kernels.py:57
_TRANSFORMERS_USE_HUB_KERNELS = os.environ.get("USE_HUB_KERNELS", "YES").upper()

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #e78569577cd6145d Environment-variable access.
repo/src/transformers/integrations/integration_utils.py:40
if os.getenv("WANDB_MODE") == "offline":

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #cc3df5a19f53126e Environment-variable access.
repo/src/transformers/integrations/integration_utils.py:176
    if os.getenv("DISABLE_MLFLOW_INTEGRATION", "FALSE").upper() == "TRUE":

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #c0c69b90a52b2fe7 Environment-variable access.
repo/src/transformers/integrations/integration_utils.py:212
    if os.getenv("DISABLE_KUBEFLOW_INTEGRATION", "FALSE").upper() == "TRUE":

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #fb65930f5a40f93b Environment-variable access.
repo/src/transformers/integrations/integration_utils.py:214
    return os.getenv("KUBEFLOW_TRAINER_SERVER_URL") is not None

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #8ab137bc126dc4be Environment-variable access.
repo/src/transformers/integrations/integration_utils.py:436
    ray_scope = os.getenv("RAY_SCOPE", "last")

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #742a0f6dc0810d9c Environment-variable access.
repo/src/transformers/integrations/integration_utils.py:602
        self.logging_dir = os.getenv("TENSORBOARD_LOGGING_DIR", None)

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #e59824ade84a0f1c Filesystem access.
repo/src/transformers/integrations/integration_utils.py:664
    with open(f"{output_dir}/model_architecture.txt", "w+") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #9bb19481a571d4b0 Environment-variable access.
repo/src/transformers/integrations/integration_utils.py:709
        self._log_model = WandbLogModel(os.getenv("WANDB_LOG_MODEL", "false"))

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #74af044e45d16158 Environment-variable access.
repo/src/transformers/integrations/integration_utils.py:763
                    project=os.getenv("WANDB_PROJECT", "huggingface"),

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #fe694c81b078b9ae Environment-variable access.
repo/src/transformers/integrations/integration_utils.py:775
            _watch_model = os.getenv("WANDB_WATCH", "false")

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #e16fcc4775ba414e Filesystem access.
repo/src/transformers/integrations/integration_utils.py:815
                                fa.write(f.read_bytes())

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #b45d2d398ba5bbee Filesystem access.
repo/src/transformers/integrations/integration_utils.py:878
                            fa.write(f.read_bytes())

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #86e874ddc622a188 Environment-variable access.
repo/src/transformers/integrations/integration_utils.py:1170
        log_assets = os.getenv("COMET_LOG_ASSETS", "FALSE").upper()

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #97a19d105393306b Environment-variable access.
repo/src/transformers/integrations/integration_utils.py:1174
            comet_old_mode = os.getenv("COMET_MODE")

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #469da65bcd731edc Environment-variable access.
repo/src/transformers/integrations/integration_utils.py:1334
        self._log_artifacts = os.getenv("HF_MLFLOW_LOG_ARTIFACTS", "FALSE").upper() in ENV_VARS_TRUE_VALUES

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #8b4d8347d44230a7 Environment-variable access.
repo/src/transformers/integrations/integration_utils.py:1335
        self._nested_run = os.getenv("MLFLOW_NESTED_RUN", "FALSE").upper() in ENV_VARS_TRUE_VALUES

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #59dbea23bea4fe19 Environment-variable access.
repo/src/transformers/integrations/integration_utils.py:1336
        self._tracking_uri = os.getenv("MLFLOW_TRACKING_URI", None)

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #bb01fa6646f85f09 Environment-variable access.
repo/src/transformers/integrations/integration_utils.py:1337
        self._experiment_name = os.getenv("MLFLOW_EXPERIMENT_NAME", None)

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #8be31d6a0fcd8320 Environment-variable access.
repo/src/transformers/integrations/integration_utils.py:1338
        self._flatten_params = os.getenv("MLFLOW_FLATTEN_PARAMS", "FALSE").upper() in ENV_VARS_TRUE_VALUES

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #2dd98ae3d8dcbb01 Environment-variable access.
repo/src/transformers/integrations/integration_utils.py:1339
        self._run_id = os.getenv("MLFLOW_RUN_ID", None)

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #01f984d57ca6f3a7 Environment-variable access.
repo/src/transformers/integrations/integration_utils.py:1340
        self._max_log_params = os.getenv("MLFLOW_MAX_LOG_PARAMS", None)

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #ff4912b7e3363afa Environment-variable access.
repo/src/transformers/integrations/integration_utils.py:1403
            mlflow_tags = os.getenv("MLFLOW_TAGS", None)

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #b504632e45e76f92 Environment-variable access.
repo/src/transformers/integrations/integration_utils.py:1487
        self.log_artifacts = os.getenv("HF_DAGSHUB_LOG_ARTIFACTS", "FALSE").upper() in ENV_VARS_TRUE_VALUES

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #cdf8c63cf3706644 Environment-variable access.
repo/src/transformers/integrations/integration_utils.py:1488
        self.name = os.getenv("HF_DAGSHUB_MODEL_NAME") or "main"

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #cc1766f50409aecf Environment-variable access.
repo/src/transformers/integrations/integration_utils.py:1489
        self.remote = os.getenv("MLFLOW_TRACKING_URI")

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #dd2a79f998e77e29 Environment-variable access.
repo/src/transformers/integrations/integration_utils.py:1493
            branch=os.getenv("BRANCH") or "main",

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #cd8dac23ecf01948 Environment-variable access.
repo/src/transformers/integrations/integration_utils.py:1908
                    self._log_model = os.getenv(
                        "CLEARML_LOG_MODEL",
                        "FALSE" if not ClearMLCallback._task_created_in_callback else "TRUE",
                    ).upper() in ENV_VARS_TRUE_VALUES.union({"TRUE"})

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #835c31776051b732 Environment-variable access.
repo/src/transformers/integrations/integration_utils.py:1915
                        project_name=os.getenv("CLEARML_PROJECT", "HuggingFace Transformers"),

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #8b9a9405cf73462f Environment-variable access.
repo/src/transformers/integrations/integration_utils.py:1916
                        task_name=os.getenv("CLEARML_TASK", "Trainer"),

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #4ff5cd06406e0dae Environment-variable access.
repo/src/transformers/integrations/integration_utils.py:1920
                    self._log_model = os.getenv("CLEARML_LOG_MODEL", "TRUE").upper() in ENV_VARS_TRUE_VALUES.union(

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #9c09b2de7e8e2959 Environment-variable access.
repo/src/transformers/integrations/integration_utils.py:2189
            log_model_env = os.getenv("HF_DVCLIVE_LOG_MODEL", "FALSE")

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #4b42bb77f3545012 Environment-variable access.
repo/src/transformers/integrations/integration_utils.py:2271
        self._log_model = os.getenv("SWANLAB_LOG_MODEL", None)

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #7cc43f3c1868227a Environment-variable access.
repo/src/transformers/integrations/integration_utils.py:2342
            init_args["project"] = os.getenv("SWANLAB_PROJECT", None)

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #e125dfd511a013a6 Environment-variable access.
repo/src/transformers/integrations/integration_utils.py:2344
            run_id = os.getenv("SWANLAB_RUN_ID", None)

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #c4341a23af44fc07 Environment-variable access.
repo/src/transformers/integrations/integration_utils.py:2348
            resume = os.getenv("SWANLAB_RESUME", None)

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #2e3201018eb33eaf Environment-variable access.
repo/src/transformers/integrations/integration_utils.py:2494
        ca_file = os.environ.get(self._ENV_CA_CERT)

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #6f4c0905b248d1d7 Environment-variable access.
repo/src/transformers/integrations/integration_utils.py:2512
        token_path = os.environ.get(self._ENV_TOKEN_PATH)

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #abec33f140026d28 Filesystem access.
repo/src/transformers/integrations/integration_utils.py:2518
            with open(token_path) as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #b0431c92fa3d1b72 Environment-variable access.
repo/src/transformers/integrations/integration_utils.py:2534
            url = os.environ.get(self._ENV_SERVER_URL)

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low egress production #428995928d6f7e58 Outbound request to a variable or assembled URL on a network client. Review what data is sent to this destination.
repo/src/transformers/integrations/integration_utils.py:2562
            with urllib.request.urlopen(req, timeout=5, context=self._get_ssl_context()) as resp:

Data is sent to a hardcoded external endpoint; review what leaves the process.

Fix: Verify the destination and that only non-sensitive data is sent; pin and audit the dependency.

low env_fs production #d2c9290f84542ede Filesystem access.
repo/src/transformers/integrations/mistral/tokenizer.py:46
        with open(vocab_file, encoding="utf-8") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #c75b80ae7a1504dd Environment-variable access.
repo/src/transformers/integrations/mxfp4.py:417
        rank = int(os.environ.get("LOCAL_RANK", "0"))

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #afdbca7770345f43 Environment-variable access.
repo/src/transformers/integrations/npu_flash_attention.py:30
SPARSE_MODE = int(os.getenv("NPU_FA2_SPARSE_MODE", default=DOWN_RIGHT_ALIGNED_CAUSAL_MASK_MODE))

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #07a9ce76de9a8c09 Filesystem access.
repo/src/transformers/integrations/peft.py:709
        with open(_adapter_model_path, "r", encoding="utf-8") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #7c888e2b42df9d21 Environment-variable access.
repo/src/transformers/integrations/tensor_parallel.py:77
                rank = int(os.environ["RANK"])

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #005797b578ba7bf8 Environment-variable access.
repo/src/transformers/integrations/tensor_parallel.py:78
                local_rank = int(os.environ["LOCAL_RANK"])

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #9da078e724d1734b Environment-variable access.
repo/src/transformers/integrations/tensor_parallel.py:79
                world_size = int(os.environ["WORLD_SIZE"])

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #3156bd535560cb3d Environment-variable access.
repo/src/transformers/integrations/tensor_parallel.py:103
            current_device.set_device(int(os.environ["LOCAL_RANK"]))

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #d69de76454d45257 Environment-variable access.
repo/src/transformers/integrations/tensor_parallel.py:122
        device_map = torch.device(f"{device_mesh.device_type}:{int(os.environ['LOCAL_RANK'])}")

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #0ebd91167d92b5d5 Filesystem access.
repo/src/transformers/model_debugging_utils.py:243
    with open(full_path, "w") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #f36d78c2317bb57f Filesystem access.
repo/src/transformers/model_debugging_utils.py:266
    with open(summary_path, "w") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #a856a0fa3f1839df Environment-variable access.
repo/src/transformers/modeling_flash_attention_utils.py:657
            deterministic if deterministic is not None else os.getenv("FLASH_ATTENTION_DETERMINISTIC", "0") == "1"

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #8a7f8b85e363b04a Environment-variable access.
repo/src/transformers/modeling_utils.py:163
XLA_USE_BF16 = os.environ.get("XLA_USE_BF16", "0").upper()

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #5b212b5385cbae11 Environment-variable access.
repo/src/transformers/modeling_utils.py:164
XLA_DOWNCAST_BF16 = os.environ.get("XLA_DOWNCAST_BF16", "0").upper()

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #4583c88246045fc6 Environment-variable access.
repo/src/transformers/modeling_utils.py:213
    return _is_torch_distributed_initialized() and int(os.environ.get("LOCAL_RANK", "-1")) == 0

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #e5485e92d9e9871b Filesystem access.
repo/src/transformers/modeling_utils.py:323
        with open("/proc/mounts", encoding="utf-8") as fh:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #4a334cee5a2bf927 Filesystem access.
repo/src/transformers/modeling_utils.py:356
            with open(checkpoint_path, "rb") as _fh:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #44691b3b0e8ce39f Filesystem access.
repo/src/transformers/modeling_utils.py:3705
            with open(save_index_file, "w", encoding="utf-8") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #0d4aba5ef8931d2b Environment-variable access.
repo/src/transformers/modeling_utils.py:4268
        if device_map == "auto" and int(os.environ.get("WORLD_SIZE", "0")):

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #f8c3ea36bf5b14f2 Filesystem access.
repo/src/transformers/modeling_utils.py:4570
                        with open(file, "rb") as _fh:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #acff147326079898 Filesystem access.
repo/src/transformers/models/audio_spectrogram_transformer/convert_audio_spectrogram_transformer_original_to_pytorch.py:60
    id2label = json.load(open(hf_hub_download(repo_id, filename, repo_type="dataset"), "r"))

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #75e51478fc6effd0 Filesystem access.
repo/src/transformers/models/auto/auto_factory.py:311
                with open(maybe_adapter_path, "r", encoding="utf-8") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #c7d0730d41ad5988 Filesystem access.
repo/src/transformers/models/auto/processing_auto.py:274
                with open(tokenizer_config_file, encoding="utf-8") as reader:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #343401d9faa05d6a Filesystem access.
repo/src/transformers/models/auto/tokenization_auto.py:435
    with open(vocab_file, "r", encoding="utf-8") as reader:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #98559f0c27d55900 Filesystem access.
repo/src/transformers/models/auto/tokenization_auto.py:442
    with open(merges_file, "r", encoding="utf-8") as reader:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #6e625361b5bd8ddc Filesystem access.
repo/src/transformers/models/auto/tokenization_auto.py:613
    with open(resolved_config_file, encoding="utf-8") as reader:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #fea338c4a2c47c4c Filesystem access.
repo/src/transformers/models/bamba/convert_mamba_ssm_checkpoint.py:158
    with open(os.path.join(save_directory, SAFE_WEIGHTS_INDEX_NAME), "w", encoding="utf-8") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #d30ef6d90f18ceb1 Filesystem access.
repo/src/transformers/models/bamba/convert_mamba_ssm_checkpoint.py:202
    with open(config_path, "r", encoding="utf-8") as json_file:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #ec80684fa24ed26d Environment-variable access.
repo/src/transformers/models/bark/convert_suno_to_hf.py:77
CACHE_DIR = os.path.join(os.getenv("XDG_CACHE_HOME", default_cache_dir), "suno", "bark_v0")

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #9eb0a9fa359c1e01 Filesystem access.
repo/src/transformers/models/bark/processing_bark.py:101
                with open(speaker_embeddings_path) as speaker_embeddings_json:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #b0d8061a7cdabdef Filesystem access.
repo/src/transformers/models/bark/processing_bark.py:161
            with open(os.path.join(save_directory, speaker_embeddings_dict_path), "w") as fp:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #7dc4109409255102 Filesystem access.
repo/src/transformers/models/bartpho/tokenization_bartpho.py:133
        with open(monolingual_vocab_file, "r", encoding="utf-8") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #f34867d78a3b18cf Filesystem access.
repo/src/transformers/models/bartpho/tokenization_bartpho.py:306
            with open(out_vocab_file, "wb") as fi:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #a82ea53cdeefd2c1 Filesystem access.
repo/src/transformers/models/bartpho/tokenization_bartpho.py:315
            with open(out_monolingual_vocab_file, "w", encoding="utf-8") as fp:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #ca334646060d41a4 Filesystem access.
repo/src/transformers/models/beit/convert_beit_unilm_to_pytorch.py:192
        id2label = json.load(open(hf_hub_download(repo_id, filename, repo_type="dataset"), "r"))

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #018d382f442e8983 Filesystem access.
repo/src/transformers/models/beit/convert_beit_unilm_to_pytorch.py:205
        id2label = json.load(open(hf_hub_download(repo_id, filename, repo_type="dataset"), "r"))

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #4214fe9b37102e7d Filesystem access.
repo/src/transformers/models/beit/convert_beit_unilm_to_pytorch.py:218
        id2label = json.load(open(hf_hub_download(repo_id, filename, repo_type="dataset"), "r"))

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #8f8aa933e6bf546f Filesystem access.
repo/src/transformers/models/bert/tokenization_bert.py:33
    with open(vocab_file, "r", encoding="utf-8") as reader:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #823f1b82b31b2f4b Filesystem access.
repo/src/transformers/models/bert/tokenization_bert_legacy.py:32
    with open(vocab_file, "r", encoding="utf-8") as reader:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #1967ed4a580ee668 Filesystem access.
repo/src/transformers/models/bert/tokenization_bert_legacy.py:245
        with open(vocab_file, "w", encoding="utf-8") as writer:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #9923b719c663947d Filesystem access.
repo/src/transformers/models/bert_japanese/tokenization_bert_japanese.py:41
    with open(vocab_file, "r", encoding="utf-8") as reader:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #9ae7af8d8873923b Filesystem access.
repo/src/transformers/models/bert_japanese/tokenization_bert_japanese.py:278
            with open(vocab_file, "wb") as writer:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #7c730228c73ff6bd Filesystem access.
repo/src/transformers/models/bert_japanese/tokenization_bert_japanese.py:282
            with open(vocab_file, "w", encoding="utf-8") as writer:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #59cda28cef362e82 Filesystem access.
repo/src/transformers/models/bertweet/tokenization_bertweet.py:142
        with open(merges_file, encoding="utf-8") as merges_handle:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #90596f6526cf4ae5 Filesystem access.
repo/src/transformers/models/bertweet/tokenization_bertweet.py:316
        with open(vocab_file, "w", encoding="utf-8") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #37a41e1161d61c78 Filesystem access.
repo/src/transformers/models/bertweet/tokenization_bertweet.py:324
        with open(merge_file, "w", encoding="utf-8") as writer:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #212ccd72d5e5c083 Filesystem access.
repo/src/transformers/models/bertweet/tokenization_bertweet.py:338
                with open(f, "r", encoding="utf-8") as fd:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #0d1cf32749874758 Filesystem access.
repo/src/transformers/models/biogpt/convert_biogpt_original_pytorch_checkpoint_to_pytorch.py:112
                with open(f, "r", encoding="utf-8") as fd:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #18a98a88fe978d27 Filesystem access.
repo/src/transformers/models/biogpt/convert_biogpt_original_pytorch_checkpoint_to_pytorch.py:183
    with open(src_vocab_file, "w", encoding="utf-8") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #03276bceb420f354 Filesystem access.
repo/src/transformers/models/biogpt/convert_biogpt_original_pytorch_checkpoint_to_pytorch.py:223
    with open(biogpt_model_config_file, "w", encoding="utf-8") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #18bfc08a86e61263 Filesystem access.
repo/src/transformers/models/biogpt/convert_biogpt_original_pytorch_checkpoint_to_pytorch.py:240
    with open(biogpt_tokenizer_config_file, "w", encoding="utf-8") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #18635b3387723d7d Filesystem access.
repo/src/transformers/models/biogpt/tokenization_biogpt.py:116
        with open(vocab_file, encoding="utf-8") as vocab_handle:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #8cba6fdad76c45c3 Filesystem access.
repo/src/transformers/models/biogpt/tokenization_biogpt.py:119
        with open(merges_file, encoding="utf-8") as merges_handle:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #68dbc2e49ac6d6ec Filesystem access.
repo/src/transformers/models/biogpt/tokenization_biogpt.py:293
        with open(vocab_file, "w", encoding="utf-8") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #911140b66e063921 Filesystem access.
repo/src/transformers/models/biogpt/tokenization_biogpt.py:297
        with open(merge_file, "w", encoding="utf-8") as writer:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #381692e01becea04 Filesystem access.
repo/src/transformers/models/bit/convert_bit_to_pytorch.py:41
    id2label = json.load(open(hf_hub_download(repo_id, filename, repo_type="dataset"), "r"))

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #401670d0b040e130 Filesystem access.
repo/src/transformers/models/blenderbot_small/tokenization_blenderbot_small.py:89
        with open(vocab_file, encoding="utf-8") as vocab_handle:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #eeec3aa1fbf5630c Filesystem access.
repo/src/transformers/models/blenderbot_small/tokenization_blenderbot_small.py:92
        with open(merges_file, encoding="utf-8") as merges_handle:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #ee64359ebe4c982f Filesystem access.
repo/src/transformers/models/blenderbot_small/tokenization_blenderbot_small.py:203
        with open(vocab_file, "w", encoding="utf-8") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #64bbc345db23b9f9 Filesystem access.
repo/src/transformers/models/blenderbot_small/tokenization_blenderbot_small.py:207
        with open(merge_file, "w", encoding="utf-8") as writer:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #11bd72e2459e4d72 Filesystem access.
repo/src/transformers/models/bloom/convert_bloom_original_checkpoint_to_pytorch.py:149
        with open(pytorch_config_dump_path, "w", encoding="utf-8") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #4cc5793094489d9b Filesystem access.
repo/src/transformers/models/bloom/convert_bloom_original_checkpoint_to_pytorch.py:151
        with open(os.path.join(pytorch_dump_folder_path, WEIGHTS_NAME + ".index.json"), "w", encoding="utf-8") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #3565c4fc4021cf2f Filesystem access.
repo/src/transformers/models/bloom/convert_bloom_original_checkpoint_to_pytorch.py:209
        with open(pytorch_config_dump_path, "w", encoding="utf-8") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #42256b1b58e80953 Filesystem access.
repo/src/transformers/models/blt/convert_blt_weights_to_hf.py:25
    with open(config_path, "r") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #b3dc05061ebd6d6c Filesystem access.
repo/src/transformers/models/blt/convert_blt_weights_to_hf.py:28
    with open(entropy_params_path, "r") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #53b051cc75cb3836 Filesystem access.
repo/src/transformers/models/blt/convert_blt_weights_to_hf.py:295
    with open(tokenizer_path, "w") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #fa97de3d8b081b6b Filesystem access.
repo/src/transformers/models/blt/convert_blt_weights_to_hf.py:388
    with open(config_path, "w") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #5e71821e9c4f26bf Filesystem access.
repo/src/transformers/models/chameleon/convert_chameleon_weights_to_hf.py:75
    with open(path, "r") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #1363a7b3aaa3cf3c Filesystem access.
repo/src/transformers/models/chameleon/convert_chameleon_weights_to_hf.py:80
    with open(path, "w") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #96426e6005a77544 Filesystem access.
repo/src/transformers/models/chameleon/convert_chameleon_weights_to_hf.py:329
    with open(os.path.join(input_base_path, "tokenizer/text_tokenizer.json")) as tokenizer_file:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #18ef50e5066c64d0 Filesystem access.
repo/src/transformers/models/chameleon/convert_chameleon_weights_to_hf.py:341
    with open(os.path.join(input_base_path, "tokenizer/text_tokenizer_modified.json"), "w") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #0291c16abebf65c3 Filesystem access.
repo/src/transformers/models/chameleon/convert_chameleon_weights_to_hf.py:352
    with open(os.path.join(input_base_path, "tokenizer/vqgan.yaml")) as vqgan_cfg_file:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #e24da1426d47b4a8 Filesystem access.
repo/src/transformers/models/clvp/tokenization_clvp.py:149
        with open(vocab_file, encoding="utf-8") as vocab_handle:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #618fda912316b8f3 Filesystem access.
repo/src/transformers/models/clvp/tokenization_clvp.py:155
        with open(merges_file, encoding="utf-8") as merges_handle:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #bb63bf212f039a69 Filesystem access.
repo/src/transformers/models/conditional_detr/convert_conditional_detr_original_pytorch_checkpoint_to_pytorch.py:280
        id2label = json.load(open(hf_hub_download(repo_id, filename, repo_type="dataset"), "r"))

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #af5472568bd2ff4f Filesystem access.
repo/src/transformers/models/convnext/convert_convnext_to_pytorch.py:66
    id2label = json.load(open(hf_hub_download(repo_id, filename, repo_type="dataset"), "r"))

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #d3b03c59a4fe6b94 Filesystem access.
repo/src/transformers/models/convnextv2/convert_convnextv2_to_pytorch.py:71
    id2label = json.load(open(hf_hub_download(repo_id, filename, repo_type="dataset"), "r"))

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #c1f86138afbf4005 Filesystem access.
repo/src/transformers/models/cpm/tokenization_cpm.py:324
            with open(out_vocab_file, "wb") as fi:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #9a4a3e227d55502f Filesystem access.
repo/src/transformers/models/cpmant/tokenization_cpmant.py:37
    with open(vocab_file, "r", encoding="utf-8") as reader:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #e9ca0f0d9fa86a4b Filesystem access.
repo/src/transformers/models/cpmant/tokenization_cpmant.py:219
        with open(vocab_file, "w", encoding="utf-8") as writer:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #3896009682289483 Filesystem access.
repo/src/transformers/models/ctrl/tokenization_ctrl.py:128
        with open(vocab_file, encoding="utf-8") as vocab_handle:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #9bded6005f4e00f4 Filesystem access.
repo/src/transformers/models/ctrl/tokenization_ctrl.py:131
        with open(merges_file, encoding="utf-8") as merges_handle:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #0d8c4670700a53a4 Filesystem access.
repo/src/transformers/models/cvt/convert_cvt_original_pytorch_checkpoint_to_pytorch.py:285
    id2label = json.loads(Path(hf_hub_download(repo_id, img_labels_file, repo_type="dataset")).read_text())

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #14a95484256c1f67 Filesystem access.
repo/src/transformers/models/d_fine/convert_d_fine_original_pytorch_checkpoint_to_hf.py:41
    id2label = json.load(open(hf_hub_download(repo_id, filename, repo_type="dataset"), "r"))

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #aa2c8bd1e077e740 Filesystem access.
repo/src/transformers/models/dab_detr/convert_dab_detr_original_pytorch_checkpoint_to_pytorch.py:140
    id2label = json.load(open(hf_hub_download(repo_id, filename, repo_type="dataset"), "r"))

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #361ef01adb8c1435 Filesystem access.
repo/src/transformers/models/data2vec/convert_data2vec_vision_original_pytorch_checkpoint_to_pytorch.py:281
        id2label = json.load(open(hf_hub_download(repo_id, filename, repo_type="dataset"), "r"))

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #510c1c907df9a48d Filesystem access.
repo/src/transformers/models/deepseek_ocr2/convert_deepseek_ocr2_weights_to_hf.py:135
    with open(os.path.join(input_dir, "config.json")) as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low egress production #23dc34a58e4642ef Hardcoded external endpoint. Review what data is sent to this destination.
repo/src/transformers/models/deepseek_ocr2/convert_deepseek_ocr2_weights_to_hf.py:190
    image = Image.open(requests.get(image_url, stream=True).raw).convert("RGB")

Data is sent to a hardcoded external endpoint; review what leaves the process.

Fix: Verify the destination and that only non-sensitive data is sent; pin and audit the dependency.

low env_fs production #ef32273ff49cc17b Filesystem access.
repo/src/transformers/models/deepseek_vl/convert_deepseek_vl_weights_to_hf.py:184
        with open(index_path, "r") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #5aaff2194d78bd73 Filesystem access.
repo/src/transformers/models/deepseek_vl_hybrid/convert_deepseek_vl_hybrid_weights_to_hf.py:211
        with open(index_path, "r") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #464e3d1a080aa450 Filesystem access.
repo/src/transformers/models/deformable_detr/convert_deformable_detr_to_pytorch.py:113
    id2label = json.loads(Path(hf_hub_download(repo_id, filename, repo_type="dataset")).read_text())

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #f52a7f46fdb9f6f1 Filesystem access.
repo/src/transformers/models/deimv2/convert_deimv2_original_pytorch_checkpoint_to_hf.py:105
    with open(config_path) as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #43d08f53df7c06c7 Filesystem access.
repo/src/transformers/models/deimv2/convert_deimv2_original_pytorch_checkpoint_to_hf.py:110
        open(hf_hub_download("huggingface/label-files", "coco-detection-mmdet-id2label.json", repo_type="dataset"))

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #1ede2a7eb5753afb Filesystem access.
repo/src/transformers/models/deit/convert_deit_timm_to_pytorch.py:145
    id2label = json.load(open(hf_hub_download(repo_id, filename, repo_type="dataset"), "r"))

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #8985115adc614675 Filesystem access.
repo/src/transformers/models/detr/convert_detr_original_pytorch_checkpoint_to_pytorch.py:198
        id2label = json.load(open(hf_hub_download(repo_id, filename, repo_type="dataset"), "r"))

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #1b047a96408f4604 Filesystem access.
repo/src/transformers/models/detr/convert_detr_to_pytorch.py:53
        id2label = json.load(open(hf_hub_download(repo_id, filename, repo_type="dataset"), "r"))

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #686899beb0ee23b3 Filesystem access.
repo/src/transformers/models/diffusion_gemma/convert_diffusion_gemma_weights.py:558
    with open(metadata_path, "rb") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #a61f9df1b89f6666 Filesystem access.
repo/src/transformers/models/dinov2/convert_dinov2_to_hf.py:65
        config.id2label = json.load(open(hf_hub_download(repo_id, filename, repo_type="dataset"), "r"))

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #ba494fbcd304019c Filesystem access.
repo/src/transformers/models/dinov2_with_registers/convert_dinov2_with_registers_to_hf.py:70
        config.id2label = json.load(open(hf_hub_download(repo_id, filename, repo_type="dataset"), "r"))

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #b128788483e1236b Filesystem access.
repo/src/transformers/models/dit/convert_dit_unilm_to_pytorch.py:155
        id2label = json.load(open(hf_hub_download(repo_id, filename, repo_type="dataset"), "r"))

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #48234094449c5bca Filesystem access.
repo/src/transformers/models/doge/convert_doge_weights_to_hf.py:96
    with open(os.path.join(input_dir, "config.json")) as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #569dfa6d72280954 Filesystem access.
repo/src/transformers/models/dpt/convert_dpt_hybrid_to_pytorch.py:64
        id2label = json.loads(Path(hf_hub_download(repo_id, filename, repo_type="dataset")).read_text())

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #0f539578caee5b0b Filesystem access.
repo/src/transformers/models/dpt/convert_dpt_to_pytorch.py:52
        id2label = json.loads(Path(hf_hub_download(repo_id, filename, repo_type="dataset")).read_text())

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #30a3de3f53efdf27 Filesystem access.
repo/src/transformers/models/efficientnet/convert_efficientnet_to_pytorch.py:134
    id2label = json.load(open(hf_hub_download(repo_id, filename, repo_type="dataset"), "r"))

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #9322db3e873a1826 Filesystem access.
repo/src/transformers/models/emu3/convert_emu3_weights_to_hf.py:186
    with open(os.path.join(output_dir, "vocab.json"), "w", encoding="utf-8") as fp:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #025b2cae553a3ca8 Filesystem access.
repo/src/transformers/models/emu3/convert_emu3_weights_to_hf.py:189
    with open(os.path.join(output_dir, "tokenizer.json"), "w", encoding="utf-8") as fp:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #faac39d1b0e65d19 Filesystem access.
repo/src/transformers/models/emu3/convert_emu3_weights_to_hf.py:192
    with open(os.path.join(output_dir, "tokenizer_config.json"), "w", encoding="utf-8") as fp:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #ffad1a3532dc5cc6 Filesystem access.
repo/src/transformers/models/emu3/convert_emu3_weights_to_hf.py:195
    with open(os.path.join(output_dir, "special_tokens_map.json"), "w", encoding="utf-8") as fp:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #e546e30459e2c673 Filesystem access.
repo/src/transformers/models/emu3/convert_emu3_weights_to_hf.py:207
    with open(os.path.join(output_dir, "merges.txt"), "w", encoding="utf-8") as fp:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #1c8e92e73c0ffa44 Filesystem access.
repo/src/transformers/models/emu3/convert_emu3_weights_to_hf.py:280
    with open(f"{output_dir}/tokenizer.json", "r") as file:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #b5196d20d41b8951 Filesystem access.
repo/src/transformers/models/eomt/convert_eomt_to_hf.py:166
        with open(index_path, "r") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #fa3668cf7753e794 Filesystem access.
repo/src/transformers/models/eomt/convert_eomt_to_hf.py:212
    with open(os.path.join(input_path, "config.json"), "r") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #a568fbf7360d8c0c Filesystem access.
repo/src/transformers/models/eomt_dinov3/convert_eomt_dinov3_to_hf.py:291
    with open(filepath, "r") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low egress production #3561fa426daf786f Hardcoded external endpoint. Review what data is sent to this destination.
repo/src/transformers/models/eomt_dinov3/convert_eomt_dinov3_to_hf.py:377
    image = Image.open(requests.get(CAT_URL, stream=True).raw).convert("RGB")

Data is sent to a hardcoded external endpoint; review what leaves the process.

Fix: Verify the destination and that only non-sensitive data is sent; pin and audit the dependency.

low env_fs production #c347a92bdc3c16ba Filesystem access.
repo/src/transformers/models/ernie4_5_vl_moe/convert_ernie4_5_vl_moe_to_hf.py:158
    with open(os.path.join(save_dir, filename), "r") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #9de85908ee435e22 Filesystem access.
repo/src/transformers/models/ernie4_5_vl_moe/convert_ernie4_5_vl_moe_to_hf.py:163
    with open(os.path.join(save_dir, filename), "w") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #dc71ea86af7f1e56 Filesystem access.
repo/src/transformers/models/esm/convert_esm.py:80
        vocab_file.write_text(vocab)

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #a45d88ff2131437c Filesystem access.
repo/src/transformers/models/esm/convert_esm.py:312
            vocab_file.write_text(vocab)

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #275f8619da6ed88d Filesystem access.
repo/src/transformers/models/esm/openfold_utils/residue_constants.py:417
    stereo_chemical_props = resources.read_text("openfold.resources", "stereo_chemical_props.txt")

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #d5572079a1821227 Filesystem access.
repo/src/transformers/models/esm/tokenization_esm.py:28
    with open(vocab_file, "r") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #360fdc83d8de0250 Filesystem access.
repo/src/transformers/models/esm/tokenization_esm.py:136
        with open(vocab_file, "w") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #d0a6c69d3c3c1f05 Filesystem access.
repo/src/transformers/models/falcon/convert_custom_code_checkpoint.py:36
    text = config.read_text()

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #20560124f594bebb Filesystem access.
repo/src/transformers/models/falcon/convert_custom_code_checkpoint.py:55
    config.write_text(json.dumps(json_config, indent=2, sort_keys=True))

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #0b5ca0f0bbe83cb7 Filesystem access.
repo/src/transformers/models/falcon/convert_custom_code_checkpoint.py:59
        text = tokenizer_config.read_text()

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #7cb621c4709e7163 Filesystem access.
repo/src/transformers/models/falcon/convert_custom_code_checkpoint.py:64
            tokenizer_config.write_text(json.dumps(json_config, indent=2, sort_keys=True))

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #5c35605ecaf68fb5 Filesystem access.
repo/src/transformers/models/falcon/convert_custom_code_checkpoint.py:73
    generation_config_path.write_text(json.dumps(generation_dict, indent=2, sort_keys=True))

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #1e35157f7d517cdc Environment-variable access.
repo/src/transformers/models/fast_vlm/convert_fastvlm_weights_to_hf.py:37
os.environ["TIMM_FUSED_ATTN"] = (

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #badbace7bdd38116 Filesystem access.
repo/src/transformers/models/fastspeech2_conformer/convert_fastspeech2_conformer_original_pytorch_checkpoint_to_pytorch.py:177
        with open(vocab_file, "w") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #3ea7a7419afaad4d Filesystem access.
repo/src/transformers/models/fastspeech2_conformer/tokenization_fastspeech2_conformer.py:65
        with open(vocab_file, encoding="utf-8") as vocab_handle:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #cefa6271867da5f4 Filesystem access.
repo/src/transformers/models/fastspeech2_conformer/tokenization_fastspeech2_conformer.py:163
        with open(vocab_file, "w", encoding="utf-8") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #0c78db3495990fc7 Filesystem access.
repo/src/transformers/models/flaubert/tokenization_flaubert.py:237
        with open(vocab_file, encoding="utf-8") as vocab_handle:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #de7668e4c4af5aaf Filesystem access.
repo/src/transformers/models/flaubert/tokenization_flaubert.py:240
        with open(merges_file, encoding="utf-8") as merges_handle:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #9fcfb715ba1d2e17 Filesystem access.
repo/src/transformers/models/flaubert/tokenization_flaubert.py:498
        with open(vocab_file, "w", encoding="utf-8") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #e32fed3812adc913 Filesystem access.
repo/src/transformers/models/flaubert/tokenization_flaubert.py:502
        with open(merge_file, "w", encoding="utf-8") as writer:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #f888e0308e09d52b Filesystem access.
repo/src/transformers/models/focalnet/convert_focalnet_to_hf_format.py:71
    id2label = json.load(open(hf_hub_download(repo_id, filename, repo_type="dataset"), "r"))

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #a0c2e2127da69e55 Filesystem access.
repo/src/transformers/models/fsmt/convert_fsmt_original_pytorch_checkpoint_to_pytorch.py:130
    with open(src_vocab_file, "w", encoding="utf-8") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #83f90abfed4c5bd3 Filesystem access.
repo/src/transformers/models/fsmt/convert_fsmt_original_pytorch_checkpoint_to_pytorch.py:146
    with open(tgt_vocab_file, "w", encoding="utf-8") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #5cbb06d9d53b6b17 Filesystem access.
repo/src/transformers/models/fsmt/convert_fsmt_original_pytorch_checkpoint_to_pytorch.py:155
    with open(fsmt_merges_file, encoding="utf-8") as fin:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #e08c31198901741c Filesystem access.
repo/src/transformers/models/fsmt/convert_fsmt_original_pytorch_checkpoint_to_pytorch.py:159
    with open(merges_file, "w", encoding="utf-8") as fout:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #96d33109c88a70df Filesystem access.
repo/src/transformers/models/fsmt/convert_fsmt_original_pytorch_checkpoint_to_pytorch.py:209
    with open(fsmt_model_config_file, "w", encoding="utf-8") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #d06e3468926dd615 Filesystem access.
repo/src/transformers/models/fsmt/convert_fsmt_original_pytorch_checkpoint_to_pytorch.py:222
    with open(fsmt_tokenizer_config_file, "w", encoding="utf-8") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #0c5bc87ab59f96e2 Filesystem access.
repo/src/transformers/models/fsmt/tokenization_fsmt.py:204
        with open(src_vocab_file, encoding="utf-8") as src_vocab_handle:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #80803e60c0ef6bb0 Filesystem access.
repo/src/transformers/models/fsmt/tokenization_fsmt.py:206
        with open(tgt_vocab_file, encoding="utf-8") as tgt_vocab_handle:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #6d999b6ad4d22784 Filesystem access.
repo/src/transformers/models/fsmt/tokenization_fsmt.py:209
        with open(merges_file, encoding="utf-8") as merges_handle:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #0c01fc96d129a8a6 Filesystem access.
repo/src/transformers/models/fsmt/tokenization_fsmt.py:446
        with open(src_vocab_file, "w", encoding="utf-8") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #8b173749a4c9b465 Filesystem access.
repo/src/transformers/models/fsmt/tokenization_fsmt.py:449
        with open(tgt_vocab_file, "w", encoding="utf-8") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #fd004ff538ce2ad7 Filesystem access.
repo/src/transformers/models/fsmt/tokenization_fsmt.py:454
        with open(merges_file, "w", encoding="utf-8") as writer:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #fb6742e90dadff45 Filesystem access.
repo/src/transformers/models/gemma3/convert_gemma3_weights.py:331
        with open(_CHAT_TEMPLATE_PATH.value, "r") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #a3ab6e1d2266303f Filesystem access.
repo/src/transformers/models/gemma4/convert_gemma4_weights.py:71
_CHAT_TEMPLATE = pathlib.Path(cached_file("gg-hf-gg/gemma-4-E4B-it", "chat_template.jinja")).read_text()

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #da959d5845c392bc Filesystem access.
repo/src/transformers/models/gemma4/convert_gemma4_weights.py:72
_CHAT_TEMPLATE_LARGE = pathlib.Path(cached_file("gg-hf-gg/gemma-4-31B-it", "chat_template.jinja")).read_text()

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #4fa0714086b2e560 Filesystem access.
repo/src/transformers/models/gemma4/convert_gemma4_weights.py:1406
    with open(metadata_path, "rb") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #c3ab7c33cd9cc381 Filesystem access.
repo/src/transformers/models/gemma4_unified/convert_gemma4_unified_weights.py:82
_CHAT_TEMPLATE = pathlib.Path(cached_file("google/gemma-4-31B-it", "chat_template.jinja")).read_text()

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #7593dc8f28a56997 Filesystem access.
repo/src/transformers/models/gemma4_unified/convert_gemma4_unified_weights.py:562
    with open(metadata_path, "rb") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #aaae010f552bf104 Filesystem access.
repo/src/transformers/models/glm/convert_glm_weights_to_hf.py:158
    with open(os.path.join(input_dir, "config.json")) as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #20376b5acffb892c Filesystem access.
repo/src/transformers/models/glm4/convert_glm4_weights_to_hf.py:163
    with open(os.path.join(input_dir, "config.json")) as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #fae9577c83f9f2d8 Filesystem access.
repo/src/transformers/models/glm4v/convert_glm4v_mgt_weights_to_hf.py:276
    with open(index_path, "w") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #e4b8480ce83510ef Filesystem access.
repo/src/transformers/models/glm4v/convert_glm4v_mgt_weights_to_hf.py:483
    with open(vllm_config_path, "r") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #23c5fa2f6d426bdd Filesystem access.
repo/src/transformers/models/glm4v/convert_glm4v_mgt_weights_to_hf.py:735
    with open(config_path, "w") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #af810704a84a8be0 Filesystem access.
repo/src/transformers/models/glm4v_moe/convert_glm4v_moe_mgt_weights_to_hf.py:229
    with open(index_path, "w") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #f6d53c78c571f9af Filesystem access.
repo/src/transformers/models/glm4v_moe/convert_glm4v_moe_mgt_weights_to_hf.py:439
    with open(vllm_config_path, "r") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #71110a0f1ec3c267 Filesystem access.
repo/src/transformers/models/glm4v_moe/convert_glm4v_moe_mgt_weights_to_hf.py:739
    with open(config_path, "w") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #ae14bd500fa44d75 Filesystem access.
repo/src/transformers/models/gpt2/convert_gpt2_original_tf_checkpoint_to_pytorch.py:102
    with open(pytorch_config_dump_path, "w", encoding="utf-8") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #0201b891f6371740 Filesystem access.
repo/src/transformers/models/gpt_neo/convert_gpt_neo_mesh_tf_to_pytorch.py:113
    config_json = json.load(open(config_file, "r"))

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #54b753b803c79eb3 Filesystem access.
repo/src/transformers/models/gpt_neox_japanese/tokenization_gpt_neox_japanese.py:35
    with open(emoji_file, "r", encoding="utf-8") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #e758e04c8ada4024 Filesystem access.
repo/src/transformers/models/gpt_neox_japanese/tokenization_gpt_neox_japanese.py:41
    with open(vocab_file, "r", encoding="utf-8") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #ad76114aa2be4e3f Filesystem access.
repo/src/transformers/models/gpt_neox_japanese/tokenization_gpt_neox_japanese.py:180
        with open(vocab_file, "w", encoding="utf-8") as writer:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #62fcbbb6a7d14fb7 Filesystem access.
repo/src/transformers/models/gpt_neox_japanese/tokenization_gpt_neox_japanese.py:190
        with open(emoji_file, "w", encoding="utf-8") as writer:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #b5f5cfb284dc0948 Filesystem access.
repo/src/transformers/models/gpt_oss/convert_gpt_oss_weights_to_hf.py:154
    original_config = json.loads((Path(input_base_path) / "config.json").read_text())

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #86663ebdabe4aa29 Filesystem access.
repo/src/transformers/models/gpt_oss/convert_gpt_oss_weights_to_hf.py:331
    with open(os.path.join(model_path, "model.safetensors.index.json"), "w") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #f6b0cdf7bc319f32 Filesystem access.
repo/src/transformers/models/gpt_oss/convert_gpt_oss_weights_to_hf.py:779
    with open(chat_template_path, "w", encoding="utf-8") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #1256bc26e26fa1dd Filesystem access.
repo/src/transformers/models/hiera/convert_hiera_to_hf.py:164
    id2label = json.load(open(hf_hub_download(repo_id, filename, repo_type="dataset"), "r"))

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #8a47b8ce498b5a39 Filesystem access.
repo/src/transformers/models/hubert/convert_hubert_original_pytorch_checkpoint_to_pytorch.py:208
            with open(vocab_path, "w", encoding="utf-8") as vocab_handle:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #c1f86c452f07b690 Filesystem access.
repo/src/transformers/models/idefics3/convert_idefics3_weights_to_hf.py:122
    with open(filepath, "r") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #7a2088a01e2845ab Filesystem access.
repo/src/transformers/models/imagegpt/convert_imagegpt_original_tf2_to_pytorch.py:156
    with open(pytorch_config_dump_path, "w", encoding="utf-8") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #ff1b5ba061295557 Filesystem access.
repo/src/transformers/models/janus/convert_janus_weights_to_hf.py:217
        with open(index_path, "r") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #3bc438139a7a9156 Filesystem access.
repo/src/transformers/models/janus/convert_janus_weights_to_hf.py:274
    with open(os.path.join(input_path, "config.json"), "r") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #c675fab6e83494d9 Filesystem access.
repo/src/transformers/models/janus/convert_janus_weights_to_hf.py:276
    with open(os.path.join(input_path, "preprocessor_config.json"), "r") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #f19e0c03a7d114a1 Filesystem access.
repo/src/transformers/models/janus/convert_janus_weights_to_hf.py:278
    with open(os.path.join(input_path, "special_tokens_map.json"), "r") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #677f5449bb523aeb Filesystem access.
repo/src/transformers/models/janus/convert_janus_weights_to_hf.py:280
    with open(os.path.join(input_path, "tokenizer_config.json"), "r") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #01cfd900f89d7e94 Filesystem access.
repo/src/transformers/models/levit/convert_levit_timm_to_pytorch.py:87
    id2label = json.load(open(hf_hub_download(repo_id, filename, repo_type="dataset"), "r"))

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #b82aa2213c97d5f2 Filesystem access.
repo/src/transformers/models/llama/convert_llama_weights_to_hf.py:175
    with open(path, "r") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #25db5148eadec8b2 Filesystem access.
repo/src/transformers/models/llama/convert_llama_weights_to_hf.py:180
    with open(path, "w") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #1be214c261c03123 Environment-variable access.
repo/src/transformers/models/llama4/convert_llama4_weights_to_hf.py:25
_OFFLINE_QUANT_COMPATIBLE = os.environ.get("OFFLINE_QUANT_COMPATIBLE", "0") == "1"

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #e73f2d804a9bc436 Filesystem access.
repo/src/transformers/models/llama4/convert_llama4_weights_to_hf.py:203
    with open(os.path.join(model_path, "params.json"), "r") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #46fd7375083f182a Filesystem access.
repo/src/transformers/models/llama4/convert_llama4_weights_to_hf.py:221
    with open(os.path.join(input_base_path, "params.json"), "r") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #0ae5c3f471b5e3a4 Filesystem access.
repo/src/transformers/models/llava_next/convert_llava_next_weights_to_hf.py:100
    with open(filepath) as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #a7da5174db892cce Filesystem access.
repo/src/transformers/models/llava_next_video/convert_llava_next_video_weights_to_hf.py:155
    with open(filepath) as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #6354a30466ddd770 Filesystem access.
repo/src/transformers/models/llava_onevision/convert_llava_onevision_weights_to_hf.py:103
    with open(filepath) as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #3717e52b2b913721 Filesystem access.
repo/src/transformers/models/luke/convert_luke_original_pytorch_checkpoint_to_pytorch.py:29
    with open(metadata_path) as metadata_file:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #8b7a0d8902f2dc22 Filesystem access.
repo/src/transformers/models/luke/convert_luke_original_pytorch_checkpoint_to_pytorch.py:49
    with open(os.path.join(pytorch_dump_folder_path, LukeTokenizer.vocab_files_names["entity_vocab_file"]), "w") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #606fa80f26503e0f Filesystem access.
repo/src/transformers/models/luke/convert_luke_original_pytorch_checkpoint_to_pytorch.py:135
    with open(entity_vocab_path, "r", encoding="utf-8") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #eca7f93f2b5668d5 Filesystem access.
repo/src/transformers/models/luke/tokenization_luke.py:287
            with open(entity_vocab_file, encoding="utf-8") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #5bddd2b30b6e1bba Filesystem access.
repo/src/transformers/models/m2m_100/tokenization_m2m_100.py:311
            with open(spm_save_path, "wb") as fi:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #0f1b202c825c9bdc Filesystem access.
repo/src/transformers/models/m2m_100/tokenization_m2m_100.py:375
    with open(path, "r") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #2a16584e02c64af1 Filesystem access.
repo/src/transformers/models/m2m_100/tokenization_m2m_100.py:380
    with open(path, "w") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #8d36f45fbafdc203 Filesystem access.
repo/src/transformers/models/mamba/convert_mamba_ssm_checkpoint_to_pytorch.py:110
    with open(config_json_file, "r", encoding="utf-8") as json_file:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #b9141c595bbdc763 Filesystem access.
repo/src/transformers/models/mamba2/convert_mamba2_ssm_checkpoint_to_pytorch.py:125
    with open(config_path, "r", encoding="utf-8") as json_file:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #ebeac6f6686e3796 Filesystem access.
repo/src/transformers/models/marian/convert_marian_tatoeba_to_pytorch.py:59
        self.model_results = json.load(open("Tatoeba-Challenge/models/released-model-results.json"))

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #72f8e76aa3b75a77 Filesystem access.
repo/src/transformers/models/marian/convert_marian_tatoeba_to_pytorch.py:61
        for line in open(ISO_PATH):

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #9d48da5a1b4d5e93 Filesystem access.
repo/src/transformers/models/marian/convert_marian_tatoeba_to_pytorch.py:274
        with open(sub_dir / "metadata.json", "w", encoding="utf-8") as writeobj:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #b5c40ed08f109e96 Filesystem access.
repo/src/transformers/models/marian/convert_marian_tatoeba_to_pytorch.py:305
            metadata = yaml.safe_load(open(p / ymls[0]))

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #093715f098fbeefb Filesystem access.
repo/src/transformers/models/marian/convert_marian_tatoeba_to_pytorch.py:313
            metadata = yaml.safe_load(open(p / ymls[-1]))

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #c0d6b5f733ff5f21 Filesystem access.
repo/src/transformers/models/marian/convert_marian_to_pytorch.py:292
            lns = list(open(p / "README.md").readlines())

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #137aa699255c9ad7 Filesystem access.
repo/src/transformers/models/marian/convert_marian_to_pytorch.py:683
    with open(path, encoding="utf-8") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #75cbde2673514662 Filesystem access.
repo/src/transformers/models/marian/convert_marian_to_pytorch.py:688
    with open(path, "w") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #f1b9dbbdc9527f68 Filesystem access.
repo/src/transformers/models/marian/tokenization_marian.py:352
                with open(spm_save_path, "wb") as fi:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #fe30c98552403e4e Filesystem access.
repo/src/transformers/models/marian/tokenization_marian.py:416
    with open(path, "w") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #fab7fc940d49fcd5 Filesystem access.
repo/src/transformers/models/marian/tokenization_marian.py:421
    with open(path, "r") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #322b03a473b0700a Filesystem access.
repo/src/transformers/models/mask2former/convert_mask2former_original_pytorch_checkpoint_to_pytorch.py:134
        id2label = json.load(open(hf_hub_download(repo_id, filename, repo_type="dataset"), "r"))

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #b520b1c59d3bf0e6 Filesystem access.
repo/src/transformers/models/maskformer/convert_maskformer_resnet_to_pytorch.py:74
    id2label = json.load(open(hf_hub_download(repo_id, filename, repo_type="dataset"), "r"))

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #c8ae9b558645aa88 Environment-variable access.
repo/src/transformers/models/maskformer/convert_maskformer_resnet_to_pytorch.py:273
    if not strtobool(os.environ.get("TRUST_REMOTE_CODE", "False")):

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #dfe42934e9e58506 Filesystem access.
repo/src/transformers/models/maskformer/convert_maskformer_resnet_to_pytorch.py:281
    with open(checkpoint_path, "rb") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #1e56662d63846c9a Filesystem access.
repo/src/transformers/models/maskformer/convert_maskformer_swin_to_pytorch.py:71
    id2label = json.load(open(hf_hub_download(repo_id, filename, repo_type="dataset"), "r"))

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #16cffa937d0ae14e Environment-variable access.
repo/src/transformers/models/maskformer/convert_maskformer_swin_to_pytorch.py:242
    if not strtobool(os.environ.get("TRUST_REMOTE_CODE", "False")):

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #302fbf2e4d7cfdec Filesystem access.
repo/src/transformers/models/maskformer/convert_maskformer_swin_to_pytorch.py:250
    with open(checkpoint_path, "rb") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #0bab45c038dc39dd Filesystem access.
repo/src/transformers/models/megatron_gpt2/checkpoint_reshaping_and_interoperability.py:598
        with open(save_index_file, "w", encoding="utf-8") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #5d8c30167f511b0f Filesystem access.
repo/src/transformers/models/megatron_gpt2/checkpoint_reshaping_and_interoperability.py:651
    with open(tracker_filepath, "w") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #c99f1bf5fff0eae2 Filesystem access.
repo/src/transformers/models/mgp_str/tokenization_mgp_str.py:53
        with open(vocab_file, encoding="utf-8") as vocab_handle:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #771609bdcf049109 Filesystem access.
repo/src/transformers/models/mgp_str/tokenization_mgp_str.py:97
        with open(vocab_file, "w", encoding="utf-8") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #3cb420340b02485a Filesystem access.
repo/src/transformers/models/mimo_v2_flash/convert_mimo_v2_flash_weights_to_hf.py:94
    with open(os.path.join(input_dir, "config.json")) as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #68f621ac12644565 Filesystem access.
repo/src/transformers/models/ministral3/convert_ministral3_weights_to_hf.py:89
    with open(path, "r") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #e41112cf94229775 Filesystem access.
repo/src/transformers/models/mistral/convert_mistral_weights_to_hf.py:63
    with open(path, "r") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #0e2552065eadaac8 Filesystem access.
repo/src/transformers/models/mistral3/convert_mistral3_weights_to_hf.py:75
    with open(path, "r") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #df340a593bfcf010 Filesystem access.
repo/src/transformers/models/mistral4/convert_mistral4_weight_to_hf.py:363
    with open(path) as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #fb310859de72b6e2 Filesystem access.
repo/src/transformers/models/mixtral/convert_mixtral_weights_to_hf.py:52
    with open(path, "r") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #f1be31d2b625ed85 Filesystem access.
repo/src/transformers/models/mixtral/convert_mixtral_weights_to_hf.py:57
    with open(path, "w") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #8edef63269424aa6 Filesystem access.
repo/src/transformers/models/mllama/convert_mllama_weights_to_hf.py:216
    with open(os.path.join(input_base_path, "params.json"), "r") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #e81bfdf5d934fe70 Filesystem access.
repo/src/transformers/models/mllama/convert_mllama_weights_to_hf.py:562
        with open(chat_template_path, "w") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #d7bba4462d6587b2 Filesystem access.
repo/src/transformers/models/mllama/convert_mllama_weights_to_hf.py:567
    with open(config_path, "r") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #8e797f7fa38f220c Filesystem access.
repo/src/transformers/models/mluke/convert_mluke_original_pytorch_checkpoint_to_pytorch.py:30
    with open(metadata_path) as metadata_file:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #10da20caa4a80815 Filesystem access.
repo/src/transformers/models/mluke/convert_mluke_original_pytorch_checkpoint_to_pytorch.py:53
    with open(os.path.join(pytorch_dump_folder_path, "tokenizer_config.json"), "r") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #d934b5cbb8b75169 Filesystem access.
repo/src/transformers/models/mluke/convert_mluke_original_pytorch_checkpoint_to_pytorch.py:56
    with open(os.path.join(pytorch_dump_folder_path, "tokenizer_config.json"), "w") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #2d18963acc3a0a5f Filesystem access.
repo/src/transformers/models/mluke/convert_mluke_original_pytorch_checkpoint_to_pytorch.py:59
    with open(os.path.join(pytorch_dump_folder_path, MLukeTokenizer.vocab_files_names["entity_vocab_file"]), "w") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #b9e607c6f9bb44ca Filesystem access.
repo/src/transformers/models/mluke/convert_mluke_original_pytorch_checkpoint_to_pytorch.py:188
    data = [json.loads(line) for line in open(entity_vocab_path)]

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #da0f95cb77e9f79a Filesystem access.
repo/src/transformers/models/mluke/tokenization_mluke.py:308
            with open(entity_vocab_file, encoding="utf-8") as entity_vocab_handle:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #a53fd744a25eb868 Filesystem access.
repo/src/transformers/models/mluke/tokenization_mluke.py:1713
        with open(entity_vocab_file, "w", encoding="utf-8") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #8d86a01ed6dd8889 Filesystem access.
repo/src/transformers/models/mobilenet_v1/convert_original_tf_checkpoint_to_pytorch.py:158
    id2label = json.load(open(hf_hub_download(repo_id, filename, repo_type="dataset"), "r"))

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #5c3c657328c5c755 Filesystem access.
repo/src/transformers/models/mobilenet_v2/convert_original_tf_checkpoint_to_pytorch.py:231
    id2label = json.load(open(hf_hub_download(repo_id, filename, repo_type="dataset"), "r"))

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #f45fc964ee580b60 Filesystem access.
repo/src/transformers/models/mobilevit/convert_mlcvnets_to_pytorch.py:65
    id2label = json.load(open(hf_hub_download(repo_id, filename, repo_type="dataset"), "r"))

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #62e6c5b5b9fa0ec7 Filesystem access.
repo/src/transformers/models/mobilevitv2/convert_mlcvnets_to_pytorch.py:55
    with open(orig_cfg_file, "r") as yaml_file:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #90cb73c7907b9ad4 Filesystem access.
repo/src/transformers/models/mobilevitv2/convert_mlcvnets_to_pytorch.py:117
    id2label = json.load(open(hf_hub_download(repo_id, filename, repo_type="dataset"), "r"))

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #b82466148eb9a1d8 Filesystem access.
repo/src/transformers/models/myt5/tokenization_myt5.py:46
            with open(rewriting_rules, "r") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #adb1b91bb8b23620 Filesystem access.
repo/src/transformers/models/myt5/tokenization_myt5.py:195
        self.byte_maps = json.load(open(vocab_file, "r"))

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #c923f32bb57b2053 Filesystem access.
repo/src/transformers/models/myt5/tokenization_myt5.py:373
        with open(vocab_file, "w", encoding="utf-8") as writer:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #519155024e05f7c2 Filesystem access.
repo/src/transformers/models/nanochat/convert_nanochat_checkpoints.py:58
        with open(meta_file, "r") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #37dd709555801201 Filesystem access.
repo/src/transformers/models/nanochat/convert_nanochat_checkpoints.py:82
            with open(config_file, "r") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #ef2a45c4f9c6ba28 Filesystem access.
repo/src/transformers/models/nanochat/convert_nanochat_checkpoints.py:236
            with open(tokenizer_pkl, "rb") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #667ae1d8e18ab35b Filesystem access.
repo/src/transformers/models/nanochat/convert_nanochat_checkpoints.py:246
                    (Path(output_dir) / filename).write_bytes(src.read_bytes())

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #aa903bb40018548e Filesystem access.
repo/src/transformers/models/nanochat/convert_nanochat_checkpoints.py:252
                (Path(output_dir) / filename).write_bytes(src.read_bytes())

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #c1c7097895b5f889 Filesystem access.
repo/src/transformers/models/nemotron/convert_nemotron_nemo_to_hf.py:131
    json.dump(hf_config, open(f"{hf_output_path}/config.json", "w"), indent=2)

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #b06e61bd958afda5 Filesystem access.
repo/src/transformers/models/nemotron3_5_asr/convert_nemotron3_5_asr_to_hf.py:505
    nemo_config = yaml.load(open(model_files["model_config"], "r"), Loader=yaml.FullLoader)

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #0352662e99e1a5fd Filesystem access.
repo/src/transformers/models/nemotron_asr_streaming/convert_nemotron_asr_streaming_to_hf.py:458
    nemo_config = yaml.load(open(model_files["model_config"], "r"), Loader=yaml.FullLoader)

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #89d547fafdb40231 Filesystem access.
repo/src/transformers/models/nllb_moe/convert_nllb_moe_sharded_original_checkpoint_to_pytorch.py:122
    with open(os.path.join(dump_path, WEIGHTS_INDEX_NAME), "w", encoding="utf-8") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #262c5d54f3de1489 Filesystem access.
repo/src/transformers/models/olmo/convert_olmo_weights_to_hf.py:56
    with open(path, "r") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #69088261a3e870a3 Filesystem access.
repo/src/transformers/models/olmo/convert_olmo_weights_to_hf.py:61
    with open(path, "w") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #93d968bb63fb042b Filesystem access.
repo/src/transformers/models/olmo/convert_olmo_weights_to_hf.py:71
    olmo_config = yaml.safe_load(config_path.read_text())["model"]

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #f95ba651525fb4d8 Filesystem access.
repo/src/transformers/models/olmo2/convert_olmo2_weights_to_hf.py:59
    with open(path, "r") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #e373ab2f8ac424eb Filesystem access.
repo/src/transformers/models/olmo2/convert_olmo2_weights_to_hf.py:64
    with open(path, "w") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #67bd10941a43e2ab Filesystem access.
repo/src/transformers/models/olmo2/convert_olmo2_weights_to_hf.py:81
    olmo2_config = yaml.safe_load(config_path.read_text())["model"]

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #200ede30d56d324a Filesystem access.
repo/src/transformers/models/olmo2/convert_olmo2_weights_to_hf.py:230
        tokenizer_config = yaml.safe_load(config_path.read_text())["tokenizer"]

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #a666c0aaabf4e43f Filesystem access.
repo/src/transformers/models/olmo3/convert_olmo3_weights_to_hf.py:72
    with open(path, "r") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #d5fa41c5de7799d2 Filesystem access.
repo/src/transformers/models/olmo3/convert_olmo3_weights_to_hf.py:77
    with open(path, "w") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #741acb87d2f4b947 Filesystem access.
repo/src/transformers/models/olmo3/convert_olmo3_weights_to_hf.py:90
    with open(path, "rb") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #53668bfb7a75a5d8 Environment-variable access.
repo/src/transformers/models/olmo3/convert_olmo3_weights_to_hf.py:203
                if not strtobool(os.environ.get("TRUST_REMOTE_CODE", "False")):

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #01b58a74641a1e17 Environment-variable access.
repo/src/transformers/models/olmo3/convert_olmo3_weights_to_hf.py:268
    if not strtobool(os.environ.get("TRUST_REMOTE_CODE", "False")):

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #b351f236ee8d281c Filesystem access.
repo/src/transformers/models/olmo3/convert_olmo3_weights_to_hf.py:300
    olmo3_config = json.loads(config_path.read_text())

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #7374c6684d3fce0d Filesystem access.
repo/src/transformers/models/olmo_hybrid/convert_olmo_hybrid_weights_to_hf.py:98
    with open(path, "r") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #4f68588b89b34ca0 Filesystem access.
repo/src/transformers/models/olmo_hybrid/convert_olmo_hybrid_weights_to_hf.py:103
    with open(path, "w") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #323eaa7b29225f57 Filesystem access.
repo/src/transformers/models/olmo_hybrid/convert_olmo_hybrid_weights_to_hf.py:116
    with open(path, "rb") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #7c9a75fe3b12a255 Environment-variable access.
repo/src/transformers/models/olmo_hybrid/convert_olmo_hybrid_weights_to_hf.py:221
                if not strtobool(os.environ.get("TRUST_REMOTE_CODE", "False")):

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #05a28c24f1890905 Environment-variable access.
repo/src/transformers/models/olmo_hybrid/convert_olmo_hybrid_weights_to_hf.py:313
    if not strtobool(os.environ.get("TRUST_REMOTE_CODE", "False")):

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #0d346f74f1f705cc Filesystem access.
repo/src/transformers/models/olmo_hybrid/convert_olmo_hybrid_weights_to_hf.py:424
    olmo_config = json.loads(config_path.read_text())

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #cf9fe4b4da64f99d Filesystem access.
repo/src/transformers/models/olmo_hybrid/convert_olmo_hybrid_weights_to_hf.py:561
    with open(hf_config_path, "r") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #30dd3d6bbf8fb629 Filesystem access.
repo/src/transformers/models/olmo_hybrid/convert_olmo_hybrid_weights_to_hf.py:569
    with open(hf_config_path, "w") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #105eacbcdf49a651 Filesystem access.
repo/src/transformers/models/olmoe/convert_olmoe_weights_to_hf.py:82
    with open(path, "r") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #cf29ee02e8148ca1 Filesystem access.
repo/src/transformers/models/olmoe/convert_olmoe_weights_to_hf.py:87
    with open(path, "w") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #b3fe7aebb7c1eadf Filesystem access.
repo/src/transformers/models/olmoe/convert_olmoe_weights_to_hf.py:97
    olmoe_config = yaml.safe_load(config_path.read_text())["model"]

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #2d2f3d8210578d63 Filesystem access.
repo/src/transformers/models/oneformer/image_processing_oneformer.py:95
    with open(fname, "r") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #0ecba2a378d5bfd5 Filesystem access.
repo/src/transformers/models/oneformer/image_processing_pil_oneformer.py:241
    with open(fname, "r") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #40334cb6d315fb42 Filesystem access.
repo/src/transformers/models/openai/convert_openai_original_tf_checkpoint_to_pytorch.py:41
    with open(openai_checkpoint_folder_path + "/parameters_names.json", "r", encoding="utf-8") as names_handle:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #ad0a2b427993d5be Filesystem access.
repo/src/transformers/models/openai/convert_openai_original_tf_checkpoint_to_pytorch.py:43
    with open(openai_checkpoint_folder_path + "/params_shapes.json", "r", encoding="utf-8") as shapes_handle:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #5c80624f9f6c22f4 Filesystem access.
repo/src/transformers/models/openai/convert_openai_original_tf_checkpoint_to_pytorch.py:125
    with open(pytorch_config_dump_path, "w", encoding="utf-8") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #ab438d96b8cd11c1 Filesystem access.
repo/src/transformers/models/openai_privacy_filter/convert_openai_privacy_filter_weights_to_hf.py:245
    original_config = json.loads((input_path / "config.json").read_text())

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #ad73bd5705d664d9 Filesystem access.
repo/src/transformers/models/parakeet/convert_nemo_to_hf.py:515
    nemo_config = yaml.load(open(model_files["model_config"], "r"), Loader=yaml.FullLoader)

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #06ef8d89664f207d Environment-variable access.
repo/src/transformers/models/perceiver/convert_perceiver_haiku_to_pytorch.py:271
    if not strtobool(os.environ.get("TRUST_REMOTE_CODE", "False")):

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #877ad6a9806d5335 Filesystem access.
repo/src/transformers/models/perceiver/convert_perceiver_haiku_to_pytorch.py:280
    with open(pickle_file, "rb") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #5bd2658d39a8e453 Filesystem access.
repo/src/transformers/models/perceiver/convert_perceiver_haiku_to_pytorch.py:331
        id2label = json.load(open(hf_hub_download(repo_id, filename, repo_type="dataset"), "r"))

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #8c18480599ba7572 Filesystem access.
repo/src/transformers/models/perceiver/convert_perceiver_haiku_to_pytorch.py:380
        id2label = json.load(open(hf_hub_download(repo_id, filename, repo_type="dataset"), "r"))

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #70c3c5473f4d0f23 Filesystem access.
repo/src/transformers/models/perception_lm/convert_perception_lm_weights_to_hf.py:176
    with open(path, "r") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #a48880e322ceee15 Filesystem access.
repo/src/transformers/models/perception_lm/convert_perception_lm_weights_to_hf.py:181
    with open(path, "w") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #d453089a02992fb0 Filesystem access.
repo/src/transformers/models/phi4_multimodal/convert_phi4_multimodal_weights_to_hf.py:139
    with open(path, "r") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #46dede17f50b7209 Filesystem access.
repo/src/transformers/models/phi4_multimodal/convert_phi4_multimodal_weights_to_hf.py:196
    vocab = json.load(open(f"{output_dir}/vocab.json", "r"))

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #c525b8476a93c80f Filesystem access.
repo/src/transformers/models/phi4_multimodal/convert_phi4_multimodal_weights_to_hf.py:199
    json.dump(vocab, open(f"{output_dir}/vocab.json", "w"))

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #94a4a22250795d0b Filesystem access.
repo/src/transformers/models/phi4_multimodal/convert_phi4_multimodal_weights_to_hf.py:201
    tokenizer = json.load(open(f"{output_dir}/tokenizer.json", "r"))

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #ef643bb39b520113 Filesystem access.
repo/src/transformers/models/phi4_multimodal/convert_phi4_multimodal_weights_to_hf.py:208
    json.dump(tokenizer, open(f"{output_dir}/tokenizer.json", "w"))

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #25d861d835f042ef Filesystem access.
repo/src/transformers/models/phi4_multimodal/convert_phi4_multimodal_weights_to_hf.py:210
    tokenizer_config = json.load(open(f"{output_dir}/tokenizer_config.json", "r"))

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #924c08b4af274ef7 Filesystem access.
repo/src/transformers/models/phi4_multimodal/convert_phi4_multimodal_weights_to_hf.py:213
    json.dump(tokenizer_config, open(f"{output_dir}/tokenizer_config.json", "w"))

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #ba6ce68ab7816c7e Filesystem access.
repo/src/transformers/models/phobert/tokenization_phobert.py:126
        with open(merges_file, encoding="utf-8") as merges_handle:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #10ca754b78f1ed01 Filesystem access.
repo/src/transformers/models/phobert/tokenization_phobert.py:310
            with open(out_vocab_file, "wb") as fi:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #9c84f0d631a4c8db Filesystem access.
repo/src/transformers/models/phobert/tokenization_phobert.py:331
                with open(f, "r", encoding="utf-8") as fd:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #2ee8fe8d5ecee59c Filesystem access.
repo/src/transformers/models/pixtral/convert_pixtral_weights_to_hf.py:147
        with open(f"{input_dir}/params.json") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #f8207f65dab0685d Filesystem access.
repo/src/transformers/models/pixtral/convert_pixtral_weights_to_hf.py:239
        processor.chat_template = open(args.chat_template_file).read()

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #e547afa36abcf50b Filesystem access.
repo/src/transformers/models/poolformer/convert_poolformer_original_to_pytorch.py:109
    id2label = json.load(open(hf_hub_download(repo_id, filename, repo_type="dataset"), "r"))

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #d883843c0b64840d Filesystem access.
repo/src/transformers/models/pop2piano/convert_pop2piano_weights_to_hf.py:189
with open("./vocab.json", "w") as file:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #6e708f634bf10b6b Filesystem access.
repo/src/transformers/models/pop2piano/tokenization_pop2piano.py:111
        with open(vocab, "rb") as file:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #173b6dcc4bc92285 Filesystem access.
repo/src/transformers/models/pop2piano/tokenization_pop2piano.py:358
        with open(out_vocab_file, "w") as file:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #72c5e4800438cf02 Filesystem access.
repo/src/transformers/models/prophetnet/tokenization_prophetnet.py:259
    with open(vocab_file, "r", encoding="utf-8") as reader:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #5e13cfefdf29cfba Filesystem access.
repo/src/transformers/models/prophetnet/tokenization_prophetnet.py:438
        with open(vocab_file, "w", encoding="utf-8") as writer:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #52b90e94847a1968 Filesystem access.
repo/src/transformers/models/qwen3_asr/convert_qwen3_asr_to_hf.py:110
    with open(config_path, "r") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #e39918e2c894016e Filesystem access.
repo/src/transformers/models/qwen3_asr/convert_qwen3_asr_to_hf.py:125
    with open(config_path, "r") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #9394a66ca947ad18 Filesystem access.
repo/src/transformers/models/qwen3_asr/convert_qwen3_asr_to_hf.py:236
            with open(chat_template_file, "r", encoding="utf-8") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #cfede16e388cb5ca Environment-variable access.
repo/src/transformers/models/rag/retrieval_rag.py:134
        if not strtobool(os.environ.get("TRUST_REMOTE_CODE", "False")):

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #f323994be8098530 Filesystem access.
repo/src/transformers/models/rag/retrieval_rag.py:141
        with open(passages_path, "rb") as passages_file:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #af097ee4f19cc6ae Environment-variable access.
repo/src/transformers/models/rag/retrieval_rag.py:150
        if not strtobool(os.environ.get("TRUST_REMOTE_CODE", "False")):

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #7c0b64a0488dc3eb Filesystem access.
repo/src/transformers/models/rag/retrieval_rag.py:157
        with open(resolved_meta_path, "rb") as metadata_file:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #bb3b0ba2568bc12e Environment-variable access.
repo/src/transformers/models/reformer/convert_reformer_trax_checkpoint_to_pytorch.py:193
    if not strtobool(os.environ.get("TRUST_REMOTE_CODE", "False")):

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #d44348b1a3f495c1 Filesystem access.
repo/src/transformers/models/reformer/convert_reformer_trax_checkpoint_to_pytorch.py:200
    with open(trax_model_pkl_path, "rb") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #12788a3f2869f7da Filesystem access.
repo/src/transformers/models/regnet/convert_regnet_seer_10b_to_pytorch.py:165
    id2label = json.loads(Path(hf_hub_download(repo_id, filename, repo_type="dataset")).read_text())

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #5f85fedf28747f95 Environment-variable access.
repo/src/transformers/models/regnet/convert_regnet_seer_10b_to_pytorch.py:236
        logger.info(f"Token is {os.environ['HF_TOKEN']}")

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #edb844b68cd83737 Filesystem access.
repo/src/transformers/models/regnet/convert_regnet_to_pytorch.py:218
    id2label = json.loads(Path(hf_hub_download(repo_id, filename, repo_type="dataset")).read_text())

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #bfb4c10bd2d124eb Filesystem access.
repo/src/transformers/models/resnet/convert_resnet_to_pytorch.py:121
    id2label = json.load(open(hf_hub_download(repo_id, filename, repo_type="dataset"), "r"))

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #b578a70a90245d47 Filesystem access.
repo/src/transformers/models/rf_detr/convert_rf_detr_weights_to_hf.py:154
        id2label = json.load(open(hf_hub_download(repo_id, filename, repo_type="dataset"), "r"))

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #cc2ce6f18347a5a1 Filesystem access.
repo/src/transformers/models/roc_bert/tokenization_roc_bert.py:52
    with open(vocab_file, "r", encoding="utf-8") as reader:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #c8ee0dfbe2d5e0b3 Filesystem access.
repo/src/transformers/models/roc_bert/tokenization_roc_bert.py:139
        with open(word_shape_file, "r", encoding="utf8") as in_file:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #016bcaf849302c5c Filesystem access.
repo/src/transformers/models/roc_bert/tokenization_roc_bert.py:142
        with open(word_pronunciation_file, "r", encoding="utf8") as in_file:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #fa9cf3a7061f8599 Filesystem access.
repo/src/transformers/models/roc_bert/tokenization_roc_bert.py:1077
        with open(vocab_file, "w", encoding="utf-8") as writer:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #c4df513da6acfc80 Filesystem access.
repo/src/transformers/models/roc_bert/tokenization_roc_bert.py:1088
        with open(word_shape_file, "w", encoding="utf8") as writer:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #019e370e6f86a7f2 Filesystem access.
repo/src/transformers/models/roc_bert/tokenization_roc_bert.py:1091
        with open(word_pronunciation_file, "w", encoding="utf8") as writer:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #28a01d1cf42811b3 Filesystem access.
repo/src/transformers/models/rt_detr/convert_rt_detr_original_pytorch_checkpoint_to_hf.py:41
    id2label = json.load(open(hf_hub_download(repo_id, filename, repo_type="dataset"), "r"))

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #e650b2b4b958c4e3 Filesystem access.
repo/src/transformers/models/rt_detr_v2/convert_rt_detr_v2_weights_to_hf.py:42
    id2label = json.load(open(hf_hub_download(repo_id, filename, repo_type="dataset"), "r"))

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #67d7134fd9ca493c Filesystem access.
repo/src/transformers/models/rwkv/convert_rwkv_checkpoint_to_hf.py:134
        with open(save_index_file, "w", encoding="utf-8") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #a4b510e77efa5779 Environment-variable access.
repo/src/transformers/models/seamless_m4t/convert_fairseq2_to_hf.py:132
CACHE_DIR = os.path.join(os.getenv("XDG_CACHE_HOME", default_cache_dir), "huggingface", "hub")

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #3c77a6bdee5f9d66 Environment-variable access.
repo/src/transformers/models/seamless_m4t_v2/convert_fairseq2_to_hf.py:149
CACHE_DIR = os.path.join(os.getenv("XDG_CACHE_HOME", default_cache_dir), "huggingface", "hub")

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #4fb3fee2d90e6aeb Filesystem access.
repo/src/transformers/models/segformer/convert_segformer_original_to_pytorch.py:153
    id2label = json.load(open(hf_hub_download(repo_id, filename, repo_type="dataset"), "r"))

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #81874b2b6827fe92 Filesystem access.
repo/src/transformers/models/sew/convert_sew_original_pytorch_checkpoint_to_pytorch.py:268
            with open(vocab_path, "w", encoding="utf-8") as vocab_handle:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #546d113b2a173253 Filesystem access.
repo/src/transformers/models/sew_d/convert_sew_d_original_pytorch_checkpoint_to_pytorch.py:280
            with open(vocab_path, "w", encoding="utf-8") as vocab_handle:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #90a39d4d82545881 Filesystem access.
repo/src/transformers/models/siglip/tokenization_siglip.py:345
            with open(out_vocab_file, "wb") as fi:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #24b7a425871896e5 Filesystem access.
repo/src/transformers/models/speech_encoder_decoder/convert_speech_to_text_wav2vec2_seq2seq_original_to_pytorch.py:195
    with open(dict_path, "r", encoding="utf-8") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #d1f01b2808f86fbb Filesystem access.
repo/src/transformers/models/speech_encoder_decoder/convert_speech_to_text_wav2vec2_seq2seq_original_to_pytorch.py:267
    with open(os.path.join(pytorch_dump_folder_path, "vocab.json"), "w") as fp:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #ce3ef9ba9b009b9f Filesystem access.
repo/src/transformers/models/speech_to_text/tokenization_speech_to_text.py:271
            with open(spm_save_path, "wb") as fi:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #d08b40ad33bc9d9f Filesystem access.
repo/src/transformers/models/speech_to_text/tokenization_speech_to_text.py:285
    with open(path, "r") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #804587aae625b050 Filesystem access.
repo/src/transformers/models/speech_to_text/tokenization_speech_to_text.py:290
    with open(path, "w") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #847e8b22f0ad90f0 Filesystem access.
repo/src/transformers/models/splinter/tokenization_splinter.py:33
    with open(vocab_file, "r", encoding="utf-8") as reader:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #162f9e2f13e014c1 Filesystem access.
repo/src/transformers/models/swiftformer/convert_swiftformer_original_to_hf.py:102
    id2label = json.load(open(hf_hub_download(repo_id, filename, repo_type="dataset"), "r"))

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #2e68e891f037bcc8 Filesystem access.
repo/src/transformers/models/swin/convert_swin_timm_to_pytorch.py:45
        id2label = json.load(open(hf_hub_download(repo_id, filename, repo_type="dataset"), "r"))

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #223b8634594394ef Filesystem access.
repo/src/transformers/models/swinv2/convert_swinv2_timm_to_pytorch.py:67
        id2label = json.load(open(hf_hub_download(repo_id, filename, repo_type="dataset"), "r"))

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #d6a1138336fcee6c Filesystem access.
repo/src/transformers/models/swinv2/convert_swinv2_timm_to_pytorch.py:76
        id2label = json.load(open(hf_hub_download(repo_id, filename, repo_type="dataset"), "r"))

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #cf09c3b42529d66a Filesystem access.
repo/src/transformers/models/switch_transformers/convert_big_switch.py:145
    with open(os.path.join(dump_path, WEIGHTS_INDEX_NAME), "w", encoding="utf-8") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #24df3ca1ef5a3dda Filesystem access.
repo/src/transformers/models/switch_transformers/convert_switch_transformers_original_flax_checkpoint_to_pytorch.py:267
    with open(gin_file, "r") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #83a965b89ad521b2 Filesystem access.
repo/src/transformers/models/tapas/tokenization_tapas.py:91
    with open(vocab_file, "r", encoding="utf-8") as reader:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #f959b6e1a1fbe951 Filesystem access.
repo/src/transformers/models/tapas/tokenization_tapas.py:394
        with open(vocab_file, "w", encoding="utf-8") as writer:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low egress production #9a1df42267a7a913 Outbound request to a variable or assembled URL on a network client. Review what data is sent to this destination.
repo/src/transformers/models/textnet/convert_textnet_to_hf.py:44
    config_dict = httpx.get(size_config_url).json()

Data is sent to a hardcoded external endpoint; review what leaves the process.

Fix: Verify the destination and that only non-sensitive data is sent; pin and audit the dependency.

low env_fs production #3276e6b484bf6554 Filesystem access.
repo/src/transformers/models/textnet/convert_textnet_to_hf.py:119
    with open(config_filepath) as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #f4c4ff46b15a1189 Filesystem access.
repo/src/transformers/models/timesformer/convert_timesformer_to_pytorch.py:49
    id2label = json.load(open(hf_hub_download(repo_id, filename, repo_type="dataset"), "r"))

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #7fb81083c20ffcd8 Filesystem access.
repo/src/transformers/models/unispeech/convert_unispeech_original_pytorch_checkpoint_to_pytorch.py:220
            with open(vocab_path, "w", encoding="utf-8") as vocab_handle:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #ee05308af0150e8a Filesystem access.
repo/src/transformers/models/upernet/convert_convnext_upernet_to_pytorch.py:53
    id2label = json.load(open(hf_hub_download(repo_id, filename, repo_type="dataset"), "r"))

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #7c09462b39d8f5d6 Filesystem access.
repo/src/transformers/models/upernet/convert_swin_upernet_to_pytorch.py:59
    id2label = json.load(open(hf_hub_download(repo_id, filename, repo_type="dataset"), "r"))

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #8fc08d82673617a6 Filesystem access.
repo/src/transformers/models/vibevoice_acoustic_tokenizer/convert_vibevoice_acoustic_tokenizer_to_hf.py:113
        with open(processor_config, "r") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #72d2ba948b4e2c19 Filesystem access.
repo/src/transformers/models/vibevoice_acoustic_tokenizer/convert_vibevoice_acoustic_tokenizer_to_hf.py:127
    with open(config_path, "r") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #e987a6cdaafa4be0 Filesystem access.
repo/src/transformers/models/vibevoice_asr/convert_vibevoice_asr_to_hf.py:126
    with open(index_path, "r") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #34dddbcad4ee9d54 Filesystem access.
repo/src/transformers/models/vibevoice_asr/convert_vibevoice_asr_to_hf.py:149
        with open(config_path, "r") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #cca67d3ffab6a5d0 Filesystem access.
repo/src/transformers/models/videomae/convert_videomae_to_pytorch.py:50
        id2label = json.load(open(hf_hub_download(repo_id, filename, repo_type="dataset"), "r"))

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #ca5ded2aa44f02d6 Filesystem access.
repo/src/transformers/models/videoprism/convert_videoprism_weights_to_hf.py:391
        with open(spiece_path, "wb") as f_out:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #f4bf4fa4abccea2f Filesystem access.
repo/src/transformers/models/vilt/convert_vilt_original_to_pytorch.py:184
        id2label = json.load(open(hf_hub_download(repo_id, filename, repo_type="dataset"), "r"))

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #c8e0c4608ba76e68 Filesystem access.
repo/src/transformers/models/vit/convert_dino_to_pytorch.py:147
        id2label = json.load(open(hf_hub_download(repo_id, filename, repo_type="dataset"), "r"))

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #510228afe48e0af1 Filesystem access.
repo/src/transformers/models/vit_msn/convert_msn_to_pytorch.py:154
    id2label = json.load(open(hf_hub_download(repo_id, filename), "r"))

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #efeb360b7830ec6b Filesystem access.
repo/src/transformers/models/vits/convert_original_checkpoint.py:309
        with open(config_file, "r") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #a6f2ccc55b743af1 Filesystem access.
repo/src/transformers/models/vits/convert_original_checkpoint.py:331
        symbols = [line.replace("\n", "") for line in open(vocab_path, encoding="utf-8")]

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #f289a680340e4087 Filesystem access.
repo/src/transformers/models/vits/convert_original_checkpoint.py:338
        with open(tf.name, "w", encoding="utf-8") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #054ab3023a27ba07 Filesystem access.
repo/src/transformers/models/vits/tokenization_vits.py:83
        with open(vocab_file, encoding="utf-8") as vocab_handle:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #2b826a54d3deb194 Filesystem access.
repo/src/transformers/models/vits/tokenization_vits.py:242
        with open(vocab_file, "w", encoding="utf-8") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #07eb4be627923975 Filesystem access.
repo/src/transformers/models/vivit/convert_vivit_flax_to_pytorch.py:36
    with open(path, "wb") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #7bbe6e22dd3f25d7 Filesystem access.
repo/src/transformers/models/vivit/convert_vivit_flax_to_pytorch.py:49
    id2label = json.load(open(hf_hub_download(repo_id, filename, repo_type="dataset"), "r"))

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #1a49d2a2aebafa45 Filesystem access.
repo/src/transformers/models/vjepa2/convert_vjepa2_classifier_to_hf.py:99
    with open(path, "r") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #dc1cd94cd9d70635 Environment-variable access.
repo/src/transformers/models/vjepa2/convert_vjepa2_to_hf.py:48
TOKEN = os.environ.get("HF_TOKEN", None)

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #e8d6a697ea7a0ca9 Filesystem access.
repo/src/transformers/models/voxtral/convert_voxtral_weights_to_hf.py:187
    with open(config_path, "r") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #0e7ddf86049c2c97 Filesystem access.
repo/src/transformers/models/voxtral_realtime/convert_voxtral_realtime_weights_to_hf.py:242
    with open(config_path, "r") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #60906aa0baefc59c Filesystem access.
repo/src/transformers/models/wav2vec2/convert_wav2vec2_original_pytorch_checkpoint_to_pytorch.py:75
    with open(filename, "r") as file:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #a681fb2b68563192 Filesystem access.
repo/src/transformers/models/wav2vec2/convert_wav2vec2_original_pytorch_checkpoint_to_pytorch.py:317
            with open(vocab_path, "w", encoding="utf-8") as vocab_handle:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #89115827c652722e Filesystem access.
repo/src/transformers/models/wav2vec2/tokenization_wav2vec2.py:154
        with open(vocab_file, encoding="utf-8") as vocab_handle:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #f96f65547670382a Filesystem access.
repo/src/transformers/models/wav2vec2/tokenization_wav2vec2.py:647
        with open(vocab_file, "w", encoding="utf-8") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #2d3ad8033e42932f Filesystem access.
repo/src/transformers/models/wav2vec2_conformer/convert_wav2vec2_conformer_original_pytorch_checkpoint_to_pytorch.py:253
            with open(vocab_path, "w", encoding="utf-8") as vocab_handle:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #f17d2811abde5312 Filesystem access.
repo/src/transformers/models/wav2vec2_phoneme/tokenization_wav2vec2_phoneme.py:138
        with open(vocab_file, encoding="utf-8") as vocab_handle:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #b2d21cf6016c41ed Filesystem access.
repo/src/transformers/models/wav2vec2_phoneme/tokenization_wav2vec2_phoneme.py:575
        with open(vocab_file, "w", encoding="utf-8") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #5f8a9920fddfb677 Filesystem access.
repo/src/transformers/models/whisper/convert_openai_to_hf.py:158
        model_bytes = open(download_target, "rb").read()

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low egress production #92ee24a3d21d2ff2 Outbound request to a variable or assembled URL on a network client. Review what data is sent to this destination.
repo/src/transformers/models/whisper/convert_openai_to_hf.py:164
    with urllib.request.urlopen(url) as source, open(download_target, "wb") as output:

Data is sent to a hardcoded external endpoint; review what leaves the process.

Fix: Verify the destination and that only non-sensitive data is sent; pin and audit the dependency.

low env_fs production #b3b66700845137a3 Filesystem access.
repo/src/transformers/models/whisper/convert_openai_to_hf.py:164
    with urllib.request.urlopen(url) as source, open(download_target, "wb") as output:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #760af9ca0094acb5 Filesystem access.
repo/src/transformers/models/whisper/convert_openai_to_hf.py:176
    model_bytes = open(download_target, "rb").read()

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #174506c89a749502 Filesystem access.
repo/src/transformers/models/whisper/convert_openai_to_hf.py:315
        with open(vocab_file, "w", encoding="utf-8") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #6963e940648101a7 Filesystem access.
repo/src/transformers/models/whisper/convert_openai_to_hf.py:318
        with open(merge_file, "w", encoding="utf-8") as writer:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #011ff64227fe4b16 Filesystem access.
repo/src/transformers/models/whisper/tokenization_whisper.py:266
            with open(normalizer_file, encoding="utf-8") as vocab_handle:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #fff5880243f4f848 Filesystem access.
repo/src/transformers/models/whisper/tokenization_whisper.py:560
        with open(vocab_file, "w", encoding="utf-8") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #30b643d87874490e Filesystem access.
repo/src/transformers/models/whisper/tokenization_whisper.py:563
        with open(merge_file, "w", encoding="utf-8") as writer:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #e32418dbe2dcfeb0 Filesystem access.
repo/src/transformers/models/whisper/tokenization_whisper.py:568
            with open(normalizer_file, "w", encoding="utf-8") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #52287404c5aba9eb Filesystem access.
repo/src/transformers/models/xcodec/convert_xcodec_weights_to_hf.py:186
    with open(config_path, "r") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #1785856fd23fa7f9 Filesystem access.
repo/src/transformers/models/xcodec2/convert_xcodec2_checkpoint.py:224
        with open(config_path, "r") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #b976f181f966c837 Filesystem access.
repo/src/transformers/models/xlm/convert_xlm_original_pytorch_checkpoint_to_pytorch.py:58
    with open(pytorch_config_dump_path, "w", encoding="utf-8") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #d603736645d62ee9 Filesystem access.
repo/src/transformers/models/xlm/convert_xlm_original_pytorch_checkpoint_to_pytorch.py:62
    with open(pytorch_vocab_dump_path, "w", encoding="utf-8") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #0437091deb681e6b Filesystem access.
repo/src/transformers/models/xlm/tokenization_xlm.py:244
        with open(vocab_file, encoding="utf-8") as vocab_handle:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #39ffd7003b14524b Filesystem access.
repo/src/transformers/models/xlm/tokenization_xlm.py:247
        with open(merges_file, encoding="utf-8") as merges_handle:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #cfac991904660429 Filesystem access.
repo/src/transformers/models/xlm/tokenization_xlm.py:541
        with open(vocab_file, "w", encoding="utf-8") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #c2c722068747ba78 Filesystem access.
repo/src/transformers/models/xlm/tokenization_xlm.py:545
        with open(merge_file, "w", encoding="utf-8") as writer:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #1bdbddfcbb122696 Filesystem access.
repo/src/transformers/models/xlnet/convert_xlnet_original_tf_checkpoint_to_pytorch.py:224
    with open(pytorch_config_dump_path, "w", encoding="utf-8") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #d27e1bbd4c9a8413 Filesystem access.
repo/src/transformers/models/yolos/convert_yolos_to_pytorch.py:61
    id2label = json.load(open(hf_hub_download(repo_id, filename, repo_type="dataset"), "r"))

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #01bedfd136c91680 Filesystem access.
repo/src/transformers/models/zaya/convert_zaya_weights_to_hf.py:171
    config_dict = json.loads((input_dir / "config.json").read_text())

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #ea5630fc61cd6ef5 Filesystem access.
repo/src/transformers/models/zaya/convert_zaya_weights_to_hf.py:249
    index = json.loads((input_dir / "model.safetensors.index.json").read_text())

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #a32b66c00e91e05c Filesystem access.
repo/src/transformers/models/zaya/convert_zaya_weights_to_hf.py:251
    old_num_hidden_layers = int(json.loads((input_dir / "config.json").read_text())["num_hidden_layers"])

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #7b1a59a99fcad541 Filesystem access.
repo/src/transformers/models/zaya/convert_zaya_weights_to_hf.py:296
        old_num_hidden_layers = int(json.loads((input_dir / "config.json").read_text())["num_hidden_layers"])

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #37dcc20243df6dd9 Filesystem access.
repo/src/transformers/models/zaya/convert_zaya_weights_to_hf.py:313
    old_index = json.loads(index_path.read_text())

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #12b6a8e8e374cf91 Filesystem access.
repo/src/transformers/models/zaya/convert_zaya_weights_to_hf.py:346
    (output_dir / "model.safetensors.index.json").write_text(
        json.dumps(converted_index, indent=2, sort_keys=True) + "\n"
    )

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #bfb48908fae09a1f Filesystem access.
repo/src/transformers/pipelines/__init__.py:921
                with open(maybe_adapter_path, "r", encoding="utf-8") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low egress production #700413d4fd4108fd Outbound request to a variable or assembled URL on a network client. Review what data is sent to this destination.
repo/src/transformers/pipelines/audio_classification.py:172
                inputs = httpx.get(inputs, follow_redirects=True).content

Data is sent to a hardcoded external endpoint; review what leaves the process.

Fix: Verify the destination and that only non-sensitive data is sent; pin and audit the dependency.

low env_fs production #6e2edd4f4d8f0bec Filesystem access.
repo/src/transformers/pipelines/audio_classification.py:174
                with open(inputs, "rb") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low egress production #dfc7c4c6a123dbb4 Outbound request to a variable or assembled URL on a network client. Review what data is sent to this destination.
repo/src/transformers/pipelines/automatic_speech_recognition.py:350
                inputs = httpx.get(inputs, follow_redirects=True).content

Data is sent to a hardcoded external endpoint; review what leaves the process.

Fix: Verify the destination and that only non-sensitive data is sent; pin and audit the dependency.

low env_fs production #504cf406e846ca2c Filesystem access.
repo/src/transformers/pipelines/automatic_speech_recognition.py:352
                with open(inputs, "rb") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #3fa87e44070e4e8f Filesystem access.
repo/src/transformers/pipelines/base.py:464
        with open(binary_path, "wb+") as f_output:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #ec9acace5d12ee7a Filesystem access.
repo/src/transformers/pipelines/base.py:527
        with open(self.input_path, "r") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #00fb6ee6b108abb8 Filesystem access.
repo/src/transformers/pipelines/base.py:542
        with open(self.output_path, "w") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #fa52b20ae08ce4ab Filesystem access.
repo/src/transformers/pipelines/base.py:570
        with open(input_path, "r") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #7a90451a8a79def7 Filesystem access.
repo/src/transformers/pipelines/base.py:587
        with open(self.output_path, "w") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #c1c7b7947b5c84d4 Environment-variable access.
repo/src/transformers/pipelines/base.py:1200
        if "TOKENIZERS_PARALLELISM" not in os.environ:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #3af12b88c9c381ef Environment-variable access.
repo/src/transformers/pipelines/base.py:1202
            os.environ["TOKENIZERS_PARALLELISM"] = "false"

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #342c3c98b43092ce Environment-variable access.
repo/src/transformers/pipelines/base.py:1321
        if "TOKENIZERS_PARALLELISM" not in os.environ:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #eed4d797d13a4aed Environment-variable access.
repo/src/transformers/pipelines/base.py:1323
            os.environ["TOKENIZERS_PARALLELISM"] = "false"

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low egress production #aed02666756f5476 Outbound request to a variable or assembled URL on a network client. Review what data is sent to this destination.
repo/src/transformers/pipelines/video_classification.py:154
                video = BytesIO(httpx.get(video, follow_redirects=True).content)

Data is sent to a hardcoded external endpoint; review what leaves the process.

Fix: Verify the destination and that only non-sensitive data is sent; pin and audit the dependency.

low egress production #5570f923ca9c49bd Outbound request to a variable or assembled URL on a network client. Review what data is sent to this destination.
repo/src/transformers/pipelines/zero_shot_audio_classification.py:109
                audio = httpx.get(audio, follow_redirects=True).content

Data is sent to a hardcoded external endpoint; review what leaves the process.

Fix: Verify the destination and that only non-sensitive data is sent; pin and audit the dependency.

low env_fs production #dae49412d9aa7914 Filesystem access.
repo/src/transformers/pipelines/zero_shot_audio_classification.py:111
                with open(audio, "rb") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #9b7dfa1d262caf9e Filesystem access.
repo/src/transformers/processing_utils.py:1090
        with open(json_file_path, "w", encoding="utf-8") as writer:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #10af0c23d6363f10 Filesystem access.
repo/src/transformers/processing_utils.py:1170
            with open(output_chat_template_file_jinja, "w", encoding="utf-8") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #4e1c2ce1696d4381 Filesystem access.
repo/src/transformers/processing_utils.py:1178
                    with open(output_chat_template_file_jinja, "w", encoding="utf-8") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #8cd1b067a1c340a4 Filesystem access.
repo/src/transformers/processing_utils.py:1187
                    with open(template_filepath, "w", encoding="utf-8") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #44a0c0ab65743381 Filesystem access.
repo/src/transformers/processing_utils.py:1375
            with open(resolved_chat_template_file, encoding="utf-8") as reader:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #df33384a82b8de25 Filesystem access.
repo/src/transformers/processing_utils.py:1387
                template_name: open(template_file, "r", encoding="utf-8").read()

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #5cb21bf83b738c46 Filesystem access.
repo/src/transformers/processing_utils.py:1391
                with open(resolved_raw_chat_template_file, "r", encoding="utf-8") as reader:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #9f12759862ed44bc Filesystem access.
repo/src/transformers/processing_utils.py:1406
                with open(resolved_processor_file, encoding="utf-8") as reader:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #099b7d22fbdbccb8 Filesystem access.
repo/src/transformers/processing_utils.py:1432
                reader = open(resolved_audio_tokenizer_file, "r", encoding="utf-8")

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low egress production #72a8619e0189f1b4 Outbound request to a variable or assembled URL on a network client. Review what data is sent to this destination.
repo/src/transformers/safetensors_conversion.py:48
    result = httpx.post(sse_url, follow_redirects=True, json=data).json()

Data is sent to a hardcoded external endpoint; review what leaves the process.

Fix: Verify the destination and that only non-sensitive data is sent; pin and audit the dependency.

low env_fs production #b330192fb2504836 Environment-variable access.
repo/src/transformers/testing_utils.py:290
        value = os.environ[key]

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #06e632490d128137 Environment-variable access.
repo/src/transformers/testing_utils.py:306
        value = os.environ[key]

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #31b8c449ca008c66 Environment-variable access.
repo/src/transformers/testing_utils.py:1079
    if "TRANSFORMERS_TEST_BACKEND" in os.environ:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #32c1737c0f2b03dd Environment-variable access.
repo/src/transformers/testing_utils.py:1080
        backend = os.environ["TRANSFORMERS_TEST_BACKEND"]

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #ed2252b52b4d6324 Environment-variable access.
repo/src/transformers/testing_utils.py:1089
    if "TRANSFORMERS_TEST_DEVICE" in os.environ:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #fce847d0b8fe3081 Environment-variable access.
repo/src/transformers/testing_utils.py:1090
        torch_device = os.environ["TRANSFORMERS_TEST_DEVICE"]

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #bbe21a6a6a807f66 Environment-variable access.
repo/src/transformers/testing_utils.py:2161
        env = os.environ.copy()

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #59de58bc8ff7c82d Environment-variable access.
repo/src/transformers/testing_utils.py:2283
            for k in list(os.environ.keys()):

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #7427df2d23b86421 Environment-variable access.
repo/src/transformers/testing_utils.py:2285
                    del os.environ[k]

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #a0c2039ef3ecd65f Environment-variable access.
repo/src/transformers/testing_utils.py:2296
    return mock.patch.dict(os.environ, kwargs)

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #f99a39ff9891dcb1 Environment-variable access.
repo/src/transformers/testing_utils.py:2311
    env = os.environ

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #e7d470d321f573ae Filesystem access.
repo/src/transformers/testing_utils.py:2413
        with open(report_files["durations"], "w") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #df6a5077d9fcb3a8 Filesystem access.
repo/src/transformers/testing_utils.py:2443
    with open(report_files["failures_long"], "w") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #deca77423725bd9c Filesystem access.
repo/src/transformers/testing_utils.py:2448
    with open(report_files["failures_short"], "w") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #c14ec54b1356a1bc Filesystem access.
repo/src/transformers/testing_utils.py:2453
    with open(report_files["failures_line"], "w") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #728de282e025c3a2 Filesystem access.
repo/src/transformers/testing_utils.py:2457
    with open(report_files["errors"], "w") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #056d29bb692e42b1 Filesystem access.
repo/src/transformers/testing_utils.py:2461
    with open(report_files["warnings"], "w") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #7b65260595c0dc02 Filesystem access.
repo/src/transformers/testing_utils.py:2475
    with open(report_files["summary_short"], "w") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #81381181d55d6965 Filesystem access.
repo/src/transformers/testing_utils.py:2479
    with open(report_files["stats"], "w") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #f07054c678e87a38 Environment-variable access.
repo/src/transformers/testing_utils.py:2579
    worker = os.environ.get("PYTEST_XDIST_WORKER", "gw0")

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #babbb8fcfa85e3bb Filesystem access.
repo/src/transformers/testing_utils.py:2626
    with open(file_path) as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #76897a2bfbdbe7f9 Environment-variable access.
repo/src/transformers/testing_utils.py:2828
        timeout = int(os.environ.get("PYTEST_TIMEOUT", "600"))

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #d083d83946f3ceac Environment-variable access.
repo/src/transformers/testing_utils.py:2864
        if os.getenv("_INSIDE_SUB_PROCESS", None) == "1":

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #5bcd59938dab4f7c Environment-variable access.
repo/src/transformers/testing_utils.py:2867
            test = " ".join(os.environ.get("PYTEST_CURRENT_TEST").split(" ")[:-1])

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #d8d5e573d505d504 Environment-variable access.
repo/src/transformers/testing_utils.py:2869
                env = copy.deepcopy(os.environ)

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #c21a1693b5c33077 Environment-variable access.
repo/src/transformers/testing_utils.py:2986
    skip_cuda_tests: bool = os.environ.get("SKIP_CUDA_DOCTEST", "0") == "1"

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #6e0d1dfb23004d5f Environment-variable access.
repo/src/transformers/testing_utils.py:3224
    if "TRANSFORMERS_TEST_DEVICE_SPEC" in os.environ:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #6cbd13146e612b0d Environment-variable access.
repo/src/transformers/testing_utils.py:3225
        device_spec_path = os.environ["TRANSFORMERS_TEST_DEVICE_SPEC"]

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #207880f89b0e0fa6 Environment-variable access.
repo/src/transformers/testing_utils.py:3248
        if "TRANSFORMERS_TEST_DEVICE" in os.environ and torch_device != device_name:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #6a3e6806c08cc722 Environment-variable access.
repo/src/transformers/testing_utils.py:3449
    force_fullgraph = os.environ.get("TORCH_COMPILE_FORCE_FULLGRAPH", "")

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #e9eec07afda74a6b Environment-variable access.
repo/src/transformers/testing_utils.py:3472
    full_test_name = os.environ.get("PYTEST_CURRENT_TEST", "").split(" ")[0]

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #e0b000870fb1d7f1 Filesystem access.
repo/src/transformers/testing_utils.py:3552
    with open(actual_test_file) as fp:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #439e21c152193781 Filesystem access.
repo/src/transformers/testing_utils.py:3558
    with open(caller_path) as fp:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #b4fb7e292d6fd268 Environment-variable access.
repo/src/transformers/testing_utils.py:3646
    p = os.path.join(os.environ.get("_PATCHED_TESTING_METHODS_OUTPUT_DIR", ""), "captured_info.txt")

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #ad37d1798ab02575 Filesystem access.
repo/src/transformers/testing_utils.py:3648
    with open(p, "a") as fp:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #8c9d0aea18cab7e9 Environment-variable access.
repo/src/transformers/testing_utils.py:3765
        if not os.environ.get("PYTEST_CURRENT_TEST", ""):

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #08c75a91cb2519fc Environment-variable access.
repo/src/transformers/testing_utils.py:3802
            if os.getenv("CI") == "true":

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #0cf4f969564daa70 Environment-variable access.
repo/src/transformers/testing_utils.py:3878
    p = os.path.join(os.environ.get("_PATCHED_TESTING_METHODS_OUTPUT_DIR", ""), "captured_info.txt")

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #0d16ab51081676c5 Filesystem access.
repo/src/transformers/testing_utils.py:4232
    with open(file, "w") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #3f5acfabff055934 Filesystem access.
repo/src/transformers/testing_utils.py:4237
    with open(file, "r") as fh:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #1c71d1bb07c5e67e Filesystem access.
repo/src/transformers/testing_utils.py:4473
            with open(path) as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #80a3da2aa46f598d Filesystem access.
repo/src/transformers/testing_utils.py:4482
            with open(new_path, "w") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #5d4ee95a1a77a31c Filesystem access.
repo/src/transformers/tokenization_python.py:1397
        with open(vocab_file, "w", encoding="utf-8") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #9691665010b25c45 Filesystem access.
repo/src/transformers/tokenization_python.py:1406
        with open(merge_file, "w", encoding="utf-8") as writer:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #76a7240760f68c0d Filesystem access.
repo/src/transformers/tokenization_utils_base.py:1661
                    with open(resolved_config_file, encoding="utf-8") as reader:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #6c390253f498cc56 Filesystem access.
repo/src/transformers/tokenization_utils_base.py:1780
            with open(tokenizer_config_file, encoding="utf-8") as tokenizer_config_handle:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #60acc0ee592fb537 Filesystem access.
repo/src/transformers/tokenization_utils_base.py:1799
            with open(chat_template_file, encoding="utf-8") as chat_template_handle:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #bf5a497093f9abab Filesystem access.
repo/src/transformers/tokenization_utils_base.py:1806
            with open(template_file) as chat_template_handle:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #ebf810ba3a19dbd9 Filesystem access.
repo/src/transformers/tokenization_utils_base.py:1875
                with open(special_tokens_map_file, encoding="utf-8") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #6156e2c84ed32c73 Filesystem access.
repo/src/transformers/tokenization_utils_base.py:1905
                with open(added_tokens_file, encoding="utf-8") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #165573476aaa0748 Filesystem access.
repo/src/transformers/tokenization_utils_base.py:1918
                with open(tokenizer_file, encoding="utf-8") as tokenizer_file_handle:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #399ef6152f4b0692 Filesystem access.
repo/src/transformers/tokenization_utils_base.py:2123
        with open(tokenizer_config_file, "w", encoding="utf-8") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #6170b1a1049f1afb Filesystem access.
repo/src/transformers/tokenization_utils_base.py:2176
            with open(added_tokens_file, "w", encoding="utf-8") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #12fcc28d9fc8c215 Filesystem access.
repo/src/transformers/tokenization_utils_base.py:3314
            with open(chat_template_file, "w", encoding="utf-8") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #3f9063734fb65b35 Filesystem access.
repo/src/transformers/tokenization_utils_base.py:3325
                    with open(chat_template_file, "w", encoding="utf-8") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #2dbf2ca6a894e602 Filesystem access.
repo/src/transformers/tokenization_utils_base.py:3335
                    with open(template_filepath, "w", encoding="utf-8") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #6fa581f495f4b44e Filesystem access.
repo/src/transformers/tokenization_utils_base.py:3608
            with open(resolved_vocab_file, "r", encoding="utf-8") as vf:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #e03dd64e05d3e6dc Filesystem access.
repo/src/transformers/tokenization_utils_base.py:3634
                with open(resolved_vocab_txt, "r", encoding="utf-8") as vf:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #4104000650e64537 Filesystem access.
repo/src/transformers/tokenization_utils_base.py:3660
            with open(resolved_merges_file, "r", encoding="utf-8") as mf:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #798703fcf030e2c7 Filesystem access.
repo/src/transformers/tokenization_utils_sentencepiece.py:260
            with open(out_vocab_file, "wb") as fi:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #57b5e72630cf15c4 Filesystem access.
repo/src/transformers/tokenization_utils_tokenizers.py:121
            with open(fast_tokenizer_file, encoding="utf-8") as tokenizer_handle:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #de9a0cc72e8d7729 Filesystem access.
repo/src/transformers/tokenization_utils_tokenizers.py:1334
                with open(_config_file, encoding="utf-8") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #6a7b14600c7c0c3d Environment-variable access.
repo/src/transformers/trainer.py:2465
                model, device_ids=[int(os.getenv("SMDATAPARALLEL_LOCAL_RANK"))]

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #8aee0976899ffa8c Filesystem access.
repo/src/transformers/trainer.py:4021
        with open(model_card_filepath, "w") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #4cd5da13bbff475c Filesystem access.
repo/src/transformers/trainer.py:4126
                with open(index_path) as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #ba7544faf596f165 Filesystem access.
repo/src/transformers/trainer_callback.py:146
        with open(json_path, "w", encoding="utf-8") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #a144d949f1abef50 Filesystem access.
repo/src/transformers/trainer_callback.py:152
        with open(json_path, encoding="utf-8") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #ec5ce6b1f86e6acd Filesystem access.
repo/src/transformers/trainer_jit_checkpoint.py:60
            with open(sentinel_file, "w") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #9ec057175cc3dbf7 Filesystem access.
repo/src/transformers/trainer_pt_utils.py:943
    with open(path, "w") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #ff4a93edc7edefe3 Filesystem access.
repo/src/transformers/trainer_pt_utils.py:949
            with open(path) as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #a1b9314c11d4c670 Filesystem access.
repo/src/transformers/trainer_pt_utils.py:955
        with open(path, "w") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #11f8da8c7208242f Environment-variable access.
repo/src/transformers/trainer_utils.py:166
        os.environ["CUDA_LAUNCH_BLOCKING"] = "1"

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #bd40a07ee92875c8 Environment-variable access.
repo/src/transformers/trainer_utils.py:167
        os.environ["CUBLAS_WORKSPACE_CONFIG"] = ":16:8"

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #eed6d6de6c35af7f Environment-variable access.
repo/src/transformers/trainer_utils.py:169
        os.environ["ASCEND_LAUNCH_BLOCKING"] = "1"

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #cf75505945bc9625 Environment-variable access.
repo/src/transformers/trainer_utils.py:170
        os.environ["HCCL_DETERMINISTIC"] = "1"

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #1d1ea5a82f471e61 Environment-variable access.
repo/src/transformers/trainer_utils.py:172
        os.environ["FLASH_ATTENTION_DETERMINISTIC"] = "1"

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #87b184d25d64e42a Filesystem access.
repo/src/transformers/trainer_utils.py:1094
    with open(load_index, "r", encoding="utf-8") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #e6d19aa201180977 Environment-variable access.
repo/src/transformers/training_args.py:86
    if os.environ.get("TORCHELASTIC_RUN_ID"):

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #88f630a8a8304df8 Environment-variable access.
repo/src/transformers/training_args.py:1556
        self.mixed_precision = os.environ.get("ACCELERATE_MIXED_PRECISION", "no")

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #bfae446b1882bd8b Environment-variable access.
repo/src/transformers/training_args.py:1576
                os.environ["ACCELERATE_DYNAMO_BACKEND"] = self.torch_compile_backend

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #8457d0d30837541d Environment-variable access.
repo/src/transformers/training_args.py:1578
                    os.environ["ACCELERATE_DYNAMO_MODE"] = self.torch_compile_mode

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #7bfa9b788531069c Environment-variable access.
repo/src/transformers/training_args.py:1650
        elif strtobool(os.environ.get("ACCELERATE_USE_DEEPSPEED", "false")):

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #e7bd57dfef45c205 Environment-variable access.
repo/src/transformers/training_args.py:1810
        if self.use_cpu or strtobool(os.environ.get("ACCELERATE_USE_CPU", "False")):

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #1be2fdbb2144f73e Environment-variable access.
repo/src/transformers/training_args.py:1834
                os.environ["ACCELERATE_USE_DEEPSPEED"] = "true"

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #d90df80dbeb7377c Environment-variable access.
repo/src/transformers/training_args.py:1837
                del os.environ["ACCELERATE_USE_DEEPSPEED"]

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #b6c8efe307c3b2c3 Environment-variable access.
repo/src/transformers/training_args.py:1880
                    "cuda:0" if torch.cuda.is_available() else os.environ.get("ACCELERATE_TORCH_DEVICE", "cpu")

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #2ff558bd21b6f803 Filesystem access.
repo/src/transformers/training_args.py:2699
            with open(self.fsdp_config, encoding="utf-8") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #be30d57d3022a9ba Environment-variable access.
repo/src/transformers/training_args.py:2766
        os.environ["FSDP_CPU_RAM_EFFICIENT_LOADING"] = cpu_ram_efficient_loading

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low egress production #d3242bc695003b59 Hardcoded external endpoint. Review what data is sent to this destination.
repo/src/transformers/utils/attention_visualizer.py:183
            img = Image.open(io.BytesIO(httpx.get(img, follow_redirects=True).content))

Data is sent to a hardcoded external endpoint; review what leaves the process.

Fix: Verify the destination and that only non-sensitive data is sent; pin and audit the dependency.

low env_fs production #999a74b2460f899c Filesystem access.
repo/src/transformers/utils/generic.py:379
        with open(json_file, encoding="utf-8") as reader:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #0ed205187f0aeb9a Filesystem access.
repo/src/transformers/utils/generic.py:862
        with open(pretrained_model_path) as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #dd27b0d654671e7d Filesystem access.
repo/src/transformers/utils/generic.py:868
        with open(os.path.join(pretrained_model_path, "config.json")) as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #69b0bd1932453afd Environment-variable access.
repo/src/transformers/utils/hub.py:107
HF_MODULES_CACHE = os.getenv("HF_MODULES_CACHE", os.path.join(constants.HF_HOME, "modules"))

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low egress production #549e7ef6a95d011a Outbound request to a variable or assembled URL on a network client. Review what data is sent to this destination.
repo/src/transformers/utils/hub.py:178
        instance_data = httpx.get(os.environ["ECS_CONTAINER_METADATA_URI"]).json()

Data is sent to a hardcoded external endpoint; review what leaves the process.

Fix: Verify the destination and that only non-sensitive data is sent; pin and audit the dependency.

low env_fs production #2fa5dc94d8f8a45b Environment-variable access.
repo/src/transformers/utils/hub.py:178
        instance_data = httpx.get(os.environ["ECS_CONTAINER_METADATA_URI"]).json()

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #8590c318fef5ff58 Environment-variable access.
repo/src/transformers/utils/hub.py:185
    sagemaker_params = json.loads(os.getenv("SM_FRAMEWORK_PARAMS", "{}"))

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #cc76e4df28832b3e Environment-variable access.
repo/src/transformers/utils/hub.py:187
    training_job_arn = os.getenv("TRAINING_JOB_ARN")

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #b34e83d137b91866 Environment-variable access.
repo/src/transformers/utils/hub.py:191
        "sm_framework": os.getenv("SM_FRAMEWORK_MODULE", None),

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #fdc11f6dba57a829 Environment-variable access.
repo/src/transformers/utils/hub.py:192
        "sm_region": os.getenv("AWS_REGION", None),

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #36a54c3c17a33b23 Environment-variable access.
repo/src/transformers/utils/hub.py:193
        "sm_number_gpu": os.getenv("SM_NUM_GPUS", "0"),

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #21a65b9e7801596d Environment-variable access.
repo/src/transformers/utils/hub.py:194
        "sm_number_cpu": os.getenv("SM_NUM_CPUS", "0"),

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #df302d7bf38cfca8 Environment-variable access.
repo/src/transformers/utils/hub.py:215
    if os.environ.get("TRANSFORMERS_IS_CI", "").upper() in ENV_VARS_TRUE_VALUES:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #936df034238f293f Filesystem access.
repo/src/transformers/utils/hub.py:879
    with open(index_filename) as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #263cd299e4306d28 Environment-variable access.
repo/src/transformers/utils/import_utils.py:118
    return os.getenv(env_variable, "false").lower() in ("true", "1", "y", "yes", "on")

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #dc6d2d184e0c18b9 Environment-variable access.
repo/src/transformers/utils/import_utils.py:123
    return os.getenv(env_variable, "true").lower() in ("false", "0", "n", "no", "off")

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #b5201a1d5c420508 Environment-variable access.
repo/src/transformers/utils/import_utils.py:130
USE_TORCH_XLA = os.environ.get("USE_TORCH_XLA", "1").upper()

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #76f2cf31c349ae52 Environment-variable access.
repo/src/transformers/utils/import_utils.py:356
    pytorch_cndev_based_mlu_check_previous_value = os.environ.get("PYTORCH_CNDEV_BASED_MLU_CHECK")

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #4e228c8362ad06ad Environment-variable access.
repo/src/transformers/utils/import_utils.py:358
        os.environ["PYTORCH_CNDEV_BASED_MLU_CHECK"] = str(1)

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #b26fdf417fdcb01a Environment-variable access.
repo/src/transformers/utils/import_utils.py:362
            os.environ["PYTORCH_CNDEV_BASED_MLU_CHECK"] = pytorch_cndev_based_mlu_check_previous_value

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #c4f7936f003339de Environment-variable access.
repo/src/transformers/utils/import_utils.py:364
            os.environ.pop("PYTORCH_CNDEV_BASED_MLU_CHECK", None)

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #0532b1c6691598af Environment-variable access.
repo/src/transformers/utils/import_utils.py:434
    if os.environ.get("PT_HPU_LAZY_MODE", "1") == "1":

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #22b74251107a3524 Environment-variable access.
repo/src/transformers/utils/import_utils.py:1640
    if os.getenv("TRANSFORMERS_DISABLE_TORCH_CHECK", "0") == "1":

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #4c2aac2e57913e92 Environment-variable access.
repo/src/transformers/utils/import_utils.py:1689
        if "DATABRICKS_RUNTIME_VERSION" in os.environ and os.environ["DATABRICKS_RUNTIME_VERSION"] < "11.0":

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #f99e61f9b71799bf Environment-variable access.
repo/src/transformers/utils/import_utils.py:1701
    sagemaker_params = os.getenv("SM_FRAMEWORK_PARAMS", "{}")

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #ea703f45d148c043 Environment-variable access.
repo/src/transformers/utils/import_utils.py:1715
    smp_options = os.getenv("SM_HP_MP_PARAMETERS", "{}")

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #d4f5e5cee1a513da Environment-variable access.
repo/src/transformers/utils/import_utils.py:1725
    mpi_options = os.getenv("SM_FRAMEWORK_PARAMS", "{}")

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #40b492c5c169737b Environment-variable access.
repo/src/transformers/utils/import_utils.py:1738
    return "SAGEMAKER_JOB_NAME" in os.environ

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #0e441645c8e29061 Filesystem access.
repo/src/transformers/utils/import_utils.py:2850
        with open(os.path.join(module_path, module_name), encoding="utf-8") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #566d492998d9b54e Environment-variable access.
repo/src/transformers/utils/logging.py:64
    env_level_str = os.getenv("TRANSFORMERS_VERBOSITY", None)

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #4da566fe448938df Filesystem access.
repo/src/transformers/utils/logging.py:94
            sys.stderr = open(os.devnull, "w")

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #8a28ede13a777315 Environment-variable access.
repo/src/transformers/utils/logging.py:108
        if os.getenv("TRANSFORMERS_VERBOSITY", None) == "detail":

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #79e2a120b8e26af9 Environment-variable access.
repo/src/transformers/utils/logging.py:114
        ci = os.getenv("CI")

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #c14ee8b55fc4c1cb Environment-variable access.
repo/src/transformers/utils/logging.py:322
    no_advisory_warnings = os.getenv("TRANSFORMERS_NO_ADVISORY_WARNINGS")

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #2888a87fb24389cb Filesystem access.
repo/src/transformers/utils/network_logging.py:172
        Path(dump_path).write_text(json.dumps(records), encoding="utf-8")

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #7cb321df61840d7e Filesystem access.
repo/src/transformers/utils/network_logging.py:182
                records = json.loads(Path(record_file).read_text(encoding="utf-8"))

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #67dd373c17295154 Filesystem access.
repo/src/transformers/utils/network_logging.py:327
        report_path.write_text(json.dumps(self.build_report(), indent=2, sort_keys=True), encoding="utf-8")

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #1b129b65c891aa6d Environment-variable access.
repo/src/transformers/utils/network_logging.py:338
    enabled_raw = os.environ.get("NETWORK_DEBUG_REPORT", "").strip()

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #a846778fd1332a84 Environment-variable access.
repo/src/transformers/utils/network_logging.py:344
    output_path = os.environ.get("NETWORK_DEBUG_REPORT_PATH", "").strip() or _DEFAULT_REPORT_PATH

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #f2b8f983a06f9514 Environment-variable access.
repo/src/transformers/utils/notebook.py:128
        if "VSCODE_PID" in os.environ:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #871be3af946e1b46 Filesystem access.
repo/src/transformers/utils/pytest_helpers.py:39
    data = json.loads(p.read_text())

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #4a1d83e89889353d Filesystem access.
repo/src/transformers/utils/quantization_config.py:144
        with open(json_file_path, "w", encoding="utf-8") as writer:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #23173567fc882a6b Filesystem access.
repo/src/transformers/video_processing_utils.py:769
        with open(json_file_path, "w", encoding="utf-8") as writer:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #ea3f59ba6656544e Filesystem access.
repo/src/transformers/video_processing_utils.py:789
        with open(json_file, "r", encoding="utf-8") as reader:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low egress production #d31e5b34e7043ff9 Outbound request to a variable or assembled URL on a network client. Review what data is sent to this destination.
repo/src/transformers/video_utils.py:701
        file_obj = BytesIO(httpx.get(video, follow_redirects=True).content)

Data is sent to a hardcoded external endpoint; review what leaves the process.

Fix: Verify the destination and that only non-sensitive data is sent; pin and audit the dependency.

low egress production #198abf18eab77c7f Outbound request to a variable or assembled URL on a network client. Review what data is sent to this destination.
repo/utils/add_dates.py:80
        with urlopen(request, timeout=10) as response:

Data is sent to a hardcoded external endpoint; review what leaves the process.

Fix: Verify the destination and that only non-sensitive data is sent; pin and audit the dependency.

low env_fs production #d8347a2b174eb8e3 Filesystem access.
repo/utils/add_dates.py:125
    with open(file_path, "r", encoding="utf-8") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #fd509be10c417cc0 Filesystem access.
repo/utils/add_dates.py:186
    with open(file_path, "r", encoding="utf-8") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #5c318be70af92acc Filesystem access.
repo/utils/add_dates.py:215
        with open(file_path, "w", encoding="utf-8") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #357109ebbbaef277 Filesystem access.
repo/utils/add_dates.py:234
    with open(file_path, "r", encoding="utf-8") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #9cc0eb452e32982a Filesystem access.
repo/utils/add_dates.py:324
            with open(file_path, "w", encoding="utf-8") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #d8f263e4c8444675 Filesystem access.
repo/utils/add_dates.py:355
                with open(file_path, "w", encoding="utf-8") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #a514b045976d031c Filesystem access.
repo/utils/add_dates.py:365
            with open(file_path, "w", encoding="utf-8") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs test-only Excluded from app score #ce778818ceb4dddc Filesystem access.
repo/utils/add_pipeline_model_mapping_to_test.py:260
    with open(moddule_file, "w", encoding="UTF-8", newline="\n") as fp:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #5273067172d4b4d8 Filesystem access.
repo/utils/aggregate_failure_reports.py:46
                with open(failure_file) as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #30228f041e7f62ac Filesystem access.
repo/utils/aggregate_failure_reports.py:53
    with open(output_file, "w") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #e2ae25c59eae00f0 Filesystem access.
repo/utils/check_auto.py:81
        with open(config_path, "r") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #1e03f2a1a4d8e065 Filesystem access.
repo/utils/check_auto.py:135
            with open(f"src/transformers/models/{module}/{processor_filename}_{module}.py", "r") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #bdefc7d5d40f6e78 Filesystem access.
repo/utils/check_auto.py:282
        old_content = open(AUTO_FILENAME, "r").read()

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #867833d505c7a6bb Filesystem access.
repo/utils/check_auto.py:300
        with open(temp_filename, "w") as temp_file:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #167371980356a9e3 Filesystem access.
repo/utils/check_auto.py:304
        new_content = open(temp_filename, "r").read()

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #6f68fde0529d2ef5 Filesystem access.
repo/utils/check_auto.py:323
            with open(AUTO_FILENAME, "w") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #0ca427bb48db4207 Filesystem access.
repo/utils/check_bad_commit.py:77
    with open("target_script.py", "w") as fp:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #35c5a5762ba19344 Environment-variable access.
repo/utils/check_bad_commit.py:138
    is_pr_ci = os.environ.get("GITHUB_EVENT_NAME") in ["issue_comment", "pull_request"]

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #e37db7b9422277fa Filesystem access.
repo/utils/check_bad_commit.py:231
    with open("run_git_bisect.sh", "w") as fp:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #c1da79a068120809 Environment-variable access.
repo/utils/check_bad_commit.py:283
        pr_number = os.environ.get("pr_number")

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low egress production #3ef22f9f17fdd296 Outbound request to a variable or assembled URL on a network client. Review what data is sent to this destination.
repo/utils/check_bad_commit.py:287
    commit_info = requests.get(url, headers=headers).json()

Data is sent to a hardcoded external endpoint; review what leaves the process.

Fix: Verify the destination and that only non-sensitive data is sent; pin and audit the dependency.

low egress production #25e254f5251a6389 Outbound request to a variable or assembled URL on a network client. Review what data is sent to this destination.
repo/utils/check_bad_commit.py:306
        pr_info_for_commit = requests.get(url, headers=headers).json()

Data is sent to a hardcoded external endpoint; review what leaves the process.

Fix: Verify the destination and that only non-sensitive data is sent; pin and audit the dependency.

low egress production #afddfbca9a77e69a Outbound request to a variable or assembled URL on a network client. Review what data is sent to this destination.
repo/utils/check_bad_commit.py:314
        pr_for_commit = requests.get(url, headers=headers).json()

Data is sent to a hardcoded external endpoint; review what leaves the process.

Fix: Verify the destination and that only non-sensitive data is sent; pin and audit the dependency.

low env_fs production #18491f45a7ff2982 Environment-variable access.
repo/utils/check_bad_commit.py:343
        args.github_token = os.environ.get("GITHUB_TOKEN")

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #6f787877c91c3d62 Environment-variable access.
repo/utils/check_bad_commit.py:345
    run_idx = os.environ.get("run_idx")

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #ee8d0a756ebbf6a7 Environment-variable access.
repo/utils/check_bad_commit.py:346
    n_runners = os.environ.get("n_runners")

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #efa53fe32b3c07b7 Filesystem access.
repo/utils/check_bad_commit.py:361
        with open(args.output_file, "w", encoding="UTF-8") as fp:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #65ed49bc9a998398 Filesystem access.
repo/utils/check_bad_commit.py:364
        with open(args.file, "r", encoding="UTF-8") as fp:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #6250febd2b60d80c Filesystem access.
repo/utils/check_bad_commit.py:428
        with open(args.output_file, "w", encoding="UTF-8") as fp:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #e23146dd5d59d386 Filesystem access.
repo/utils/check_config_attributes.py:394
            with open(path, encoding="utf8") as fp:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #374048211745411f Filesystem access.
repo/utils/check_copies.py:443
    with open(os.path.join(base_path, f"{module}.py"), "r", encoding="utf-8", newline="\n") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #b7a0090e51f3cf8d Filesystem access.
repo/utils/check_copies.py:665
    with open(filename, "r", encoding="utf-8", newline="\n") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #a878d50f3972c2ff Filesystem access.
repo/utils/check_copies.py:837
        with open(filename, "w", encoding="utf-8", newline="\n") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #cc1865ac47b076ca Filesystem access.
repo/utils/check_copies.py:887
    with open(os.path.join(REPO_PATH, filename), "r", encoding="utf-8", newline="\n") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #c8c09e704a3cb1fe Filesystem access.
repo/utils/check_doc_toc.py:131
    with open(TOCTREE_PATH, encoding="utf-8") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #a8263ba40c52def7 Filesystem access.
repo/utils/check_doc_toc.py:166
            with open(TOCTREE_PATH, "w", encoding="utf-8") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #b3cb60159f4643de Filesystem access.
repo/utils/check_docstrings.py:415
        with open(file_path) as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #550f1f7be4f22df4 Filesystem access.
repo/utils/check_docstrings.py:818
    with open(obj_file, "r", encoding="utf-8") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #ccc363e05827340f Filesystem access.
repo/utils/check_docstrings.py:830
    with open(obj_file, "w", encoding="utf-8") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #bafe85022ddb9bea Filesystem access.
repo/utils/check_docstrings.py:934
            with open(file_path, "r", encoding="utf-8") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #8238dc762798369f Filesystem access.
repo/utils/check_docstrings.py:1040
        with open(modular_file, encoding="utf-8") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #5fd1cc4fff376b4b Filesystem access.
repo/utils/check_docstrings.py:1043
        with open(generated_file, encoding="utf-8") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #0d1c6feaafb02870 Filesystem access.
repo/utils/check_docstrings.py:1179
        with open(modular_file, "w", encoding="utf-8") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #6664572a71766e38 Filesystem access.
repo/utils/check_docstrings.py:1687
    with open(candidate_file, "r", encoding="utf-8") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #9f2506737c53baf5 Filesystem access.
repo/utils/check_docstrings.py:1872
        with open(candidate_file, "w", encoding="utf-8") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #8d8ff615fdb6aca5 Filesystem access.
repo/utils/check_docstrings.py:1958
        with open(candidate_file, "w", encoding="utf-8") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #c58000890957841d Filesystem access.
repo/utils/check_docstrings.py:1995
        with open(candidate_file, "r", encoding="utf-8") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #f40600d319bbd7d6 Filesystem access.
repo/utils/check_doctest_list.py:70
    with open(doctest_file, "r", encoding="utf-8") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #c8cbc6e9697771e8 Filesystem access.
repo/utils/check_doctest_list.py:89
        with open(doctest_file, "w", encoding="utf-8") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #bcdbb8f0d73c07b7 Filesystem access.
repo/utils/check_dummies.py:111
    with open(os.path.join(PATH_TO_TRANSFORMERS, "__init__.py"), "r", encoding="utf-8", newline="\n") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #8e352012e47d681e Filesystem access.
repo/utils/check_dummies.py:217
            with open(file_path, "r", encoding="utf-8", newline="\n") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #568a340c1e558ac4 Filesystem access.
repo/utils/check_dummies.py:230
                with open(dummy_file_paths[backend], "w", encoding="utf-8", newline="\n") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #da7e5bf0fa94f8ab Filesystem access.
repo/utils/check_inits.py:111
    with open(init_file, "r", encoding="utf-8", newline="\n") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #fb460584d578a4c9 Filesystem access.
repo/utils/check_inits.py:338
    with open(os.path.join(PATH_TO_TRANSFORMERS, "__init__.py"), "r") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #528c7b4cae283bbe Filesystem access.
repo/utils/check_modular_conversion.py:45
    with open(file_path, "r", encoding="utf-8") as modeling_file:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #aa1ac80d3d1ffa0f Filesystem access.
repo/utils/check_modular_conversion.py:60
        with open(file_path, "w", encoding="utf-8", newline="\n") as modeling_file:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #edbf09e18421908a Filesystem access.
repo/utils/check_modular_conversion.py:88
        with open(temp_file_name, "w") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #d8270007fbdab5f1 Filesystem access.
repo/utils/check_modular_conversion.py:92
        with open(temp_file_name, "r") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #29df6c234d011d68 Filesystem access.
repo/utils/check_pipeline_typing.py:39
    with open(pipeline_file_path, "r") as file:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #f7324925de1c9e52 Filesystem access.
repo/utils/check_pipeline_typing.py:78
        with open(pipeline_file_path, "w") as file:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #99ef504429df27be Environment-variable access.
repo/utils/check_repo.py:623
        if os.getenv("TRANSFORMERS_IS_CI", "").upper() in ENV_VARS_TRUE_VALUES:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #535ec864fb4685f5 Filesystem access.
repo/utils/check_repo.py:653
            if (Path(model_dir) / "__init__.py").read_text().strip() == "":

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #574ae21dae41c6b8 Filesystem access.
repo/utils/check_repo.py:812
    with open(os.path.join(PATH_TO_TESTS, test_file), "r", encoding="utf-8", newline="\n") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #2d734896fd17e4a0 Filesystem access.
repo/utils/check_repo.py:1124
    with open(filename, "r", encoding="utf-8", newline="\n") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #306b7d896ceec418 Filesystem access.
repo/utils/check_repo.py:1168
        with open(doc_file, "r", encoding="utf-8", newline="\n") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #014093b0bf216dd9 Filesystem access.
repo/utils/check_repo.py:1463
            with open(modeling_file, "r", encoding="utf-8") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #57bc386feb7198f8 Filesystem access.
repo/utils/check_self_hosted_runner.py:29
    with open("offline_runners.txt", "w") as fp:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #90e595863a0cb14c Filesystem access.
repo/utils/checkers.py:123
            tree = ast.parse(py_file.read_text(encoding="utf-8"), filename=str(py_file))

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #37157755d41affa2 Filesystem access.
repo/utils/checkers.py:249
            return json.loads(self._path.read_text(encoding="utf-8"))

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #d8dd13dbc5cecb92 Filesystem access.
repo/utils/checkers.py:255
            self._path.write_text(json.dumps(self._data, sort_keys=True, indent=2) + "\n", encoding="utf-8")

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #c030d6c79f72ed92 Filesystem access.
repo/utils/checkers.py:269
                h.update(p.read_bytes())

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #1fd38f9767339bc1 Filesystem access.
repo/utils/checkers.py:292
    return hashlib.md5(path.read_bytes()).hexdigest()

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #13acc31f23b02245 Environment-variable access.
repo/utils/checkers.py:394
    env = os.environ.copy()

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #b5a0adeaef599877 Environment-variable access.
repo/utils/checkers.py:568
    is_ci = os.environ.get("GITHUB_ACTIONS") == "true" or os.environ.get("CIRCLECI") == "true"

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #d25d0b3e59243b99 Environment-variable access.
repo/utils/checkers.py:584
    job = os.environ.get("TRANSFORMERS_TEST_OTEL_JOB", "local_checks")

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #760d840770624729 Environment-variable access.
repo/utils/collated_reports.py:124
    if os.getenv("GITHUB_EVENT_NAME") != "schedule":

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #5771e72647040be3 Environment-variable access.
repo/utils/collated_reports.py:125
        report_repo_subfolder = f"{os.getenv('GITHUB_RUN_NUMBER')}-{os.getenv('GITHUB_RUN_ID')}"

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #87081d8ecad478b2 Environment-variable access.
repo/utils/collated_reports.py:129
        token=os.environ["ACCESS_REPO_INFO_TOKEN"], workflow_run_id=os.getenv("GITHUB_RUN_ID")

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #2a904ade90b0f150 Environment-variable access.
repo/utils/collated_reports.py:142
        token=os.getenv("TRANSFORMERS_CI_RESULTS_UPLOAD_TOKEN"),

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #71cef00d8191b4a6 Filesystem access.
repo/utils/collated_reports.py:195
        with open(summary_short_path, "r") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #fa638c7c921446f8 Filesystem access.
repo/utils/collated_reports.py:217
    with open(filename, "w") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #38b8bce12fb45e87 Filesystem access.
repo/utils/compare_test_runs.py:36
    with open(file_path, "r", encoding="utf-8") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #3c3f57b9ab58e724 Filesystem access.
repo/utils/create_dependency_mapping.py:76
    with open(file_path, "r", encoding="utf-8") as file:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #895eb82f8f33baed Environment-variable access.
repo/utils/create_dummy_models.py:62
os.environ["TOKENIZERS_PARALLELISM"] = "false"

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #960f44a84637fea2 Filesystem access.
repo/utils/create_dummy_models.py:1657
    with open(os.path.join(report_path, "tiny_model_summary.json")) as fp:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #7c4a5249e1cf5198 Filesystem access.
repo/utils/create_dummy_models.py:1659
    with open("tests/utils/tiny_model_summary.json") as fp:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #65fb0e10420e20a4 Filesystem access.
repo/utils/create_dummy_models.py:1679
    with open(os.path.join(report_path, "updated_tiny_model_summary.json"), "w") as fp:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #06d79f3d9e1561c7 Filesystem access.
repo/utils/create_dummy_models.py:1767
        with open(os.path.join(report_path, "failed_uploads.json"), "w") as fp:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #eef2784badcc2ab2 Filesystem access.
repo/utils/create_dummy_models.py:1776
    with open(os.path.join(report_path, "tiny_model_summary.json"), "w") as fp:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #f91501f2ed994588 Filesystem access.
repo/utils/create_dummy_models.py:1779
    with open(os.path.join(report_path, "tiny_model_creation_report.json"), "w") as fp:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #cadecb5624e2da5c Filesystem access.
repo/utils/create_dummy_models.py:1785
    with open(os.path.join(report_path, "failed_report.json"), "w") as fp:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #3d6d41a038c760ba Filesystem access.
repo/utils/create_dummy_models.py:1791
    with open(os.path.join(report_path, "simple_report.txt"), "w") as fp:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #70bcc3af61b9273b Filesystem access.
repo/utils/create_dummy_models.py:1795
    with open(os.path.join(report_path, "simple_failed_report.txt"), "w") as fp:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #9ba19980b3881d1b Filesystem access.
repo/utils/custom_init_isort.py:251
    with open(file, encoding="utf-8") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #118014ef704dee51 Filesystem access.
repo/utils/custom_init_isort.py:312
            with open(file, "w", encoding="utf-8") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low egress production #2a7a9145a0bd2897 Hardcoded external endpoint. Review what data is sent to this destination.
repo/utils/deprecate_models.py:31
    release_data = httpx.get(url).json()

Data is sent to a hardcoded external endpoint; review what leaves the process.

Fix: Verify the destination and that only non-sensitive data is sent; pin and audit the dependency.

low env_fs production #5521fa9655d893ed Filesystem access.
repo/utils/deprecate_models.py:61
    with open(model_doc_path, "r") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #20ac6113bc0a596f Filesystem access.
repo/utils/deprecate_models.py:75
    with open(model_doc_path, "w") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #8726215385eaae63 Filesystem access.
repo/utils/deprecate_models.py:112
    with open(filename, "r") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #1fa8ba79f753bc2b Filesystem access.
repo/utils/deprecate_models.py:122
    with open(filename, "w") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #0b6fe58638264b3b Filesystem access.
repo/utils/deprecate_models.py:132
        with open(file_path, "r") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #3088324451458da5 Filesystem access.
repo/utils/deprecate_models.py:141
        with open(file_path, "w") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #a99b8c142f03ee21 Filesystem access.
repo/utils/deprecate_models.py:180
    with open(filename, "r") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #26b205082e27e85f Filesystem access.
repo/utils/deprecate_models.py:188
    with open(filename, "w") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #85d0b65346e769f8 Filesystem access.
repo/utils/deprecate_models.py:205
    with open(filename, "r") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #4f18861045e711e1 Filesystem access.
repo/utils/deprecate_models.py:214
    with open(filename, "w") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #e2cf5db62337ecab Filesystem access.
repo/utils/deprecate_models.py:226
    with open(filename, "r") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #0912cc5423754c16 Filesystem access.
repo/utils/deprecate_models.py:264
    with open(filename, "w") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #2ce7041022bfffdf Filesystem access.
repo/utils/deprecate_models.py:274
    with open(filepath, "r") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #c1a4e2c69059e7eb Filesystem access.
repo/utils/deprecate_models.py:298
    with open(filepath, "w") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #7e67662f9cda7534 Filesystem access.
repo/utils/download_glue_data.py:78
    with open(os.path.join(mrpc_dir, "dev_ids.tsv"), encoding="utf8") as ids_fh:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #97e3c9649b3b0471 Filesystem access.
repo/utils/download_glue_data.py:83
        open(mrpc_train_file, encoding="utf8") as data_fh,

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #9fc99f3847be0795 Filesystem access.
repo/utils/download_glue_data.py:84
        open(os.path.join(mrpc_dir, "train.tsv"), "w", encoding="utf8") as train_fh,

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #c6223c7dd642bfae Filesystem access.
repo/utils/download_glue_data.py:85
        open(os.path.join(mrpc_dir, "dev.tsv"), "w", encoding="utf8") as dev_fh,

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #637a5939b73b6bef Filesystem access.
repo/utils/download_glue_data.py:98
        open(mrpc_test_file, encoding="utf8") as data_fh,

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #07cfeff0dc16aa5b Filesystem access.
repo/utils/download_glue_data.py:99
        open(os.path.join(mrpc_dir, "test.tsv"), "w", encoding="utf8") as test_fh,

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #73c1e9d5b2584b4f Environment-variable access.
repo/utils/extract_pr_number_from_circleci.py:22
    pr = os.environ.get("CIRCLE_PULL_REQUEST", "")

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #e64bc4126bd78d7a Environment-variable access.
repo/utils/extract_pr_number_from_circleci.py:26
        pr = os.environ.get("CIRCLE_BRANCH", "")

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #47a263a479c78661 Filesystem access.
repo/utils/extract_warnings.py:47
                with open(file_path) as fp:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #d80c2b2a8f0489dc Filesystem access.
repo/utils/extract_warnings.py:118
        with open(os.path.join(args.output_dir, "artifacts.json"), "w", encoding="UTF-8") as fp:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #b5df06bbfd187b6d Filesystem access.
repo/utils/extract_warnings.py:133
    with open(os.path.join(args.output_dir, "selected_warnings.json"), "w", encoding="UTF-8") as fp:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #241683d2e0ae474a Environment-variable access.
repo/utils/fetch_hub_objects_for_ci.py:27
_staging_mode = os.environ.pop("HUGGINGFACE_CO_STAGING", None)

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #b2c2f5ebfdedc725 Environment-variable access.
repo/utils/fetch_hub_objects_for_ci.py:40
    os.environ["HUGGINGFACE_CO_STAGING"] = _staging_mode

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #ab67aa8ee0b486e9 Filesystem access.
repo/utils/fetch_hub_objects_for_ci.py:129
    with open(filepath, "rb") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #153a886deb121460 Filesystem access.
repo/utils/fetch_hub_objects_for_ci.py:184
                with open(filename, "wb") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #6f0cdc39324300e6 Filesystem access.
repo/utils/format_extras_slack_message.py:42
    with open(failures_file) as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #2a3b237bcbe035b7 Environment-variable access.
repo/utils/format_extras_slack_message.py:73
        output_file = os.environ.get("GITHUB_ENV")

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #e4cb5bc634ec367d Filesystem access.
repo/utils/format_extras_slack_message.py:79
    with open(output_file, "a") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low egress production #c7747f3778840484 Outbound request to a variable or assembled URL on a network client. Review what data is sent to this destination.
repo/utils/get_ci_error_statistics.py:84
        response = requests.get(url, headers=headers)

Data is sent to a hardcoded external endpoint; review what leaves the process.

Fix: Verify the destination and that only non-sensitive data is sent; pin and audit the dependency.

low egress production #a4e8f86a041b7407 Outbound request to a variable or assembled URL on a network client. Review what data is sent to this destination.
repo/utils/get_ci_error_statistics.py:98
            response = requests.get(url)

Data is sent to a hardcoded external endpoint; review what leaves the process.

Fix: Verify the destination and that only non-sensitive data is sent; pin and audit the dependency.

low egress production #17bd10cc0ac19fba Outbound request to a variable or assembled URL on a network client. Review what data is sent to this destination.
repo/utils/get_ci_error_statistics.py:188
    result = requests.get(artifact_url, headers=headers, allow_redirects=False)

Data is sent to a hardcoded external endpoint; review what leaves the process.

Fix: Verify the destination and that only non-sensitive data is sent; pin and audit the dependency.

low egress production #183bb0c2c4ee1f9c Outbound request to a variable or assembled URL on a network client. Review what data is sent to this destination.
repo/utils/get_ci_error_statistics.py:190
    response = requests.get(download_url, allow_redirects=True)

Data is sent to a hardcoded external endpoint; review what leaves the process.

Fix: Verify the destination and that only non-sensitive data is sent; pin and audit the dependency.

low env_fs production #538d24811e59d743 Filesystem access.
repo/utils/get_ci_error_statistics.py:192
    with open(file_path, "wb") as fp:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #e76bfe6a10d8db3c Filesystem access.
repo/utils/get_ci_error_statistics.py:354
    with open(os.path.join(args.output_dir, "job_links.json"), "w", encoding="UTF-8") as fp:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #c01359117b471da3 Filesystem access.
repo/utils/get_ci_error_statistics.py:358
    with open(os.path.join(args.output_dir, "artifacts.json"), "w", encoding="UTF-8") as fp:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #8f94421502824617 Filesystem access.
repo/utils/get_ci_error_statistics.py:377
    with open(os.path.join(args.output_dir, "errors.json"), "w", encoding="UTF-8") as fp:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #62a0d3f2214e0870 Filesystem access.
repo/utils/get_ci_error_statistics.py:386
    with open(os.path.join(args.output_dir, "reduced_by_error.txt"), "w", encoding="UTF-8") as fp:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #b4ee8c80de7d9d6a Filesystem access.
repo/utils/get_ci_error_statistics.py:388
    with open(os.path.join(args.output_dir, "reduced_by_model.txt"), "w", encoding="UTF-8") as fp:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low egress production #8a70d5dae6b676b5 Outbound request to a variable or assembled URL on a network client. Review what data is sent to this destination.
repo/utils/get_github_job_time.py:38
    result = requests.get(url, headers=headers).json()

Data is sent to a hardcoded external endpoint; review what leaves the process.

Fix: Verify the destination and that only non-sensitive data is sent; pin and audit the dependency.

low egress production #7b38e4ee33d6af42 Outbound request to a variable or assembled URL on a network client. Review what data is sent to this destination.
repo/utils/get_github_job_time.py:47
            result = requests.get(url + f"&page={i + 2}", headers=headers).json()

Data is sent to a hardcoded external endpoint; review what leaves the process.

Fix: Verify the destination and that only non-sensitive data is sent; pin and audit the dependency.

low env_fs production #05d37b10f02e848f Filesystem access.
repo/utils/get_pr_run_slow_jobs.py:15
    with open("pr_files.txt") as fp:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #6e603a8fdd68b445 Filesystem access.
repo/utils/get_pr_run_slow_jobs.py:98
        with open(filename) as fp:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #1fc89af54db20ec2 Environment-variable access.
repo/utils/get_previous_daily_ci.py:18
        workflow_run_id = os.environ["GITHUB_RUN_ID"]

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #eb5cab62045aa8f6 Filesystem access.
repo/utils/get_previous_daily_ci.py:151
                    with open(file_path) as fp:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #403e5d9d258ccce2 Environment-variable access.
repo/utils/get_test_reports.py:69
        env = os.environ.copy()

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #8916da7b723456d7 Environment-variable access.
repo/utils/get_test_reports.py:219
        os.environ["RUN_SLOW"] = "yes"

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #d94c8332d7935108 Environment-variable access.
repo/utils/get_test_reports.py:240
        os.environ["PATCH_TESTING_METHODS_TO_COLLECT_OUTPUTS"] = "yes"

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #632d30adeff18c29 Environment-variable access.
repo/utils/get_test_reports.py:242
        os.environ["_PATCHED_TESTING_METHODS_OUTPUT_DIR"] = str(reports_dir)

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #326dfc5d1038fd81 Filesystem access.
repo/utils/models_to_deprecate.py:192
        with open("models_info.json", "r") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #6f3ce9d470d91516 Filesystem access.
repo/utils/models_to_deprecate.py:277
        with open("models_info.json", "w") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #eba0366e276cc9e4 Filesystem access.
repo/utils/modular_model_converter.py:67
    with open(file_path, "r", encoding="utf-8") as file:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #67c4d7bfa902851f Filesystem access.
repo/utils/modular_model_converter.py:1996
        with open(modular_file, "r", encoding="utf-8") as file:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #a6cb5ceb6f6013ce Filesystem access.
repo/utils/modular_model_converter.py:2046
        with open(new_file_name, "w", encoding="utf-8") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #be607b970a3912be Filesystem access.
repo/utils/modular_model_converter.py:2053
    with open(file_path, "r", encoding="utf-8") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #6c91bd933db04741 Filesystem access.
repo/utils/modular_model_converter.py:2073
            with open(file_path, "r", encoding="utf-8") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #50d7b4c343c9cdb0 Environment-variable access.
repo/utils/modular_model_detector.py:135
os.environ["HF_HUB_DISABLE_PROGRESS_BARS"] = "1"

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #c29b7ac9067bd475 Environment-variable access.
repo/utils/modular_model_detector.py:136
os.environ["TRANSFORMERS_VERBOSITY"] = "error"

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #9a6142357e899be4 Filesystem access.
repo/utils/modular_model_detector.py:329
        source = file_path.read_text(encoding="utf-8")

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #3a9637491e86bc42 Filesystem access.
repo/utils/modular_model_detector.py:447
        with open(INDEX_MAP_PATH, "w", encoding="utf-8") as file:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #d6ef8869387ee50e Filesystem access.
repo/utils/modular_model_detector.py:449
        with open(TOKENS_PATH, "w", encoding="utf-8") as file:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #b0bab18ad3c1f4c1 Filesystem access.
repo/utils/modular_model_detector.py:540
        with open(self._resolve_index_path(INDEX_MAP_PATH), "r", encoding="utf-8") as file:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #22e54fc2fbcc6e6b Filesystem access.
repo/utils/modular_model_detector.py:543
        with open(self._resolve_index_path(TOKENS_PATH), "r", encoding="utf-8") as file:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #c441659e05c13482 Filesystem access.
repo/utils/modular_model_detector.py:605
            text = md_path.read_text(encoding="utf-8", errors="ignore")

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #6045c2a7cb5bd5df Filesystem access.
repo/utils/modular_model_detector.py:663
        source = file_path.read_text(encoding="utf-8")

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #574f8b26c1f3ae3a Environment-variable access.
repo/utils/notification_service.py:236
                "url": f"https://github.com/huggingface/transformers/actions/runs/{os.environ['GITHUB_RUN_ID']}",

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #55d5ad205673f951 Environment-variable access.
repo/utils/notification_service.py:256
                "url": f"https://github.com/huggingface/transformers/actions/runs/{os.environ['GITHUB_RUN_ID']}",

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #c590a0122ad79688 Environment-variable access.
repo/utils/notification_service.py:265
        job_link = f"https://github.com/huggingface/transformers/actions/runs/{os.environ['GITHUB_RUN_ID']}"

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #c9e8b6a32be4f0b0 Filesystem access.
repo/utils/notification_service.py:487
        with open(file_path, "w", encoding="UTF-8") as fp:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #358ca5ffbad04c9d Filesystem access.
repo/utils/notification_service.py:497
        with open(file_path, "w", encoding="UTF-8") as fp:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #cd8aee8386ae9ed0 Filesystem access.
repo/utils/notification_service.py:518
                    with open(file_path, "w", encoding="UTF-8") as fp:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #5410d8c09019dbb3 Environment-variable access.
repo/utils/notification_service.py:593
            include_all = os.environ.get("GITHUB_EVENT_NAME") in ["issue_comment", "pull_request"]

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #d5c05300ef39b0bc Filesystem access.
repo/utils/notification_service.py:603
                with open(file_path, "w", encoding="UTF-8") as fp:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #9a943ed0315cc850 Environment-variable access.
repo/utils/notification_service.py:613
                    token=os.environ.get("TRANSFORMERS_CI_RESULTS_UPLOAD_TOKEN", None),

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #c624594b35b39c6e Environment-variable access.
repo/utils/notification_service.py:683
            result = os.environ.get("OFFLINE_RUNNERS")

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #28f1ca7130112103 Environment-variable access.
repo/utils/notification_service.py:716
                "url": f"https://github.com/huggingface/transformers/actions/runs/{os.environ['GITHUB_RUN_ID']}",

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #000328d7a39f3b8d Filesystem access.
repo/utils/notification_service.py:943
                with open(os.path.join(artifact_path, file)) as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #4625dca7c57c971e Environment-variable access.
repo/utils/notification_service.py:1035
    client = WebClient(token=os.environ["CI_SLACK_BOT_TOKEN"])

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #0fc831bed984819f Environment-variable access.
repo/utils/notification_service.py:1037
    SLACK_REPORT_CHANNEL_ID = os.environ["SLACK_REPORT_CHANNEL"]

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #7df4aa3a78273a43 Environment-variable access.
repo/utils/notification_service.py:1041
    setup_status = os.environ.get("SETUP_STATUS")

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #0de5c60a1330a373 Environment-variable access.
repo/utils/notification_service.py:1056
    ci_event = os.environ["CI_EVENT"]

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #243ec03a7258954d Environment-variable access.
repo/utils/notification_service.py:1062
    ci_title = os.environ.get("CI_TITLE", "")

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #c24e489263485b0e Environment-variable access.
repo/utils/notification_service.py:1063
    ci_sha = os.environ.get("CI_SHA")

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #ec912fb2dc08640c Environment-variable access.
repo/utils/notification_service.py:1079
        github_token = os.environ.get("GITHUB_TOKEN")

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low egress production #45cfde216b1462d8 Outbound request to a variable or assembled URL on a network client. Review what data is sent to this destination.
repo/utils/notification_service.py:1084
        ci_details = requests.get(ci_detail_url, headers=github_headers).json()

Data is sent to a hardcoded external endpoint; review what leaves the process.

Fix: Verify the destination and that only non-sensitive data is sent; pin and audit the dependency.

low egress production #9efd5d518beb027a Outbound request to a variable or assembled URL on a network client. Review what data is sent to this destination.
repo/utils/notification_service.py:1098
            ci_details = requests.get(ci_detail_url, headers=github_headers).json()

Data is sent to a hardcoded external endpoint; review what leaves the process.

Fix: Verify the destination and that only non-sensitive data is sent; pin and audit the dependency.

low env_fs production #6c89e105a2492130 Environment-variable access.
repo/utils/notification_service.py:1151
        workflow_run_id=os.environ["GITHUB_RUN_ID"], token=os.environ["ACCESS_REPO_INFO_TOKEN"]

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #9046d3e55732d4b3 Environment-variable access.
repo/utils/notification_service.py:1176
    job_name = os.getenv("CI_TEST_JOB")

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #107f8de56e9a7678 Environment-variable access.
repo/utils/notification_service.py:1313
    report_repo_id = os.getenv("REPORT_REPO_ID")

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #58e98e41e7f15876 Environment-variable access.
repo/utils/notification_service.py:1317
    if os.getenv("GITHUB_EVENT_NAME") != "schedule":

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #fe87d676b94ee71f Environment-variable access.
repo/utils/notification_service.py:1318
        report_repo_subfolder = f"{os.getenv('GITHUB_RUN_NUMBER')}-{os.getenv('GITHUB_RUN_ID')}"

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #fd95bcf4f1f43fb8 Environment-variable access.
repo/utils/notification_service.py:1322
        token=os.environ["ACCESS_REPO_INFO_TOKEN"], workflow_run_id=os.getenv("GITHUB_RUN_ID")

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #77e3d2a30abb52a4 Filesystem access.
repo/utils/notification_service.py:1403
            with open(os.path.join(directory, "selected_warnings.json")) as fp:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #9b7e6b5406c44d3d Environment-variable access.
repo/utils/notification_service.py:1417
    is_nvidia_daily_ci_workflow = os.environ.get("GITHUB_WORKFLOW_REF").startswith(nvidia_daily_ci_workflow)

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #b55e2dae25afa32f Environment-variable access.
repo/utils/notification_service.py:1418
    is_amd_daily_ci_workflow = os.environ.get("GITHUB_WORKFLOW_REF").startswith(amd_daily_ci_workflows)

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #86ac60ccaf6c253c Environment-variable access.
repo/utils/notification_service.py:1420
    is_scheduled_ci_run = os.environ.get("GITHUB_EVENT_NAME") == "schedule"

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #cfc2e6a7240b9e47 Environment-variable access.
repo/utils/notification_service.py:1423
    if os.environ.get("GITHUB_EVENT_NAME") == "workflow_run":

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #2bee2d38bb58505d Environment-variable access.
repo/utils/notification_service.py:1425
        event_payload_path = os.environ.get("GITHUB_EVENT_PATH")

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #f523dfb0431b611e Filesystem access.
repo/utils/notification_service.py:1427
        with open(event_payload_path) as fp:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #d871082f318c0ee8 Filesystem access.
repo/utils/notification_service.py:1442
        with open(f"ci_results_{job_name}/{test_to_result_name[test_name]}_results.json", "w", encoding="UTF-8") as fp:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #9b14100cad53db72 Environment-variable access.
repo/utils/notification_service.py:1450
            token=os.environ.get("TRANSFORMERS_CI_RESULTS_UPLOAD_TOKEN", None),

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #8f794fcd4a8ad3a2 Filesystem access.
repo/utils/notification_service.py:1454
        with open(
            f"ci_results_{job_name}/{test_to_result_name[test_name]}_results_extra.json", "w", encoding="UTF-8"
        ) as fp:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #865e0680a65701de Environment-variable access.
repo/utils/notification_service.py:1464
            token=os.environ.get("TRANSFORMERS_CI_RESULTS_UPLOAD_TOKEN", None),

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #b0ce9da6ba27f084 Filesystem access.
repo/utils/notification_service.py:1496
    with open(f"ci_results_{job_name}/job_links.json", "w", encoding="UTF-8") as fp:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #74a481889e7fafec Environment-variable access.
repo/utils/notification_service.py:1504
        token=os.environ.get("TRANSFORMERS_CI_RESULTS_UPLOAD_TOKEN", None),

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #345afce410b1de57 Environment-variable access.
repo/utils/notification_service.py:1512
            token=os.environ["ACCESS_REPO_INFO_TOKEN"], workflow_id=workflow_id

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #9154f9f9f44f0c3e Environment-variable access.
repo/utils/notification_service.py:1520
                token=os.environ["ACCESS_REPO_INFO_TOKEN"], workflow_id=other_workflow_id, commit_sha=ci_sha

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #469741576f751d55 Environment-variable access.
repo/utils/notification_service.py:1524
        prev_workflow_run_id = os.environ["PREV_WORKFLOW_RUN_ID"]

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #273e7b1e5d90a9bb Environment-variable access.
repo/utils/notification_service.py:1525
        other_workflow_run_id = os.environ["OTHER_WORKFLOW_RUN_ID"]

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #9ed93327e81706a6 Environment-variable access.
repo/utils/notification_service.py:1542
                token=os.environ["ACCESS_REPO_INFO_TOKEN"],

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #12e64abdee1d74d3 Environment-variable access.
repo/utils/notification_service.py:1558
                token=os.environ["ACCESS_REPO_INFO_TOKEN"],

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #de36498348b5537d Filesystem access.
repo/utils/notification_service.py:1575
            with open(f"ci_results_{job_name}/test_results_diff.json", "w") as fp:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #b93416b2ac8d6601 Environment-variable access.
repo/utils/notification_service.py:1584
                token=os.environ.get("TRANSFORMERS_CI_RESULTS_UPLOAD_TOKEN", None),

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #8ce5670b2688c7c1 Environment-variable access.
repo/utils/notification_service_doc_tests.py:24
client = WebClient(token=os.environ["CI_SLACK_BOT_TOKEN"])

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #2cc049cffa18de94 Environment-variable access.
repo/utils/notification_service_doc_tests.py:107
                "url": f"https://github.com/huggingface/transformers/actions/runs/{os.environ['GITHUB_RUN_ID']}",

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #525c3ccebd2e9634 Environment-variable access.
repo/utils/notification_service_doc_tests.py:126
                "url": f"https://github.com/huggingface/transformers/actions/runs/{os.environ['GITHUB_RUN_ID']}",

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #30403492fc266169 Environment-variable access.
repo/utils/notification_service_doc_tests.py:195
                    "url": f"https://github.com/huggingface/transformers/actions/runs/{os.environ['GITHUB_RUN_ID']}",

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #775f9f4abfc4b3dd Filesystem access.
repo/utils/notification_service_doc_tests.py:283
                with open(os.path.join(name, file), encoding="utf-8") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #e733d7000cc73154 Environment-variable access.
repo/utils/notification_service_doc_tests.py:317
    SLACK_REPORT_CHANNEL_ID = os.environ["SLACK_REPORT_CHANNEL"]

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #95ed8755de1e2f3d Environment-variable access.
repo/utils/notification_service_doc_tests.py:320
        workflow_run_id=os.environ["GITHUB_RUN_ID"], token=os.environ["ACCESS_REPO_INFO_TOKEN"]

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #e9f2b1a0dce1a190 Filesystem access.
repo/utils/notification_service_doc_tests.py:379
    with open("doc_test_results/doc_test_results.json", "w", encoding="UTF-8") as fp:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #48fecf13cb02bc48 Environment-variable access.
repo/utils/process_bad_commit_report.py:27
    job_name = os.environ.get("JOB_NAME")

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #3a8ad895e4d98abd Environment-variable access.
repo/utils/process_bad_commit_report.py:32
    if os.getenv("GITHUB_EVENT_NAME") != "schedule":

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #89985e20bb3b5b3f Environment-variable access.
repo/utils/process_bad_commit_report.py:33
        report_repo_subfolder = f"{os.getenv('GITHUB_RUN_NUMBER')}-{os.getenv('GITHUB_RUN_ID')}"

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #d499ae9fa2d8663a Environment-variable access.
repo/utils/process_bad_commit_report.py:37
        token=os.environ["ACCESS_REPO_INFO_TOKEN"], workflow_run_id=os.getenv("GITHUB_RUN_ID")

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #8916873effedca24 Environment-variable access.
repo/utils/process_bad_commit_report.py:46
    report_repo_id = os.getenv("REPORT_REPO_ID")

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #1006f28d0f0b2e9e Filesystem access.
repo/utils/process_bad_commit_report.py:48
    with open("new_failures_with_bad_commit.json") as fp:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #b34f82e8a9e02cb7 Filesystem access.
repo/utils/process_bad_commit_report.py:51
    with open(f"ci_results_{job_name}/job_links.json") as fp:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #7289c4bd8c1f65bd Filesystem access.
repo/utils/process_bad_commit_report.py:64
    with open("new_failures_with_bad_commit.json", "w") as fp:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #6c6fe5379ff4191b Environment-variable access.
repo/utils/process_bad_commit_report.py:72
        token=os.environ.get("TRANSFORMERS_CI_RESULTS_UPLOAD_TOKEN", None),

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #f9da88bb4866b25b Filesystem access.
repo/utils/process_bad_commit_report.py:76
    with open("new_failures_with_bad_commit_url.txt", "w") as fp:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #5b925cae86fc3c35 Filesystem access.
repo/utils/process_bad_commit_report.py:132
    with open("new_failures_with_bad_commit_grouped_by_authors.json", "w") as fp:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #8bcbd054f573cbfb Environment-variable access.
repo/utils/process_bad_commit_report.py:139
        token=os.environ.get("TRANSFORMERS_CI_RESULTS_UPLOAD_TOKEN", None),

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low egress production #15968cfdfca8b7a1 Outbound request to a variable or assembled URL on a network client. Review what data is sent to this destination.
repo/utils/process_circleci_workflow_test_reports.py:28
    r = requests.get(
        f"https://circleci.com/api/v2/workflow/{args.workflow_id}/job",
        headers={"Circle-Token": os.environ.get("CIRCLE_TOKEN", "")},
    )

Data is sent to a hardcoded external endpoint; review what leaves the process.

Fix: Verify the destination and that only non-sensitive data is sent; pin and audit the dependency.

low env_fs production #a8e998ff0ef0532f Environment-variable access.
repo/utils/process_circleci_workflow_test_reports.py:30
        headers={"Circle-Token": os.environ.get("CIRCLE_TOKEN", "")},

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low egress production #b088ddf8d272ef16 Outbound request to a variable or assembled URL on a network client. Review what data is sent to this destination.
repo/utils/process_circleci_workflow_test_reports.py:41
            r = requests.get(url, headers={"Circle-Token": os.environ.get("CIRCLE_TOKEN", "")})

Data is sent to a hardcoded external endpoint; review what leaves the process.

Fix: Verify the destination and that only non-sensitive data is sent; pin and audit the dependency.

low env_fs production #431596ec8e80b02e Environment-variable access.
repo/utils/process_circleci_workflow_test_reports.py:41
            r = requests.get(url, headers={"Circle-Token": os.environ.get("CIRCLE_TOKEN", "")})

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low egress production #5b80dd78ec8075ed Outbound request to a variable or assembled URL on a network client. Review what data is sent to this destination.
repo/utils/process_circleci_workflow_test_reports.py:52
                    r = requests.get(url, headers={"Circle-Token": os.environ.get("CIRCLE_TOKEN", "")})

Data is sent to a hardcoded external endpoint; review what leaves the process.

Fix: Verify the destination and that only non-sensitive data is sent; pin and audit the dependency.

low env_fs production #e4370f4b088bc30c Environment-variable access.
repo/utils/process_circleci_workflow_test_reports.py:52
                    r = requests.get(url, headers={"Circle-Token": os.environ.get("CIRCLE_TOKEN", "")})

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low egress production #56f72b54048b9f6b Outbound request to a variable or assembled URL on a network client. Review what data is sent to this destination.
repo/utils/process_circleci_workflow_test_reports.py:55
                    r = requests.get(url, headers={"Circle-Token": os.environ.get("CIRCLE_TOKEN", "")})

Data is sent to a hardcoded external endpoint; review what leaves the process.

Fix: Verify the destination and that only non-sensitive data is sent; pin and audit the dependency.

low env_fs production #c1c5f508a720c6f1 Environment-variable access.
repo/utils/process_circleci_workflow_test_reports.py:55
                    r = requests.get(url, headers={"Circle-Token": os.environ.get("CIRCLE_TOKEN", "")})

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #9b1bdde60f798823 Filesystem access.
repo/utils/process_circleci_workflow_test_reports.py:69
            with open(f"outputs/{job['name']}/test_summary.json", "w") as fp:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #9dbe1dbeb78528cc Filesystem access.
repo/utils/process_circleci_workflow_test_reports.py:112
    with open("outputs/test_summary.json", "w") as fp:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #320be18f10c482da Filesystem access.
repo/utils/process_circleci_workflow_test_reports.py:145
    with open("outputs/failure_summary.json", "w") as fp:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #8b4143719e1aec9d Filesystem access.
repo/utils/process_test_artifacts.py:32
        with open(filepath, "r") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #47e5c9deb1fae018 Filesystem access.
repo/utils/process_test_artifacts.py:48
    with open(input_file, "r") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #b789b1b16df04a2f Filesystem access.
repo/utils/process_test_artifacts.py:67
    with open(output_file, "w") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #dc06b527a78417df Filesystem access.
repo/utils/release.py:89
    with open(fname, "r", encoding="utf-8", newline="\n") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #6e25f2c72f35094d Filesystem access.
repo/utils/release.py:94
    with open(fname, "w", encoding="utf-8", newline="\n") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #d4360028f64369d6 Filesystem access.
repo/utils/release.py:112
                if UV_SCRIPT_MARKER in Path(folder, fname).read_text():

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #5ee5e7e645fe29cf Filesystem access.
repo/utils/release.py:157
    with open(REPLACE_FILES["init"], "r") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #1d9e8fd4bed0b27b Filesystem access.
repo/utils/scan_skipped_tests.py:38
        content = file_path.read_text(encoding="utf-8")

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #3c209829baf45e58 Filesystem access.
repo/utils/scan_skipped_tests.py:83
        file_content = file_path.read_text(encoding="utf-8")

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #fd470fdcbb7e9d24 Filesystem access.
repo/utils/scan_skipped_tests.py:90
    output_path.write_text(json.dumps(obj, indent=2), encoding="utf-8")

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #0182947c1c1b3933 Environment-variable access.
repo/utils/set_cuda_devices_for_ci.py:21
    elif "CUDA_VISIBLE_DEVICES" in os.environ:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #43d73a78324b5f21 Environment-variable access.
repo/utils/set_cuda_devices_for_ci.py:22
        cuda_visible_devices = os.environ.get("CUDA_VISIBLE_DEVICES")

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #fc78c16dafe0b236 Filesystem access.
repo/utils/sort_auto_mappings.py:67
    with open(fname, "r", encoding="utf-8") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #1a70510dc8b05f87 Filesystem access.
repo/utils/sort_auto_mappings.py:101
        with open(fname, "w", encoding="utf-8") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #62fb6ee6b99aeb21 Filesystem access.
repo/utils/tests_fetcher.py:208
        with open(folder / filename, "r", encoding="utf-8") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #9fb747a19c343dae Filesystem access.
repo/utils/tests_fetcher.py:211
    with open(folder / filename, "r", encoding="utf-8") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #dc2abff88d5077ee Filesystem access.
repo/utils/tests_fetcher.py:234
        with open(folder / filename, "r", encoding="utf-8") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #79d723fff7aeb869 Filesystem access.
repo/utils/tests_fetcher.py:237
    with open(folder / filename, "r", encoding="utf-8") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #c72e04ecf1e0f250 Filesystem access.
repo/utils/tests_fetcher.py:279
            with open(folder / "tests/utils/tiny_model_summary.json", "r", encoding="utf-8") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #6e32df675fe93258 Filesystem access.
repo/utils/tests_fetcher.py:282
        with open(folder / "tests/utils/tiny_model_summary.json", "r", encoding="utf-8") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #761319d6718e65aa Filesystem access.
repo/utils/tests_fetcher.py:458
    with open("utils/not_doctested.txt") as fp:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #048ad3600a0b6c0f Filesystem access.
repo/utils/tests_fetcher.py:482
            with open(folder / "utils/not_doctested.txt", "r", encoding="utf-8") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #81e29133c6927676 Filesystem access.
repo/utils/tests_fetcher.py:484
        with open(folder / "utils/not_doctested.txt", "r", encoding="utf-8") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #a7bed99eb97ef415 Filesystem access.
repo/utils/tests_fetcher.py:530
    with open("utils/slow_documentation_tests.txt") as fp:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #5d970b1b4d6e7b77 Filesystem access.
repo/utils/tests_fetcher.py:582
    with open(PATH_TO_REPO / module_fname, "r", encoding="utf-8") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #c11fa74bc548b56d Filesystem access.
repo/utils/tests_fetcher.py:824
        with open(test_file, "r", encoding="utf-8") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #2229ddd75c0e5954 Filesystem access.
repo/utils/tests_fetcher.py:1065
        with open(doctest_file, "w", encoding="utf-8") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #e8976ff8660ebca5 Filesystem access.
repo/utils/tests_fetcher.py:1080
    with open(output_file, "r", encoding="utf-8") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #72ece7ba4815d210 Filesystem access.
repo/utils/tests_fetcher.py:1092
    with open(output_file, "w", encoding="utf-8") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #7a2d90225ebc9c51 Filesystem access.
repo/utils/tests_fetcher.py:1158
        with open(file_name, "w") as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #68cb4d290038be76 Filesystem access.
repo/utils/update_metadata.py:285
    with open(hub_frameworks_json) as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #955e3296d71eb2b9 Filesystem access.
repo/utils/update_metadata.py:294
    with open(hub_pipeline_tags_json) as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #a6e76aade6d2dbcd Filesystem access.
repo/utils/update_metadata.py:301
        with open(os.path.join(tmp_dir, "frameworks.json")) as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #ce80f5dbcfce1961 Filesystem access.
repo/utils/update_metadata.py:303
        with open(os.path.join(tmp_dir, "pipeline_tags.json")) as f:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low egress production #54cd497ee92d5ae9 Outbound request to a variable or assembled URL on a network client. Review what data is sent to this destination.
repo/utils/update_pr_ci_dashboard_recap.py:78
        with urllib.request.urlopen(request, timeout=30) as response:

Data is sent to a hardcoded external endpoint; review what leaves the process.

Fix: Verify the destination and that only non-sensitive data is sent; pin and audit the dependency.

low env_fs production #12d5bf08719c5528 Environment-variable access.
repo/utils/update_pr_ci_dashboard_recap.py:331
    token = os.environ["GITHUB_TOKEN"]

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #94e62b5e29024b51 Environment-variable access.
repo/utils/update_pr_ci_dashboard_recap.py:332
    repo = os.environ["GITHUB_REPOSITORY"]

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #fdb415db1e97e582 Environment-variable access.
repo/utils/update_pr_ci_dashboard_recap.py:333
    event_path = os.environ["GITHUB_EVENT_PATH"]

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #ffeb217a2fbda2c7 Filesystem access.
repo/utils/update_pr_ci_dashboard_recap.py:335
    with open(event_path, encoding="utf-8") as event_file:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #8868056bb4fdf020 Filesystem access.
repo/utils/update_tiny_models.py:60
    with open("tests/utils/tiny_model_summary.json") as fp:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #bfed8ff33f00edf7 Filesystem access.
repo/utils/update_tiny_models.py:143
        with open(os.path.join(output_path, "hub_tiny_model_summary.json"), "w") as fp:

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #7d48cdc7325533d3 Environment-variable access.
repo/utils/update_tiny_models.py:171
        token=os.environ.get("TOKEN", None),

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.