Skip to content

Commit 29a45f9

Browse files
authored
Merge branch 'main' into scan-progress
2 parents 60a0c68 + d805ef6 commit 29a45f9

36 files changed

+5342
-1639
lines changed

.docker/prod-oldstable.Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ COPY . /source
77
RUN sh /source/.github/install-dependencies.sh \
88
/source/.github/build-dependencies.list \
99
&& rm -rf /var/lib/apt/lists/*
10-
RUN cmake -DCMAKE_BUILD_TYPE=Release -DOPENVASD=0 -B/build /source \
10+
RUN cmake -DCMAKE_BUILD_TYPE=Release -DOPENVASD=0 -DENABLE_AGENTS=0 -B/build /source \
1111
&& DESTDIR=/install cmake --build /build -j$(nproc) -- install
1212

1313
FROM debian:oldstable-slim

.gersemirc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
indent: 2
2+
definitions: [./cmake/]

.github/workflows/ci-c.yml

Lines changed: 25 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,39 @@ on:
1111
jobs:
1212
c-format-check:
1313
name: Check C Source Code Formatting
14-
runs-on: 'ubuntu-latest'
14+
runs-on: "ubuntu-latest"
1515
steps:
1616
- uses: actions/checkout@v4
1717
- name: Check Source Format
1818
run: |
1919
clang-format -i -style=file {base,boreas,gmp,osp,util}/*.{c,h}
2020
git diff --exit-code
2121
22+
cmake-format-check:
23+
name: Check CMake Formatting
24+
runs-on: "ubuntu-latest"
25+
steps:
26+
- uses: actions/checkout@v4
27+
- uses: greenbone/actions/uv@v3
28+
with:
29+
install: gersemi
30+
- name: Check CMake Format
31+
id: check
32+
run: |
33+
gersemi --check . cmake
34+
- name: Report Diff
35+
if: ${{ failure() && steps.check.outcome == 'failure' }}
36+
run: |
37+
echo "## CMake Format Check" >> $GITHUB_STEP_SUMMARY
38+
gersemi --check --no-warn-about-unknown-commands . cmake >> $GITHUB_STEP_SUMMARY 2>&1 || true
39+
echo "## CMake Format Diff" >> $GITHUB_STEP_SUMMARY
40+
echo '```diff' >> $GITHUB_STEP_SUMMARY
41+
gersemi --diff . cmake >> $GITHUB_STEP_SUMMARY
42+
echo '```' >> $GITHUB_STEP_SUMMARY
43+
2244
tests:
2345
name: Unit Tests
24-
runs-on: 'ubuntu-latest'
46+
runs-on: "ubuntu-latest"
2547
container: debian:stable-slim
2648
steps:
2749
- name: Install git for Codecov uploader
@@ -51,7 +73,7 @@ jobs:
5173

5274
scan-build:
5375
name: Scan-build gvm-libs with clang
54-
runs-on: 'ubuntu-latest'
76+
runs-on: "ubuntu-latest"
5577
container: debian:stable-slim
5678
steps:
5779
- uses: actions/checkout@v4

.github/workflows/codeql-analysis-c.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@ jobs:
2121
actions: read
2222
contents: read
2323
security-events: write
24-
container: greenbone/gvm-libs:edge
24+
container:
25+
image: registry.community.greenbone.net/community/gvm-libs:stable
2526

2627
strategy:
2728
fail-fast: false

0 commit comments

Comments
 (0)