Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sarif_to_annotations-0.1.0.tar.gz (3.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sarif_to_annotations-0.1.0-py3-none-any.whl (5.7 kB view details)

Uploaded Python 3

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

Hashes for sarif_to_annotations-0.1.0.tar.gz
Algorithm Hash digest
SHA256 4cf49d83e79c67228d2a85d489cfce073dc292a5e3b16d74100e07558b269e6f
MD5 8fa93493d705728cbf8113c2ce909076
BLAKE2b-256 50b233447e74dcfd7070cf3438f348d1b25a3d973431a2a45d416c21c157a8a0

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file sarif_to_annotations-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for sarif_to_annotations-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 79bce7db83ee989ee305013f9203a4b5aae60a5a172c099694375bfa790824db
MD5 2bed2e4373d5960d532cf457004e8b0a
BLAKE2b-256 d95767161a69edf0e07712ac087ae08302844d9e40f41fa38b5176d264a95c36

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page