prospector-html
HTML and JSON report generator from prospector and semgrep static analyzer tools JSON output. Handy when using with GitLab CI.
Synopsis
prospector
pip3 install prospector
pip3 install prospector2html
cd <python-project-sources-dir>
prospector --no-style-warnings --strictness medium --output-format json > prospector_report.json
prospector-html --input prospector_report.json
cat prospector-html-report.html
semgrep
pip3 install prospector2html
cd <project-sources-dir>
docker run --rm -v "${PWD}:/src" returntocorp/semgrep:latest semgrep scan --json --output semgrep-native-report.json --config=auto
prospector-html --input semgrep-native-report --output filtered-report.html --filter semgrep
cat filtered-report.html
GitLab CI SAST
pip3 install prospector2html
cd <project-sources-dir>
docker run --rm -v "${PWD}:/src" returntocorp/semgrep:latest semgrep ci --gitlab-sast --output gl-sast-report.json --config=auto
prospector-html --input gl-sast-report.json --output filtered-report.json --json --filter gitlab-sast
cat filtered-report.json
Message filtering
Sometimes it is necessary to filter analyzer results by content of the message,
rather than filter-out the whole error class by it's suppression.
For example prospector would always complains at usage of _meta member in Django projects.
In this case one could fileter such messages by specifing it in prospector-html config file.
.prospector-html.yaml by default. See details in the source of sample config or use following example:
# cat .prospector-html.yaml
filter:
message:
# Filter by exact match
- "Message to filter"
- Oter message to filter
message_re:
# Regexps to filter
- 'Exactly one space required after comma.*'
- 'Exactly one space required before assignment.*'
TODO
- ???.
Metadata
Release files for prospector2html 2.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| prospector2html-2.0.0.tar.gz | 5.9 kB | Without provenance | Details for prospector2html-2.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| prospector2html-2.0.0-py3-none-any.whl | Python 3 | none | any | Details for prospector2html-2.0.0-py3-none-any.whl |
Total release size: 12.5 kB
Release files / prospector2html-2.0.0.tar.gz
| Download URL | prospector2html-2.0.0.tar.gz |
|---|---|
| Size | 5.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2b30bc688c96386bf9ab29b198b4e77aff1ef0614d4acc577f10529710dd5828
|
|
BLAKE2b-256 checksum How to use checksums |
0565b01d8afba7bcf74c1beb6a7edae4f316d24088865fcb6776a3dad807a909
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.0 CPython/3.9.2
|
Release files / prospector2html-2.0.0-py3-none-any.whl
| Download URL | prospector2html-2.0.0-py3-none-any.whl |
|---|---|
| Size | 6.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c17b76bf1780d74e5f0260f73da045cf6ee44e59931d051b42624308a1abed46
|
|
BLAKE2b-256 checksum How to use checksums |
e9072877a6717f9ab9c7fb6adf88b53029865b6acc0d18ab3091d1e08db78b61
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.0 CPython/3.9.2
|
Security for prospector2html 2.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.