Skip to content

Commit fadea14

Browse files
committed
Add explicit logging for allowlist
1 parent 1371a28 commit fadea14

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,9 @@ private boolean shouldSkipLastModifiedForRepository(RepoPath repoPath) {
161161
LOG.debug("allowlist for last-modified check: {} for repoPath {}", allowlist, repoPath);
162162
LOG.debug("repoKey for last-modified check: {} for repoPath {}", repoKey, repoPath);
163163

164-
if (!allowlist.isEmpty()) {
164+
if (allowlist == null || allowlist.isEmpty()) {
165+
LOG.debug("No allowlist for last-modified check, skipping last modified date for {}", repoPath);
166+
} else {
165167
if (lastModifiedDateRemoteOnly() && LOGGED_REMOTE_ONLY_IGNORED_WITH_ALLOWLIST.compareAndSet(false, true)) {
166168
LOG.warn(
167169
"snyk.scanner.lastModified.remoteOnly is set but ignored because snyk.scanner.lastModified.allowlist is configured; remove remoteOnly."

0 commit comments

Comments
 (0)