actions-rs / audit-check

🛡️ GitHub Action for security audits
https://github.com/marketplace/actions/rust-audit-check
MIT License
170 stars 39 forks source link

Bad parsing of cargo audit results in warnings being undefined #213

Open eutampieri opened 3 years ago

eutampieri commented 3 years ago

Do the checklist before filing an issue:

Description

The workflow errors with Error: t is not iterable

Workflow code

https://github.com/MyK00L/cmsrs/actions/runs/1156620794/workflow

Paste that part of your workflow yaml file that causes the bug in here.

Alternatively you can remove that code block and insert direct link to your workflow file.
Ensure that link points to the specific commit, and not just to the master branch.

Action output


  {"database":{"advisory-count":340,"last-commit":"101d914e049f02bf7527aabbc32556461b2d5a46","last-updated":"2021-08-22T09:43:52Z"},"lockfile":{"dependency-count":201},"settings":{"target_arch":null,"target_os":null,"severity":null,"ignore":[],"informational_warnings":["unmaintained"],"package_scope":null},"vulnerabilities":{"found":false,"count":0,"list":[]},"warnings":{}}
9
No vulnerabilities were found
10
Warning: undefined warnings found!
11
Error: t is not iterable

Expected behavior

The test passes

Additional context

i think it may be related to the workaround for audit <0.12