Skip to content

CodeQL

CodeQL #43

Workflow file for this run

name: CodeQL
on:
push:
branches: ["main"]
pull_request:
schedule:
- cron: "0 5 * * 1"
concurrency:
group: codeql-${{ github.ref }}
cancel-in-progress: true
jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write
strategy:
fail-fast: false
matrix:
language: ["javascript-typescript", "go"]
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Initialize CodeQL
uses: github/codeql-action/init@v4
with:
languages: ${{ matrix.language }}
- name: Setup pnpm
if: matrix.language == 'javascript-typescript'
uses: pnpm/action-setup@v6
- name: Setup Node.js
if: matrix.language == 'javascript-typescript'
uses: actions/setup-node@v6
with:
node-version: 20
cache: pnpm
- name: Install JavaScript dependencies
if: matrix.language == 'javascript-typescript'
run: pnpm install --frozen-lockfile=false
- name: Setup Go
if: matrix.language == 'go'
uses: actions/setup-go@v5
with:
go-version: "1.23"
- name: Build Go runtime
if: matrix.language == 'go'
run: go build ./...
working-directory: runtime/daemon
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v4