trivyOutputJson.forEach is not a function
See original GitHub issueI am having 100% failure rate with new and formerly functioning builds with this plugin. It exits with:
Error: trivyOutputJson.forEach is not a function
I’ve gone to other public repos that use this plugin and see the same errors in their pipelines that worked as late as yesterday afternoon.
Example: https://github.com/StatCan/aaw-kubeflow-containers/runs/3815148249?check_suite_focus=true
Issue Analytics
- State:
- Created 2 years ago
- Reactions:14
- Comments:14 (1 by maintainers)
Top Results From Across the Web
Uncaught TypeError: json.forEach is not a function
forEach only works on array-type data. let myJSON = { "name": "naam" , "schools" : [ "silver stone" , "woodlands stone" , "patthar"...
Read more >forEach is not a function error with JavaScript array [Solution ...
It is a case where your data response looks like an array but it is an Object. Object does not have forEach, it...
Read more >Fix Uncaught TypeError: forEach is not a function Error in ...
The JavaScript "forEach is not a function" error occurs when you call the method 'forEach()' on a variable or property that's not of...
Read more >Trivy: Scanner for Vulnerabilities in Container Images, File ...
Scanner for vulnerabilities in container images, file systems, and Git repositories, as well as for configuration issues.
Read more >Security update for kubevirt, virt-api-container, virt-controller ...
An update that solves three vulnerabilities and has two fixes is now available. Description: This update for kubevirt, virt-api-container, ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I am also facing this issue. Since around 3:00am this morning all runs having been failing with the error given above.
It seems a couple days ago trivy updated their json schema: https://github.com/aquasecurity/trivy/commit/b37f682ee243d4f7bf5ef83cca53d70aa36d7f5f
The error for me coincides with this commit: https://github.com/aquasecurity/trivy/commit/f12446d3ba26b89f5c443abcd5aee2bad2dea1c8
Same here, started happening yesterday