Skip to content

feat(ci): test 52 upgrade #5

feat(ci): test 52 upgrade

feat(ci): test 52 upgrade #5

Workflow file for this run

name: CodeQL Lint (Go, No Security Alerts)
on:
pull_request:
types: [opened, synchronize, reopened]
permissions:
contents: read
jobs:
codeql-lint:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
token: ${{ secrets.GITHUB_TOKEN }}
languages: go
queries: skip-mev/cosmos-52-ql
- name: Build (Make Install)
run: |
make install
- name: Analyze with CodeQL (no upload)
uses: github/codeql-action/analyze@v3
with:
upload: false
output: codeql-results.sarif
- name: Annotate code with findings
run: |
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
' codeql-results.sarif)
while IFS=$'\t' read -r file line msg; do
file="${file#file://}"
echo "::warning file=$file,line=$line::$msg"
done <<< "$issues"