[DO NOT MERGE] Add check to avoid index out of range panics #1261
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "Code Scanning - Action" | |
on: | |
pull_request: | |
paths: | |
- "**.go" | |
push: | |
branches: [ main ] | |
paths: | |
- "**.go" | |
jobs: | |
CodeQL-Build: | |
runs-on: ubuntu-latest | |
permissions: | |
actions: read | |
contents: read | |
security-events: write | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3.5.3 | |
# Initializes the CodeQL tools for scanning. | |
- name: Initialize CodeQL | |
uses: github/codeql-action/init@v2 | |
with: | |
languages: 'go' | |
queries: crypto-com/cosmos-sdk-codeql@main,security-and-quality | |
- name: Autobuild | |
uses: github/codeql-action/autobuild@v2 | |
- name: Perform CodeQL Analysis | |
uses: github/codeql-action/analyze@v2 |