mirror of
https://github.com/netdata/libbpf.git
synced 2026-03-16 14:29:06 +08:00
Track ubuntu-latest where relevant and possible. We can't update to ubuntu-latest when building and running BPF selftests, though, because our QEMU image has too old of an GLIBC. Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
53 lines
1008 B
YAML
53 lines
1008 B
YAML
---
|
|
# vi: ts=2 sw=2 et:
|
|
|
|
name: "CodeQL"
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
pull_request:
|
|
branches:
|
|
- master
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
analyze:
|
|
name: Analyze
|
|
runs-on: ubuntu-latest
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ matrix.language }}-${{ github.ref }}
|
|
cancel-in-progress: true
|
|
permissions:
|
|
actions: read
|
|
security-events: write
|
|
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
language: ['cpp', 'python']
|
|
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Initialize CodeQL
|
|
uses: github/codeql-action/init@v2
|
|
with:
|
|
languages: ${{ matrix.language }}
|
|
queries: +security-extended,security-and-quality
|
|
|
|
- name: Setup
|
|
uses: ./.github/actions/setup
|
|
|
|
- name: Build
|
|
run: |
|
|
source /tmp/ci_setup
|
|
make -C ./src
|
|
|
|
- name: Perform CodeQL Analysis
|
|
uses: github/codeql-action/analyze@v2
|