Skip to content

Add CodeQL support

Add CodeQL support #2

Workflow file for this run

name: Go
on:
push:
branches: [ "main" ]
jobs:
build:
name: Build
runs-on: ubuntu-latest
container: golang:1.22.2
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Test
run: go test -v ./...
- name: Build
run: go build -ldflags="-s -w" -o microq main.go
analyze:
name: Analyze Go
runs-on: ubuntu-latest
timeout-minutes: 360
permissions:
security-events: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
languages: go
build-mode: autobuild
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3
with:
category: "/language:go"