File tree Expand file tree Collapse file tree
core/src/main/java/io/snyk/plugins/artifactory/scanner Expand file tree Collapse file tree Original file line number Diff line number Diff 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."
You can’t perform that action at this time.
0 commit comments