advanced-security / policy-as-code

GitHub Advanced Security Policy as Code
MIT License
71 stars 14 forks source link

[Bug]: Dependency Graph Licensing Crash #96

Open GeekMasher opened 8 months ago

GeekMasher commented 8 months ago

What happened?

Seeing a crash in the Dependency Graph Licensing step in a test repo

Version

v2 (current major version

Where are you experiencing the issue?

GitHub Actions

Relevant log output

Dependency Graph Results - Licensing
  Loaded extra licensing information :: 9459
  Total Dependencies in Graph :: 699
  Error: Unknown Exception was hit, please repo this to https://github.com/advanced-security/policy-as-code
  Error: local variable 'warning' referenced before assignment
  Total unacceptable alerts :: 160
  Error: Unacceptable Threshold of Risk has been hit!
  Error: Process completed with exit code 1.

Code of Conduct

GeekMasher commented 8 months ago

Might be here

https://github.com/advanced-security/policy-as-code/blob/main/ghascompliance/checks.py#L384

amanaknows commented 2 months ago