Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add native SARIF output support #2062

Merged
merged 6 commits into from Apr 6, 2022

Conversation

yongyan-gh
Copy link
Contributor

Description

We are looking for the ability of ansible-lint tool to produce SARIF reports so the uses can upload the reports to GitHub in a custom workflow uses ansible-lint action and generate code scanning alert in the GitHub security tab for the issues it found.

The SARIF spec can be found at https://docs.oasis-open.org/sarif/sarif/v2.1.0/sarif-v2.1.0.html

Attached an example SARIF file generated with this change.
ansible-lint-results.zip

Screenshot of an example GitHub code scanning alert generated from the SARIF result:
image

Please review and let's know if any comment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants