Error: Invalid array length
sometimes occurs when severity_threshold
is set and exceeded
#150
Open
2 of 3 tasks
Labels
Support guidelines
I've found a bug and checked that ...
Description
As reported on #10 (comment) it seems the issue still persists even when using the latest v3/v3.0.0 release.
I have created a standalone repo and workflow which demonstrates the error: frankgrimes97/ghaction-container-scan-tests#1
Expected behaviour
It should output:
Actual behaviour
It outputs:
Steps to reproduce
We're sometimes getting this "Invalid array length" error on our scans so it appears that it may not be entirely fixed by #12.
Some of our image scans with
severity_threshold
work as expected, and others getError: Invalid array length
so it appears to depend on the actual Trivy output.Repository URL
frankgrimes97/ghaction-container-scan-tests#1
Workflow run URL
https://github.com/frankgrimes97/ghaction-container-scan-tests/actions/runs/10618322367/job/29433472519
YAML workflow
https://github.com/frankgrimes97/ghaction-container-scan-tests/blob/bug/severity-threshold-invalid-array-length-reproducer/.github/workflows/workflow.yml
Workflow logs
No response
Additional info
No response
The text was updated successfully, but these errors were encountered: