Skip to content

ci: configure CodeQL workflow with Go 1.27 toolchain #3

ci: configure CodeQL workflow with Go 1.27 toolchain

ci: configure CodeQL workflow with Go 1.27 toolchain #3

Workflow file for this run

name: "CodeQL"
on:
push:
branches: ["main", "fix/**", "feature/**"]
pull_request:
branches: ["main"]
schedule:
- cron: '0 0 * * 0'
jobs:
analyze:
name: Analyze (go)
runs-on: ubuntu-latest
permissions:
security-events: write
actions: read
contents: read
steps:
- name: Checkout repository
uses: actions/checkout@v6
- name: Set up Go
uses: actions/setup-go@v6
with:
go-version-file: go.mod
cache: true
- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
languages: go
build-mode: manual
- name: Build Go packages
run: |
go build ./...
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3
with:
category: "/language:go"