Skip to content

advanced-security/flake8-sarif-formatter

Flake8 SARIF formatting plugin

ℹ️ This is an unofficial tool created by Field Security Services, and is not officially supported by GitHub.

This is a plugin for Flake8 (a Python linter) that formats the output as SARIF.

Installation

From PyPi

Install it with pip from PyPi:

python3 -mpip install flake8-sarif-formatter

From the GitHub repository

Clone the GitHub repository and install it with pip:

python3 -mpip . install

OR

Install straight from the GitHub repository:

python3 -mpip install pip --upgrade # make sure pip is sufficiently up-to-date for the #egg= fragment
python3 -mpip install 'git+https://github.com/advanced-security/flake8-sarif-formatter.git#egg=flake8-sarif-formatter'

Usage

Use it in Flake8 by referencing the plugin name sarif in your Flake8 configuration file on a single line, as:

format=sarif

or at the CLI with:

flake8 --format=sarif

License

This project is licensed under the terms of the MIT open source license. Please refer to the LICENSE for the full terms.

Maintainers

See CODEOWNERS for the list of maintainers.

Support

ℹ️ This is an unofficial tool created by Field Security Services, and is not officially supported by GitHub.

See the SUPPORT file.

Background

See the CHANGELOG, CONTRIBUTING, SECURITY, SUPPORT, CODE OF CONDUCT and PRIVACY files for more information.

About

Format Flake8 results as SARIF for input to SAST tools such as GitHub Code Scanning

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors