Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Zygimantass committed Jan 16, 2025
1 parent 2fde028 commit 4bd96d1
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/52.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v3

- uses: actions/setup-go@v5
with:
go-version: 1.22
- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
Expand All @@ -31,24 +33,22 @@ jobs:
id: analyze
with:
upload: never
output: ../codeql-results.sarif
output: ../results

- name: Install jq
uses: dcarbone/install-jq-action@v3.0.1
- name: Annotate code with findings
run: |
set -eoux pipefail
cat ${{ steps.analyze.outputs.sarif-output }}
issues=$(jq -r '
.runs[].results[] |
. as $r |
($r.locations[0].physicalLocation.artifactLocation.uri | select(. != null)) as $file |
($r.locations[0].physicalLocation.region.startLine | select(. != null)) as $line |
($r.message.text | gsub("[\r\n]"; " ")) as $msg |
[$file, $line, $msg] | @tsv
' ${{ steps.analyze.outputs.sarif-output }} )
' ${{ steps.analyze.outputs.sarif-output }}/go.sarif )
while IFS=$'\t' read -r file line msg; do
file="${file#file://}"
Expand Down

0 comments on commit 4bd96d1

Please sign in to comment.