mirror of
https://github.com/gravitational/teleport.git
synced 2026-11-03 16:38:35 +08:00
This makes two changes: * Reduces action instance type to 16 cores. This will half the cost without a significant speed difference * Switch from `make full` to CodeQL Auto Build. This speeds up the build by about 10 minutes. I confirmed there is not a reduction in the scan coverage
41 lines
907 B
YAML
41 lines
907 B
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:
|
|
language: [ 'go', 'javascript' ]
|
|
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v3
|
|
|
|
- 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
|