Skip to content

Commit f891d06

Browse files
committed
added misra config and reverted int shell
1 parent a97761c commit f891d06

File tree

2 files changed

+6
-27
lines changed

2 files changed

+6
-27
lines changed

.github/workflows/codeql-multiple-repo-scan.yml

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,10 @@ jobs:
2727
name: Analyze Multiple Repositories
2828
runs-on: ubuntu-latest
2929
permissions:
30-
contents: read
3130
security-events: write
31+
packages: read
32+
actions: read
33+
contents: read
3234

3335
steps:
3436
- name: Checkout central repository
@@ -136,17 +138,9 @@ jobs:
136138
- name: Initialize CodeQL for all repositories
137139
uses: github/codeql-action/init@v4
138140
with:
139-
languages: cpp, python, javascript
141+
languages: cpp
140142
build-mode: none
141-
# Configure which paths to analyze
142-
config: |
143-
paths:
144-
- 'repos/**' # Analyze all repositories in repos/ directory
145-
paths-ignore:
146-
- '**/third_party/**'
147-
- '**/tests/**'
148-
- '**/*.test.*'
149-
- 'central-repo/**' # Don't analyze the central repo itself
143+
packs: codeql/misra-cpp-coding-standards
150144

151145
- name: Perform CodeQL Analysis
152146
uses: github/codeql-action/analyze@v4

integration_test.sh

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -12,32 +12,17 @@ LOG_DIR=${LOG_DIR:-_logs/logs}
1212
SUMMARY_FILE=${SUMMARY_FILE:-_logs/build_summary.md}
1313
KNOWN_GOOD_FILE=""
1414

15-
# Codeql
16-
17-
CODEQL_WORK_DIR="./codeql_analysis_results"
18-
CODEQL_DATABASES_DIR="${CODEQL_WORK_DIR}/databases"
19-
CODEQL_SARIF_DIR="${CODEQL_WORK_DIR}/sarif"
20-
CODEQL_LANGUAGE="cpp"
21-
CODEQL_QUERY_PACKS="codeql/cpp-queries,codeql/misra-cpp-coding-standards" # Add more packs as needed
22-
CODEQL_CLI_VERSION="v2.23.6" # Use the latest stable version
23-
CODEQL_PLATFORM="linux64" # e.g., linux64, macos, win64
24-
CODEQL_BUNDLE="codeql-${CODEQL_PLATFORM}.zip"
25-
CODEQL_URL="https://github.com/github/codeql-cli-binaries/releases/download/${CODEQL_CLI_VERSION}/${CODEQL_BUNDLE}"
26-
#https://github.com/github/codeql-cli-binaries/releases/download/v2.23.6/codeql-linux64.zip
27-
2815
# maybe move this to known_good.json or a config file later
2916
declare -A BUILD_TARGET_GROUPS=(
3017
[score_baselibs]="@score_baselibs//score/..."
3118
[score_communication]="@score_communication//score/mw/com:com"
3219
[score_persistency]="@score_persistency//src/cpp/src/... @score_persistency//src/rust/..."
33-
[score_logging]="@score_logging//src/..."
20+
#[score_logging]="@score_logging//src/..."
3421
[score_orchestrator]="@score_orchestrator//src/..."
3522
[score_test_scenarios]="@score_test_scenarios//..."
3623
[score_feo]="-- @score_feo//... -@score_feo//:docs -@score_feo//:ide_support -@score_feo//:needs_json"
3724
)
3825

39-
40-
4126
# Parse command line arguments
4227
while [[ $# -gt 0 ]]; do
4328
case $1 in

0 commit comments

Comments
 (0)