Files
teleport/.github/workflows/codeql-analysis.yml
T
Reed Loden 8a4ee05dbb ci: Add paths/paths-ignore to GitHub Actions workflows to reduce unnecessary builds (#15636)
We're running CIFuzz and CodeQL in many cases where it doesn't make sense. We get
charged for GitHub Actions minutes used, so let's make sure to only run them when
absolutely necessary.

For CIFuzz, only run if a *.go file has been modified.
For CodeQL, only run if a path outside of docs/* and rfd/* has been modified.
2022-08-19 23:46:32 +00:00

49 lines
895 B
YAML

name: "CodeQL"
on:
push:
branches:
- master
- branch/*
paths-ignore:
- 'docs/**'
- 'rfd/**'
pull_request:
branches:
- master
- branch/*
paths-ignore:
- 'docs/**'
- 'rfd/**'
jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
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: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
languages: ${{ matrix.language }}
- name: Autobuild
uses: github/codeql-action/autobuild@v2
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
env:
CODEQL_EXTRACTOR_GO_MAX_GOROUTINES: 16