ci: bump github/codeql-action from 3 to 4 #18811
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "CodeQL" | |
on: | |
push: | |
branches: | |
- master | |
- release/* | |
pull_request: | |
branches: | |
- master | |
- release/* | |
types: | |
- opened | |
- reopened | |
- synchronize | |
- ready_for_review | |
workflow_dispatch: | |
merge_group: | |
types: | |
- checks_requested | |
jobs: | |
analyze: | |
name: Analyze | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-latest, windows-latest] | |
language: [go] | |
runs-on: ${{ matrix.os }} | |
timeout-minutes: 90 # windows Autobuild time increase by 20 minutes https://codeql.github.com/docs/codeql-overview/codeql-changelog/codeql-cli-2.16.4/#golang-1 | |
permissions: | |
actions: read | |
contents: read | |
security-events: write | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Setup go | |
uses: actions/setup-go@v6 | |
with: | |
go-version-file: go.mod | |
- name: Initialize CodeQL | |
uses: github/codeql-action/init@v4 | |
with: | |
languages: ${{ matrix.language }} | |
queries: ./codeql/ | |
- name: Autobuild | |
uses: github/codeql-action/autobuild@v4 | |
- name: Perform CodeQL Analysis | |
uses: github/codeql-action/analyze@v4 | |
with: | |
category: "/language:${{matrix.language}}" |