fabasoad/SARIF to Slack notification

GitHub action sends notification to Slack based on SARIF file

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Activelast commit Jul 9, 2026
License
MIT

Pinned Snippet

workflow.ymlSHA-pinned
uses: fabasoad/sarif-to-slack-action@b8699587a714b2b385ffd1f7aa3406af84c92955 # v3.0.6

tags can be moved; commit SHAs can't. why a SHA?

namedescriptionrequireddefault
slack-webhookTarget Slack webhook URL.yes
usernameSlack message username.no
icon-urlSlack message icon.no
colorDefault color of the Slack message if specific color was not found. It is a fallback option. no
color-emptyColor of the message when there are no findings in the provided SARIF file(s). no
color-severity-criticalColor of the message when at least one finding has "Critical" severity. no
color-severity-highColor of the message when at least one finding has "High" severity. no
color-severity-mediumColor of the message when at least one finding has "Medium" severity. no
color-severity-lowColor of the message when at least one finding has "Low" severity. no
color-severity-noneColor of the message when at least one finding has "None" severity. no
color-severity-unknownColor of the message when at least one finding has "Unknown" severity. no
color-level-errorColor of the message when at least one finding has "Error" level. no
color-level-warningColor of the message when at least one finding has "Warning" level. no
color-level-noteColor of the message when at least one finding has "Note" level. no
color-level-noneColor of the message when at least one finding has "None" level no
color-level-unknownColor of the message when at least one finding has "Unknown" level no
sarif-pathPath to the directory with SARIF files or to the SARIF file itself. Separate Slack messages will be sent for each SARIF file found in the directory. yes
sarif-path-recursiveIf provided SARIF path is a directory, whether to traverse provided SARIF path recursively or not. nofalse
sarif-file-extensionExtension for SARIF files. Possible values: sarif, json. nosarif
log-levelLog level of output. Possible options are "silly", "trace", "debug", "info", "warning", "error", "fatal". This parameter is ignored if CI pipeline is running in debug mode, e.g. ACTIONS_STEP_DEBUG is set to "true". noinfo
log-templateSpecifies the custom log message template to format log outputs, using the same template format as the tslog npm library. More details here: https://github.com/fullstack-build/tslog?tab=readme-ov-file#pretty-templates-and-styles-color-settings no[{{logLevelName}}] [{{name}}] {{dateIsoStr}}
log-coloredWhether logs should be colored or not.notrue
headerSlack message header.no
include-headerWhether to include header in the message.notrue
footerSlack message footer.no
include-footerWhether to include footer in the message.notrue
actorWho triggered the run.no${{ github.actor }}
include-actorWhether to include actor in the message.notrue
include-runWhether to include run in the message.notrue
representationSlack message representation. Possible values: compact-group-by-run-per-level, compact-group-by-run-per-severity, compact-group-by-tool-name-per-level, compact-group-by-tool-name-per-severity, compact-group-by-sarif-per-level, compact-group-by-sarif-per-severity, compact-total-per-level, compact-total-per-severity. nocompact-group-by-tool-name-per-severity
send-ifCondition on when Slack message should be sent. Possible values: severity-critical, severity-high, severity-high-or-higher, severity-medium, severity-medium-or-higher, severity-low, severity-low-or-higher, severity-none, severity-none-or-higher, severity-unknown, severity-unknown-or-higher, level-error, level-warning, level-warning-or-higher, level-note, level-note-or-higher, level-none, level-none-or-higher, level-unknown, level-unknown-or-higher, always, some, empty, never. noalways

no outputs