mirror of
https://github.com/gravitational/teleport.git
synced 2026-11-01 21:52:02 +08:00
We now have access to larger runners, so move CIFuzz and CodeQL workflows to use a runner with Ubuntu 22.04 LTS with 32 cores and 128GB RAM. https://docs.github.com/en/actions/using-github-hosted-runners/using-larger-runners Additionally, change CodeQL workflow to include recommendations from GitHub CodeQL team.
59 lines
1.2 KiB
YAML
59 lines
1.2 KiB
YAML
name: "CodeQL"
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
- branch/*
|
|
pull_request:
|
|
branches:
|
|
- master
|
|
- branch/*
|
|
paths-ignore:
|
|
- 'docs/**'
|
|
- 'rfd/**'
|
|
- '**.md'
|
|
|
|
jobs:
|
|
analyze:
|
|
name: Analyze
|
|
runs-on: ubuntu-22.04-32core
|
|
permissions:
|
|
actions: read
|
|
contents: read
|
|
security-events: write
|
|
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
language: [ 'go', 'javascript' ]
|
|
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v3
|
|
|
|
- name: Set up Go
|
|
uses: actions/setup-go@v3
|
|
with:
|
|
go-version-file: 'go.mod'
|
|
if: ${{ matrix.language == 'go' }}
|
|
|
|
- name: Initialize the CodeQL tools for scanning
|
|
uses: github/codeql-action/init@v2
|
|
with:
|
|
languages: ${{ matrix.language }}
|
|
|
|
- name: Autobuild
|
|
uses: github/codeql-action/autobuild@v2
|
|
if: ${{ matrix.language != 'go' }}
|
|
|
|
- name: Build Teleport OSS
|
|
run: |
|
|
make full
|
|
if: ${{ matrix.language == 'go' }}
|
|
|
|
- name: Perform CodeQL Analysis
|
|
uses: github/codeql-action/analyze@v2
|
|
with:
|
|
category: "/language:${{matrix.language}}"
|