Skip to content

Commit 948ffee

Browse files
authored
Merge pull request #148 from snyk/feat/force-download-time-delay
feat: Add handling for forceDownload when checking the lastModifiedDate
2 parents ce48096 + f85625f commit 948ffee

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,12 @@ public void validate(MonitoredArtifact artifact) {
3131
}
3232

3333
private void validateLastModifiedDelay(MonitoredArtifact artifact) {
34+
boolean ignoreLastModifiedDelay = artifact.getIgnores().shouldIgnoreVulnIssues();
35+
if (ignoreLastModifiedDelay) {
36+
LOG.debug("Last modified date delay is ignored for {}", artifact.getPath());
37+
return;
38+
}
39+
3440
Integer delayDays = settings.getLastModifiedDelayDays().get();
3541
if (delayDays == null || delayDays <= 0) {
3642
LOG.debug("Last modifed date delay is disabled ({} days)", delayDays);

0 commit comments

Comments
 (0)