teleport/.github/workflows/codeql.yml
Mike Jensen bab1a5d54b
Build change for when go caching should be used (#27209)
* Build change for when go caching should be used

This commit does the following:
* Updates all `setup-go` actions to use v4 (which has caching enabled by default)
* For `shared-workflow` jobs caching is left enabled due to the presumed small size
* For `teleport` jobs caching is now disabled due to the size exceeding the cache limit

This should make all of the mentioned jobs a little faster.

* Update build-api.yaml to re-enable caching
2023-06-02 15:42:56 +00:00

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: false
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