Fixes some linter errors to fix workflow error (#602) #894
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: Analysis | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
schedule: | |
- cron: 13 7 * * 6 | |
jobs: | |
linting: | |
runs-on: ubuntu-latest | |
steps: | |
- name: checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: golangci-lint | |
uses: golangci/golangci-lint-action@eab1d2f3d76f26c09e2ab8c957fe5bb64bf46b89 | |
with: | |
version: v1.62.2 | |
- name: shellcheck | |
uses: azohra/shell-linter@6bbeaa868df09c34ddc008e6030cfe89c03394a1 | |
with: | |
path: scripts/test-* | |
severity: error | |
- name: yaml-lint | |
uses: ibiqlik/action-yamllint@v3 | |
with: | |
config_file: .yamllint.yml | |
vulnerabilities: | |
runs-on: ubuntu-latest | |
permissions: | |
security-events: write | |
steps: | |
- name: checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: initialize | |
uses: github/codeql-action/init@v3 | |
with: | |
languages: go | |
- name: codeql analyze | |
uses: github/codeql-action/analyze@v3 |