You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if (lastModifiedDateRemoteOnly() && LOGGED_REMOTE_ONLY_IGNORED_WITH_ALLOWLIST.compareAndSet(false, true)) {
163
+
LOG.warn(
164
+
"snyk.scanner.lastModified.remoteOnly is set but ignored because snyk.scanner.lastModified.allowlist is configured; remove remoteOnly."
165
+
);
166
+
}
167
+
if (LastModifiedRepositoryPolicy.repoKeyMatchesAllowlist(repoKey, allowlist)) {
168
+
LOG.debug("Repository key matches last-modified allowlist, skipping last modified date for {}", repoPath);
169
+
returntrue;
170
+
}
171
+
returnfalse;
172
+
}
173
+
174
+
if (lastModifiedDateRemoteOnly()) {
175
+
if (LOGGED_DEPRECATED_REMOTE_ONLY.compareAndSet(false, true)) {
176
+
LOG.warn(
177
+
"snyk.scanner.lastModified.remoteOnly is deprecated; use snyk.scanner.lastModified.allowlist to skip the last-modified check for specific repository keys."
178
+
);
179
+
}
180
+
if (!isRemoteRepository(repoPath)) {
181
+
LOG.debug("Legacy remoteOnly: repository is not remote, skipping last modified date for {}", repoPath);
182
+
returntrue;
183
+
}
184
+
}
185
+
186
+
returnfalse;
187
+
}
188
+
189
+
/** Used only when {@link PluginConfiguration#SCANNER_LAST_MODIFIED_CHECK_ONLY_REMOTE} is true and the allowlist is empty. */
0 commit comments