Files
teleport/.github/workflows/codeql-analysis.yml
T
Reed Loden 05323821d8 ci: Swap CIFuzz and CodeQL to larger runner and improve CodeQL workflow (#16490)
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.
2022-09-19 08:46:53 -07:00

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}}"