Skip to content

Commit

Permalink
Use ':rotating_light: alerts' for code scanning results
Browse files Browse the repository at this point in the history
  • Loading branch information
jsoref committed Sep 28, 2023
1 parent 5ca992f commit 280403b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion unknown-words.sh
Expand Up @@ -2360,7 +2360,7 @@ spelling_body() {
code_scanning_results_run=$(GH_TOKEN="$GITHUB_TOKEN" gh api "/repos/$GITHUB_REPOSITORY/commits/${GITHUB_HEAD_SHA:-$GITHUB_SHA}/check-runs" -q '.check_runs|map(select(.app.id==57789 and .name=="check-spelling"))[0].url // empty' || true)
if [ -n "$code_scanning_results_run" ]; then
code_scanning_results_url=$(GH_TOKEN="$GITHUB_TOKEN" gh api "$code_scanning_results_run" -q '.html_url // empty')
sarif_report="$sarif_report [:mag_right:]($code_scanning_results_url),"
sarif_report="$sarif_report [:rotating_light: alerts]($code_scanning_results_url),"
fi
or_markdown=','
else
Expand Down

0 comments on commit 280403b

Please sign in to comment.