mirror of
https://github.com/github/codeql.git
synced 2025-12-21 11:16:30 +01:00
Handle disabled Maven repositories
This commit is contained in:
@@ -17,7 +17,8 @@ import java
|
||||
import semmle.code.xml.MavenPom
|
||||
|
||||
predicate isInsecureRepositoryUsage(DeclaredRepository repository) {
|
||||
repository.getRepositoryUrl().regexpMatch("(?i)^(http|ftp)://(?!localhost[:/]).*")
|
||||
repository.getRepositoryUrl().regexpMatch("(?i)^(http|ftp)://(?!localhost[:/]).*") and
|
||||
not repository.isDisabled()
|
||||
}
|
||||
|
||||
from DeclaredRepository repository
|
||||
|
||||
Reference in New Issue
Block a user