Skip to content

codeql

codeql #318

Workflow file for this run

---
name: "codeql"
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
schedule:
- cron: '39 20 * * 3'
permissions: { }
jobs:
analyze:
name: Analyze
runs-on: ${{ (matrix.language == 'swift' && 'macos-latest') || 'ubuntu-latest' }}
timeout-minutes: ${{ (matrix.language == 'swift' && 120) || 360 }}
permissions:
actions: read
contents: read
security-events: write
strategy:
fail-fast: false
matrix:
language: ['go']
steps:
- name: Checkout repository
uses: actions/[email protected]
- name: Setup go
uses: actions/[email protected]
with:
go-version-file: 'go.mod'
check-latest: true
- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
languages: ${{ matrix.language }}
- name: Autobuild
uses: github/codeql-action/autobuild@v3
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3
with:
category: "/language:${{matrix.language}}"