pyupio / safety

Safety checks Python dependencies for known security vulnerabilities and suggests the proper remediations for vulnerabilities detected.
https://safetycli.com/product/safety-cli
MIT License
1.66k stars 141 forks source link

Safety 3.0.1 fails to output HTML report #512

Open quoimec opened 2 months ago

quoimec commented 2 months ago

Description

I'm trying to run safety locally to produce an HTML report however Safety continually fails with the following error message when I use the --output html option:

Unhandled exception happened: scan/index.html

No other output or context is provided by the package.

What I Did

I am running the following safety command to produce the report:

safety --stage production --key 'MY_KEY' scan --target SOME_DIR --output html --policy-file .safety-policy.yml

When I use the --output json option however, safety runs successfully. I am running Safety inside of an isolated Poetry environment with few other packages installed.