Skip to content

Commit 9e94732

Browse files
committed
🐛 enable semgrep tool name to be capitalized, as it is when run on GitHub actions
1 parent c5a5bbe commit 9e94732

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

plugins/codemodder-plugin-semgrep/src/main/java/io/codemodder/providers/sarif/semgrep/SemgrepProvider.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,6 @@ public Set<AbstractModule> getModules(
3232

3333
@Override
3434
public List<String> wantsSarifToolNames() {
35-
return List.of("semgrep");
35+
return List.of("semgrep", "Semgrep");
3636
}
3737
}

plugins/codemodder-plugin-semgrep/src/main/java/io/codemodder/providers/sarif/semgrep/SemgrepRuleSarifFactory.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ public class SemgrepRuleSarifFactory implements RuleSarifFactory {
1212
@Override
1313
public Optional<RuleSarif> build(
1414
String toolName, String rule, SarifSchema210 sarif, Path repositoryRoot) {
15-
if (SingleSemgrepRuleSarif.toolName.equals(toolName)) {
15+
if (SingleSemgrepRuleSarif.toolName.equalsIgnoreCase(toolName)) {
1616
return Optional.of(new SingleSemgrepRuleSarif(rule, sarif, repositoryRoot));
1717
}
1818
return Optional.empty();

0 commit comments

Comments
 (0)