Skip to content

CI: fix CodeQL permissions #970

CI: fix CodeQL permissions

CI: fix CodeQL permissions #970

name: Check for memory issues
# This action will compile netplan with ASAN (address sanitizer) and run
# all the C unit tests and call the generator for every single file in the
# examples directory.
# The job will fail if a memory issue is detected by ASAN.
on:
push:
branches: [ main ]
paths-ignore:
- 'doc/**'
pull_request:
branches: [ '**' ]
paths-ignore:
- 'doc/**'
jobs:
memory-sanitizer:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- name: Install build depends
run: |
echo "APT::Get::Always-Include-Phased-Updates \"true\";" | sudo tee /etc/apt/apt.conf.d/90phased-updates
sudo add-apt-repository -y -u -s ppa:slyon/netplan-ci
sudo apt update
sudo apt -y install curl expect ubuntu-dev-tools devscripts equivs
pull-lp-source netplan.io
sed -i 's| systemd-dev|# DELETED: systemd-dev|' netplan.io-*/debian/control
mk-build-deps -i -B -s sudo netplan.io-*/debian/control
- name: Run unit tests
run: |
unbuffer ./tools/run_asan.sh