Action converting SARIF files into GitHub annotations for pull requests.
Project description
sarif-to-annotations
Python CLI that converts SARIF files into annotations that GitHub can understand.
Installation
Either:
- Use the container image from GHCR (
ghcr.io/saleor/sarif-to-annotations)
- Install from PyPI:
pip install sarif-to-annotations
Usage
$ sarif-to-annotations <PATH_TO_SARIF>
For example, if using GHCR, you can do the following:
$ docker run \
-v ./:/work:ro \
-w /work \
--rm \
ghcr.io/saleor/sarif-to-annotations \
./test/assets/semgrep-results-found.json
Example output:
::error file=.github/workflows/create-tag-with-release-pr.yml,line=83::Potential script injection through string interpolation%2C use an intermediate environment variable instead of ${{ ... }}.
::error file=.github/workflows/publish-load-test.yml,line=17::Potential script injection through string interpolation%2C use an intermediate environment variable instead of ${{ ... }}.
::error file=.github/workflows/publish-load-test.yml,line=43::Potential script injection through string interpolation%2C use an intermediate environment variable instead of ${{ ... }}.
::error file=.github/workflows/test-env-deploy.yml,line=40::Potential script injection through string interpolation%2C use an intermediate environment variable instead of ${{ ... }}.
::error file=.github/workflows/tests-and-linters.yml,line=80::Potential script injection through string interpolation%2C use an intermediate environment variable instead of ${{ ... }}.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file sarif_to_annotations-0.1.0.tar.gz.
File metadata
- Download URL: sarif_to_annotations-0.1.0.tar.gz
- Upload date:
- Size: 3.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4cf49d83e79c67228d2a85d489cfce073dc292a5e3b16d74100e07558b269e6f
|
|
| MD5 |
8fa93493d705728cbf8113c2ce909076
|
|
| BLAKE2b-256 |
50b233447e74dcfd7070cf3438f348d1b25a3d973431a2a45d416c21c157a8a0
|
Provenance
The following attestation bundles were made for sarif_to_annotations-0.1.0.tar.gz:
Publisher:
publish-pypi.yaml on saleor/sarif-to-annotations
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
sarif_to_annotations-0.1.0.tar.gz -
Subject digest:
4cf49d83e79c67228d2a85d489cfce073dc292a5e3b16d74100e07558b269e6f - Sigstore transparency entry: 1041813285
- Sigstore integration time:
-
Permalink:
saleor/sarif-to-annotations@4db124bb9503c41b4e222086bfcf5915042375e3 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/saleor
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-pypi.yaml@4db124bb9503c41b4e222086bfcf5915042375e3 -
Trigger Event:
release
-
Statement type:
File details
Details for the file sarif_to_annotations-0.1.0-py3-none-any.whl.
File metadata
- Download URL: sarif_to_annotations-0.1.0-py3-none-any.whl
- Upload date:
- Size: 5.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
79bce7db83ee989ee305013f9203a4b5aae60a5a172c099694375bfa790824db
|
|
| MD5 |
2bed2e4373d5960d532cf457004e8b0a
|
|
| BLAKE2b-256 |
d95767161a69edf0e07712ac087ae08302844d9e40f41fa38b5176d264a95c36
|
Provenance
The following attestation bundles were made for sarif_to_annotations-0.1.0-py3-none-any.whl:
Publisher:
publish-pypi.yaml on saleor/sarif-to-annotations
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
sarif_to_annotations-0.1.0-py3-none-any.whl -
Subject digest:
79bce7db83ee989ee305013f9203a4b5aae60a5a172c099694375bfa790824db - Sigstore transparency entry: 1041813342
- Sigstore integration time:
-
Permalink:
saleor/sarif-to-annotations@4db124bb9503c41b4e222086bfcf5915042375e3 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/saleor
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-pypi.yaml@4db124bb9503c41b4e222086bfcf5915042375e3 -
Trigger Event:
release
-
Statement type: