mirror of
https://git.proxmox.com/git/fwupd
synced 2025-08-09 06:12:15 +00:00
Port from LGTM to CodeQL
This commit is contained in:
parent
cd6677ac01
commit
8994baac4e
46
.github/workflows/codeql-analysis.yml
vendored
Normal file
46
.github/workflows/codeql-analysis.yml
vendored
Normal file
@ -0,0 +1,46 @@
|
|||||||
|
name: "CodeQL"
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: [ main ]
|
||||||
|
pull_request:
|
||||||
|
branches: [ main ]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
analyze:
|
||||||
|
name: Analyze
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
permissions:
|
||||||
|
actions: read
|
||||||
|
contents: read
|
||||||
|
security-events: write
|
||||||
|
|
||||||
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
|
matrix:
|
||||||
|
language: [ 'cpp', 'python' ]
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Checkout repository
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
|
- name: Initialize CodeQL
|
||||||
|
uses: github/codeql-action/init@v2
|
||||||
|
with:
|
||||||
|
languages: ${{ matrix.language }}
|
||||||
|
|
||||||
|
- name: Install dependencies
|
||||||
|
run: >
|
||||||
|
sudo apt-get update &&
|
||||||
|
sudo ./contrib/ci/fwupd_setup_helpers.py install-dependencies --yes -o ubuntu &&
|
||||||
|
python3 -m pip install --user "meson >= 0.60.0"
|
||||||
|
|
||||||
|
- name: Build
|
||||||
|
run: |
|
||||||
|
mkdir -p $GITHUB_WORKSPACE/build
|
||||||
|
cd $GITHUB_WORKSPACE/build
|
||||||
|
meson .. -Dman=false -Ddocs=none -Defi_binary=false -Dplugin_uefi_capsule_splash=false --prefix=$GITHUB_WORKSPACE/dist
|
||||||
|
ninja
|
||||||
|
|
||||||
|
- name: Perform CodeQL Analysis
|
||||||
|
uses: github/codeql-action/analyze@v2
|
30
.lgtm.yml
30
.lgtm.yml
@ -1,30 +0,0 @@
|
|||||||
extraction:
|
|
||||||
python:
|
|
||||||
python_setup:
|
|
||||||
version: "3"
|
|
||||||
cpp:
|
|
||||||
prepare:
|
|
||||||
packages:
|
|
||||||
- libarchive-tools
|
|
||||||
- python3-pip
|
|
||||||
- python3-setuptools
|
|
||||||
- python3-wheel
|
|
||||||
- libssl-dev
|
|
||||||
after_prepare:
|
|
||||||
- python3 -m pip install --user "meson >= 0.60.0"
|
|
||||||
- export PATH="$HOME/.local/bin:$PATH"
|
|
||||||
- "cd $LGTM_WORKSPACE"
|
|
||||||
- "mkdir installdir"
|
|
||||||
- "wget https://github.com/tpm2-software/tpm2-tss/releases/download/2.3.0/tpm2-tss-2.3.0.tar.gz"
|
|
||||||
- "tar xf tpm2-tss-2.3.0.tar.gz"
|
|
||||||
- "cd tpm2-tss-2.3.0"
|
|
||||||
- "./configure --prefix=$LGTM_WORKSPACE/installdir/usr --disable-doxygen-doc"
|
|
||||||
- "make install"
|
|
||||||
- "export PKG_CONFIG_PATH=$LGTM_WORKSPACE/installdir/usr/lib/pkgconfig:$PKG_CONFIG_PATH"
|
|
||||||
- "export LD_LIBRARY_PATH=$LGTM_WORKSPACE/installdir/usr/lib:$LD_LIBRARY_PATH"
|
|
||||||
configure:
|
|
||||||
command:
|
|
||||||
- "meson setup _lgtm_build_dir -Defi_binary=false -Dplugin_uefi_capsule_splash=false -Ddocs=none"
|
|
||||||
index:
|
|
||||||
build_command:
|
|
||||||
- "ninja -C _lgtm_build_dir"
|
|
@ -1,6 +1,7 @@
|
|||||||
# fwupd
|
# fwupd
|
||||||
|
|
||||||
[](https://github.com/fwupd/fwupd/actions/workflows/main.yml)
|
[](https://github.com/fwupd/fwupd/actions/workflows/main.yml)
|
||||||
|
[](https://github.com/fwupd/fwupd/actions/workflows/codeql-analysis.yml)
|
||||||
[](https://scan.coverity.com/projects/10744)
|
[](https://scan.coverity.com/projects/10744)
|
||||||
[](https://bugs.chromium.org/p/oss-fuzz/issues/list?sort=-opened&can=1&q=proj:fwupd)
|
[](https://bugs.chromium.org/p/oss-fuzz/issues/list?sort=-opened&can=1&q=proj:fwupd)
|
||||||
[](https://circleci.com/gh/fwupd/fwupd/tree/main)
|
[](https://circleci.com/gh/fwupd/fwupd/tree/main)
|
||||||
|
Loading…
Reference in New Issue
Block a user