@@ -53,37 +53,37 @@ jobs:
5353 id : checkout-repos
5454 run : |
5555 scripts/workflow/checkout_repos.sh
56- # - name: Setup Bazel
57- # uses: bazel-contrib/setup-bazel@0.15.0
58- # with:
59- # # Avoid downloading Bazel every time.
60- # bazelisk-cache: true
61- # # Store build cache per workflow.
62- # disk-cache: codeql-scan
63- # # Share repository cache between workflows.
64- # repository-cache: true
56+ - name : Setup Bazel
57+ uses : bazel-contrib/setup-bazel@0.15.0
58+ with :
59+ # Avoid downloading Bazel every time.
60+ bazelisk-cache : true
61+ # Store build cache per workflow.
62+ disk-cache : codeql-scan
63+ # Share repository cache between workflows.
64+ repository-cache : true
6565 - name : Initialize CodeQL for all repositories
6666 uses : github/codeql-action/init@v4
6767 with :
6868 languages : cpp
69- build-mode : none
69+ build-mode : manual
7070 packs : codeql/misra-cpp-coding-standards@2.53.0
7171 config-file : ./.github/codeql/codeql-config.yml
72- # - name: Build all components with Bazel
73- # run: |
74- # echo "Building all C++ and Rust targets for CodeQL analysis"
75- # # Build all targets from the checked-out repositories
76- # # This ensures CodeQL captures the compilation database
77- # bazel build --verbose_failures --config=x86_64-linux \
78- # @score_baselibs//... \
79- # @score_baselibs_rust//src/... \
80- # @score_communication//score/mw/com/impl/... \
81- # @score_persistency//src/... \
82- # @score_orchestrator//src/... \
83- # @score_kyron//src/... \
84- # @score_lifecycle_health//src/... \
85- # @score_logging//... \
86- # || true # Continue even if some targets fail
72+ - name : Build all components with Bazel
73+ run : |
74+ echo "Building all C++ and Rust targets for CodeQL analysis"
75+ # Build all targets from the checked-out repositories
76+ # This ensures CodeQL captures the compilation database
77+ bazel build --verbose_failures --config=x86_64-linux \
78+ @score_baselibs//score /... \
79+ @score_baselibs_rust//src/... \
80+ @score_communication//score/mw/com/impl/... \
81+ @score_persistency//src/cpp /src/... \
82+ @score_orchestrator//src/... \
83+ @score_kyron//src/... \
84+ @score_lifecycle_health//src/... \
85+ @score_logging//score /... \
86+ || true # Continue even if some targets fail
8787 - name : Perform CodeQL Analysis
8888 uses : github/codeql-action/analyze@v4
8989 with :
0 commit comments