Skip to content

ci(gha): update codeql workflow to set checks during scheduled runs #1658

ci(gha): update codeql workflow to set checks during scheduled runs

ci(gha): update codeql workflow to set checks during scheduled runs #1658

Workflow file for this run

name: "CodeQL"
on:
push:
branches: ["master", "release-*"]
pull_request:
branches: ["master", "release-*"]
schedule:
- cron: '35 3 * * *' # Runs daily at 3:35 AM UTC
workflow_dispatch: {}
permissions: {}
jobs:
analyze:
runs-on: ubuntu-24.04
timeout-minutes: 30
permissions:
contents: read
actions: read
security-events: write
strategy:
fail-fast: false
matrix:
language: ['go']
steps:
- id: checkout
uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0
- uses: actions/setup-go@3041bf56c941b39c61721a86cd11f3bb1338122a # v5.2.0
with:
go-version-file: go.mod
- name: Initialize CodeQL
uses: github/codeql-action/init@df409f7d9260372bd5f19e5b04e83cb3c43714ae # v3.27.9
with:
config-file: ./.github/codeql/codeql-config.yml
languages: ${{ matrix.language }}
- name: Autobuild
uses: github/codeql-action/autobuild@df409f7d9260372bd5f19e5b04e83cb3c43714ae # v3.27.9
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@df409f7d9260372bd5f19e5b04e83cb3c43714ae # v3.27.9
with:
ref: ${{ steps.checkout.outputs.commit }}
sha: ${{ steps.checkout.outputs.commit }}
category: "/language:${{matrix.language}}"