mirror of
https://github.com/gravitational/teleport.git
synced 2026-09-21 14:35:22 +08:00
* Add CodeQL Config update requirement to preflight.md docs * .github/workflows/codeql.yml: Update branch list to include v13
50 lines
1.1 KiB
YAML
50 lines
1.1 KiB
YAML
name: "CodeQL"
|
|
|
|
on:
|
|
schedule:
|
|
- cron: '0 13 * * *' # At 1:00 PM UTC every day
|
|
|
|
jobs:
|
|
analyze:
|
|
name: Analyze
|
|
if: ${{ !startsWith(github.head_ref, 'dependabot/') }}
|
|
runs-on: ubuntu-22.04-16core
|
|
permissions:
|
|
actions: read
|
|
contents: read
|
|
security-events: write
|
|
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
branch: [ 'master', 'branch/v11', 'branch/v12', 'branch/v13' ]
|
|
language: [ 'go', 'javascript' ]
|
|
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v3
|
|
with:
|
|
ref: ${{ matrix.branch }}
|
|
|
|
- name: Set up Go
|
|
uses: actions/setup-go@v4
|
|
with:
|
|
cache-dependency-path: '**/go.sum'
|
|
if: ${{ matrix.language == 'go' }}
|
|
|
|
- name: Initialize the CodeQL tools for scanning
|
|
uses: github/codeql-action/init@v2
|
|
with:
|
|
languages: ${{ matrix.language }}
|
|
timeout-minutes: 5
|
|
|
|
- name: Autobuild
|
|
uses: github/codeql-action/autobuild@v2
|
|
timeout-minutes: 30
|
|
|
|
- name: Perform CodeQL Analysis
|
|
uses: github/codeql-action/analyze@v2
|
|
with:
|
|
category: "/language:${{matrix.language}}"
|
|
timeout-minutes: 10
|