Skip to content

Fix linting issues and improve code quality #209

Fix linting issues and improve code quality

Fix linting issues and improve code quality #209

Workflow file for this run

name: codeql
on:
push:
branches:
- main
pull_request:
branches:
- main
schedule:
- cron: '0 0 * * 0'
concurrency:
group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.head_ref || github.ref }}
cancel-in-progress: true
permissions: {}
jobs:
analyze:
name: analyze
runs-on: ubuntu-latest
permissions:
contents: read
security-events: write
steps:
- name: checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
fetch-depth: 2
persist-credentials: false
- name: setup go
uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6.4.0
with:
go-version-file: 'go.mod'
- name: initialize codeql
uses: github/codeql-action/init@84498526a009a99c875e83ef4821a8ba52de7c22 #v4.31.10
with:
languages: go
- name: autobuild
uses: github/codeql-action/autobuild@84498526a009a99c875e83ef4821a8ba52de7c22 #v4.31.10
- name: perform codeql analysis
uses: github/codeql-action/analyze@84498526a009a99c875e83ef4821a8ba52de7c22 #v4.31.10
with:
category: '/language:go'