CodeQL #154
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: "CodeQL" | |
on: | |
push: | |
branches: [master] | |
pull_request: | |
branches: [master] | |
workflow_dispatch: | |
branches: [master] | |
schedule: | |
- cron: '0 15 * * 4' | |
# ensure testing on actual specified versions, and not auto-upgraded toolchain | |
# versions | |
env: | |
GOTOOLCHAIN: local | |
jobs: | |
analyse: | |
name: Analyse | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Setup Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version: '1.22.x' | |
check-latest: true | |
id: go | |
- name: build | |
env: | |
GO111MODULE: "on" | |
GOPROXY: "https://proxy.golang.org" | |
run: go build ./... | |
# Initializes the CodeQL tools for scanning. | |
- name: Initialize CodeQL | |
uses: github/codeql-action/init@v2 | |
with: | |
languages: go | |
- name: Perform CodeQL Analysis | |
uses: github/codeql-action/analyze@v2 |