Closed NeonDaniel closed 5 months ago
Hi @NeonDaniel, thanks for the report. Taking a look now.
Hmm, I can't immediately reproduce this locally: your workflow is using cyclonedx-python-lib==7.4.1
(source), which is the same mine is using locally, without issues.
Ah, I think I see the problem here: your workflow is using pypa/gh-action-pip-audit@v1.0.0
, which is selecting an older version of pip-audit
.
Could you try using v1.0.8
instead? That's the latest version of this action, and it shouldn't have these problems.
(Also, where did you get v1.0.0
from? That might be an old doc that needs updating somewhere.)
(Also, where did you get
v1.0.0
from? That might be an old doc that needs updating somewhere.)
It looks like the automation was originally written by @JarbasAI; I was just looking into the failures (I'm actually not sure how long the automation has been failing.
I completely missed that we were using 1.0.0 while 1.0.8 is the latest. I see now that the examples and latest release do specify 1.0.8.
Updating to the latest appears to have resolved the issues
Glad to hear it, and thanks for the detailed report regardess!
Current behavior
When running the action against Python 3.8-3.10, the action fails due to a missing output file. After enabling debugging, it appears this is due to a breaking change in the
cyclonedx-python-lib
dependency. The issue did not fail for Python 3.7 which resolves an older version of this dependency.Expected behavior
I would expect the action to pass or else print the relevant vulnerabilities causing failure
Steps to reproduce
build_tests (3.7)
will exit with a valid result while the other runs will fail withFileNotFoundError: [Errno 2] No such file or directory: '/tmp/pip-audit-output.txt'
Relevant context
I diagnosed the issue with this action run. Relevant logs:
I was able to make the automation use cyclonedx~=4.0 which got the automation passing.