Skip to content

Commit

Permalink
modifies querry suite and build step
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexandruAntonescuKeysight committed May 15, 2024
1 parent a9af334 commit a37f9f5
Showing 1 changed file with 13 additions and 9 deletions.
22 changes: 13 additions & 9 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ on:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
schedule:
- cron: '36 19 * * 3'
# schedule:
# - cron: '36 19 * * 3'

jobs:
analyze:
Expand Down Expand Up @@ -45,7 +45,7 @@ jobs:
matrix:
include:
- language: c-cpp
build-mode: autobuild
build-mode: manual
- language: python
build-mode: none
# CodeQL supports the following values keywords for 'language': 'c-cpp', 'csharp', 'go', 'java-kotlin', 'javascript-typescript', 'python', 'ruby', 'swift'
Expand All @@ -66,6 +66,7 @@ jobs:
with:
languages: ${{ matrix.language }}
build-mode: ${{ matrix.build-mode }}
queries: security-extended
# If you wish to specify custom queries, you can do so here or in a config file.
# By default, queries listed here will override any specified in a config file.
# Prefix the list here with "+" to use these queries and those in the config file.
Expand All @@ -81,12 +82,15 @@ jobs:
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
- if: matrix.build-mode == 'manual'
run: |
echo 'If you are using a "manual" build mode for one or more of the' \
'languages you are analyzing, replace this with the commands to build' \
'your code, for example:'
echo ' make bootstrap'
echo ' make release'
exit 1
sudo apt update
sudo apt install protobuf-compiler libprotobuf-dev
SCRIPT_DIR=.
BUILD_DIR="${SCRIPT_DIR:?}"/build
CHAKRA_ET_DIR="${SCRIPT_DIR:?}"/et_def
protoc et_def.proto \
--proto_path="${CHAKRA_ET_DIR:?}" \
--cpp_out="${CHAKRA_ET_DIR:?}"
g++ -shared -fPIC -Wall et_feeder/et_feeder.cpp et_feeder/et_feeder_node.cpp third_party/utils/protoio.cc et_def/et_def.pb.cc -o libfeeder.so -lprotobuf -I .
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3
Expand Down

0 comments on commit a37f9f5

Please sign in to comment.