Skip to content

Add CodeQL Workflow for Code Security Analysis #6

Add CodeQL Workflow for Code Security Analysis

Add CodeQL Workflow for Code Security Analysis #6

Workflow file for this run

name: sanitizers
on: [push, pull_request]
jobs:
address:
runs-on: ubuntu-22.04
steps:
- name: Inspect environment
run: |
whoami
gcc --version
- name: Install dependencies
run: |
sudo apt-get update
DEBIAN_FRONTEND='noninteractive' sudo apt-get install -qy meson libtool libglib2.0-dev libcurl3-dev libssl-dev libdbus-1-dev libjson-glib-dev libfdisk-dev libnl-genl-3-dev dbus-x11 clang-tools
- uses: actions/checkout@v3
- name: Run meson
run: |
meson setup build -Db_sanitize=address
meson compile -C build
- name: Run selected tests
run: |
# Configure glib to be compatible with address sanitizer (see
# https://developer-old.gnome.org/glib/unstable/glib-running.html).
export G_SLICE=always-malloc G_DEBUG=gc-friendly
export ASAN_OPTIONS=malloc_context_size=64:fast_unwind_on_malloc=0
build/test/bootchooser-test || true
build/test/boot_raw_fallback-test
build/test/boot_switch-test
build/test/bundle-test || true
build/test/checksum-test
build/test/config_file-test
build/test/context-test
build/test/dm-test
build/test/hash_index-test
build/test/install-test || true
build/test/manifest-test
build/test/nbd-test || true
build/test/network-test
build/test/progress-test
build/test/service-test || true
build/test/signature-test || true
build/test/slot-test
build/test/stats-test
build/test/update_handler-test || true
build/test/utils-test