mirror of https://github.com/linkerd/linkerd2.git
53 lines
1.2 KiB
YAML
53 lines
1.2 KiB
YAML
# See https://github.com/github/codeql-action/tree/v1 for more information.
|
|
|
|
name: CodeQL
|
|
|
|
on:
|
|
push:
|
|
branches: [main, stable-*]
|
|
paths:
|
|
- .github/workflows/codeql.yml
|
|
- "**/*.go"
|
|
- "**/*.js"
|
|
- "**/*.jsx"
|
|
pull_request:
|
|
# The branches below must be a subset of the branches above
|
|
branches: [main, stable-*]
|
|
paths:
|
|
- .github/workflows/codeql.yml
|
|
- "**/*.go"
|
|
- "**/*.js"
|
|
- "**/*.jsx"
|
|
|
|
jobs:
|
|
analyze:
|
|
name: Analyze
|
|
runs-on: ubuntu-22.04
|
|
permissions:
|
|
actions: read
|
|
contents: read
|
|
security-events: write
|
|
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
language:
|
|
- go
|
|
- javascript
|
|
|
|
steps:
|
|
- uses: actions/setup-go@41dfa10bad2bb2ae585af6ee5bb4d7d973ad74ed
|
|
with:
|
|
go-version: "1.23"
|
|
- name: Checkout
|
|
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
|
|
|
|
- name: Initialize
|
|
# Unpinned action version so that we automatically get analyzer updates.
|
|
uses: github/codeql-action/init@v3
|
|
with:
|
|
languages: ${{ matrix.language }}
|
|
|
|
- name: Analyze
|
|
uses: github/codeql-action/analyze@v3
|