Skip to content

Commit 8d48234

Browse files
zkoppertCopilot
andcommitted
fix: add missing ecosystems and normalize case in repo-specific exemptions
Add maven, gradle, and devcontainers to SUPPORTED_PACKAGE_ECOSYSTEMS - these are actively supported in dependabot_file.py but were missing from the validation list, which would have rejected valid configurations. Also add .lower() to parse_repo_specific_exemptions for consistent case-insensitive handling across both EXEMPT_ECOSYSTEMS and REPO_SPECIFIC_EXEMPTIONS. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent cfd1818 commit 8d48234

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

env.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,12 @@
1616
"bundler",
1717
"cargo",
1818
"composer",
19+
"devcontainers",
1920
"docker",
2021
"github-actions",
2122
"gomod",
23+
"gradle",
24+
"maven",
2225
"mix",
2326
"npm",
2427
"nuget",
@@ -87,7 +90,7 @@ def parse_repo_specific_exemptions(repo_specific_exemptions_str: str) -> dict:
8790
repo, ecosystems = exemption.split(":")
8891
cleaned_ecosystems = []
8992
for ecosystem in ecosystems.split(","):
90-
ecosystem = ecosystem.strip()
93+
ecosystem = ecosystem.strip().lower()
9194
if ecosystem not in SUPPORTED_PACKAGE_ECOSYSTEMS:
9295
raise ValueError(
9396
"REPO_SPECIFIC_EXEMPTIONS environment variable not formatted correctly. Unrecognized package-ecosystem."

0 commit comments

Comments
 (0)