File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -380,7 +380,7 @@ class DeclaredRepository extends PomElement {
380
380
* Gets the url for this repository. If the `url` tag is present, this will
381
381
* be the string contents of that tag.
382
382
*/
383
- string getUrl ( ) { result = this .getAChild ( "url" ) .( PomElement ) .getValue ( ) }
383
+ string getRepositoryUrl ( ) { result = this .getAChild ( "url" ) .( PomElement ) .getValue ( ) }
384
384
}
385
385
386
386
/**
Original file line number Diff line number Diff line change @@ -14,10 +14,10 @@ import java
14
14
import semmle.code.xml.MavenPom
15
15
16
16
predicate isBintrayRepositoryUsage ( DeclaredRepository repository ) {
17
- repository .getUrl ( ) .matches ( "%.bintray.com%" )
17
+ repository .getRepositoryUrl ( ) .matches ( "%.bintray.com%" )
18
18
}
19
19
20
20
from DeclaredRepository repository
21
21
where isBintrayRepositoryUsage ( repository )
22
22
select repository ,
23
- "Downloading or uploading artifacts to deprecated repository " + repository .getUrl ( )
23
+ "Downloading or uploading artifacts to deprecated repository " + repository .getRepositoryUrl ( )
Original file line number Diff line number Diff line change @@ -17,11 +17,11 @@ import java
17
17
import semmle.code.xml.MavenPom
18
18
19
19
predicate isInsecureRepositoryUsage ( DeclaredRepository repository ) {
20
- repository .getUrl ( ) .regexpMatch ( "(?i)^(http|ftp)://(?!localhost[:/]).*" )
20
+ repository .getRepositoryUrl ( ) .regexpMatch ( "(?i)^(http|ftp)://(?!localhost[:/]).*" )
21
21
}
22
22
23
23
from DeclaredRepository repository
24
24
where isInsecureRepositoryUsage ( repository )
25
25
select repository ,
26
26
"Downloading or uploading artifacts over insecure protocol (eg. http or ftp) to/from repository " +
27
- repository .getUrl ( )
27
+ repository .getRepositoryUrl ( )
You can’t perform that action at this time.
0 commit comments