question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

trivyOutputJson.forEach is not a function

See original GitHub issue

I 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:closed
  • Created 2 years ago
  • Reactions:14
  • Comments:14 (1 by maintainers)

github_iconTop GitHub Comments

4reactions
dagrover-devcommented, Oct 6, 2021

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

3reactions
asmirnoffcommented, Oct 7, 2021

Same here, started happening yesterday

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found