upload_to_github
Upload SAST results to GitHub Code Scanning using a SARIF file, enabling automated security feedback on pull requests.
Instructions
Upload a SARIF report to GitHub Code Scanning.
Requires a GITHUB_TOKEN environment variable with security_events: write
scope. Generate the SARIF file first with export_sarif(output_path=...).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sarif_path | Yes | Path to a SARIF file produced by `export_sarif`. | |
| repo | Yes | Repository in `owner/name` form. | |
| commit_sha | Yes | Full SHA of the commit the results apply to. | |
| ref | Yes | Fully qualified ref, e.g. `refs/heads/main`. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |