Skip to content

Commit 8a0a6f9

Browse files
committed
Add default parameters and extra checking for repoType
1 parent db07d3f commit 8a0a6f9

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

core/src/main/groovy/io/snyk/plugins/artifactory/snykSecurityPlugin.properties

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,11 +70,11 @@ snyk.api.organization=
7070
# than the current time minus the number of days in this configuration will be blocked from download. The use case is to prevent
7171
# packages that may contain zero-day vulnerabilities from being introduced to a consumer.
7272
# Default: 0
73-
#snyk.scanner.lastModified.days
73+
#snyk.scanner.lastModified.days=0
7474

7575
# If remoteOnly is set to true, only check lastModified for packages contained in remote repositories.
7676
# Default: true
77-
#snyk.scanner.lastModified.remoteOnly
77+
#snyk.scanner.lastModified.remoteOnly=true
7878

7979
# By default, if Snyk API fails while scanning an artifact for any reason, the download will be allowed.
8080
# Setting this property to "true" will block downloads when Snyk API fails.

core/src/main/java/io/snyk/plugins/artifactory/scanner/ScannerModule.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ private boolean isRemoteRepository(RepoPath repoPath) {
126126

127127
LOG.debug("Found repository type: {}", repoType);
128128

129-
return repoType.equals("remote");
129+
return repoType.toLowerCase().equals("remote");
130130
}
131131

132132
private boolean shouldTestContinuously() {

0 commit comments

Comments
 (0)