Skip to content

Commit

Permalink
github-actions: bump scan-build to Ubuntu 24.04 / clang 18
Browse files Browse the repository at this point in the history
  • Loading branch information
victorjulien committed May 27, 2024
1 parent 6e2a1ec commit e041187
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/scan-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
scan-build:
name: Scan-build
runs-on: ubuntu-latest
container: ubuntu:23.04
container: ubuntu:24.04
steps:
- name: Cache scan-build
uses: actions/cache@13aacd865c20de90d75de3b17ebe84f7a17d57d2
Expand All @@ -36,8 +36,8 @@ jobs:
automake \
cargo \
cbindgen \
clang-16 \
clang-tools-16 \
clang-18 \
clang-tools-18 \
dpdk-dev \
git \
libtool \
Expand All @@ -61,7 +61,7 @@ jobs:
libevent-dev \
libevent-pthreads-2.1-7 \
liblz4-dev \
llvm-16-dev \
llvm-18-dev \
make \
python3-yaml \
rustc \
Expand All @@ -72,14 +72,14 @@ jobs:
- run: git config --global --add safe.directory /__w/suricata/suricata
- run: ./scripts/bundle.sh
- run: ./autogen.sh
- run: scan-build-16 ./configure --enable-warnings --enable-dpdk --enable-nfqueue --enable-nflog
- run: scan-build-18 ./configure --enable-warnings --enable-dpdk --enable-nfqueue --enable-nflog
env:
CC: clang-16
CC: clang-18
# exclude libhtp from the analysis
# disable security.insecureAPI.DeprecatedOrUnsafeBufferHandling explicitly as
# this will require significant effort to address.
- run: |
scan-build-16 --status-bugs --exclude libhtp/ \
scan-build-18 --status-bugs --exclude libhtp/ \
-enable-checker valist.Uninitialized \
-enable-checker valist.CopyToSelf \
-enable-checker valist.Unterminated \
Expand All @@ -101,4 +101,4 @@ jobs:
\
make
env:
CC: clang-16
CC: clang-18

0 comments on commit e041187

Please sign in to comment.