diff --git a/CHANGELOG.md b/CHANGELOG.md index c8fb7fe0c1e..ecc4a7a14d8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -19,6 +19,7 @@ Note: Can be used with `oxsecurity/megalinter@beta` in your GitHub Action mega-l - [csharpier](https://megalinter.io/latest/descriptors/csharp_csharpier/): They reverted v0.30 in v0.31, so we revert it too - Fixes + - [trivy](https://megalinter.io/latest/descriptors/repository_trivy/): retry in case of BLOB_UNKNOWN while downloading vulnerability list - Reporters - Fix UpdatedSourcesReporter when `APPLY_FIXES` is list (array) diff --git a/megalinter/linters/TrivyLinter.py b/megalinter/linters/TrivyLinter.py index 3e40a34e90f..448ad87daa5 100644 --- a/megalinter/linters/TrivyLinter.py +++ b/megalinter/linters/TrivyLinter.py @@ -14,8 +14,10 @@ class TrivyLinter(Linter): def execute_lint_command(self, command): return_code, return_output = super().execute_lint_command(command) - if ("TOOMANYREQUESTS" in return_output) or ( - "failed to download Java DB" in return_output + if ( + ("TOOMANYREQUESTS" in return_output) + or ("failed to download Java DB" in return_output) + or ("BLOB_UNKNOWN" in return_output) ): # Try 5 times if self.counter < 5: