Skip to content

Commit

Permalink
Change ubuntu version to 22.04 for cppcheck CI job
Browse files Browse the repository at this point in the history
Setting base image to fixed version should stabilise cppcheck CI job.
If we use latest tag, cppcheck package major version would be
updateded at some point. This follows to failures on CI in not related
parts of the code.
This version should be updateded at some point.
  • Loading branch information
karczex authored and filip-szweda committed Dec 20, 2024
1 parent 3576fd0 commit 66be94e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/cppcheck.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
runs-on: ${{ matrix.runner }}
strategy:
matrix:
runner: [ubuntu-latest]
runner: [ubuntu-22.04]
steps:
- name: "Checkout source code of the repository"
uses: actions/checkout@v4
Expand Down
1 change: 1 addition & 0 deletions libebpfdiscoveryskel/src/LibSSLProbes.h
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,7 @@ __attribute__((always_inline)) inline static int handleSSLPendingExit(struct pt_
* Probes
*/

// cppcheck-suppress unknownMacro
SEC("uprobe/SSL_read:libssl.so")
int BPF_UPROBE(uprobeSSLReadOpenSSL, void* ssl, void* buf, int num) {
return handleSSLReadEntry(ctx, ssl, (char*)buf, num);
Expand Down
1 change: 1 addition & 0 deletions libebpfdiscoveryskel/testbpf/DataFunctionsTest.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@

#include "TestDefine.h"

// cppcheck-suppress unknownMacro
TEST_ENTRY int BPF_PROG(testDataProbeIsBeginningOfHttpRequest) {
CHECK_TEST_RUNNER(runnerPid);

Expand Down

0 comments on commit 66be94e

Please sign in to comment.