[BUG]Added support for data balancing when SSL is enabled. snapshot manager add ssl config #51
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "CodeQL" | ||
on: | ||
pull_request: | ||
types: [synchronize, reopened, labeled] | ||
branches: | ||
- master | ||
- 'release-**' | ||
schedule: | ||
- cron: '45 22 * * 5' | ||
concurrency: | ||
group: ${{ github.head_ref }} | ||
cancel-in-progress: true | ||
defaults: | ||
run: | ||
shell: bash | ||
jobs: | ||
analyze: | ||
name: CodeQL Scan (${{ matrix.language }}) | ||
# Runner size impacts CodeQL analysis time. To learn more, please see: | ||
# - https://gh.io/recommended-hardware-resources-for-running-codeql | ||
# - https://gh.io/supported-runners-and-hardware-resources | ||
# - https://gh.io/using-larger-runners (github.com only) | ||
# Consider using larger runners or machines with greater resources for possible analysis time improvements. | ||
runs-on: [self-hosted, nebula] | ||
timeout-minutes: 60 | ||
permissions: | ||
# required for all workflows | ||
security-events: write | ||
# required to fetch internal or private CodeQL packs | ||
packages: read | ||
# only required for workflows in private repositories | ||
actions: read | ||
contents: read | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: | ||
- ubuntu2004 | ||
compiler: | ||
- gcc-9.3 | ||
include: | ||
- language: c-cpp | ||
build-mode: "manual" | ||
env: | ||
CCACHE_DIR: /tmp/ccache/nebula/${{ matrix.os }}-${{ matrix.compiler }} | ||
CCACHE_MAXSIZE: 8G | ||
container: | ||
image: vesoft/nebula-dev:${{ matrix.os }} | ||
volumes: | ||
- /tmp/ccache/nebula/${{ matrix.os }}-${{ matrix.compiler }}:/tmp/ccache/nebula/${{ matrix.os }}-${{ matrix.compiler }} | ||
options: --cap-add=SYS_PTRACE | ||
steps: | ||
- uses: webiny/action-post-run@3.0.0 | ||
with: | ||
run: sh -c "find . -mindepth 1 -delete" | ||
- uses: actions/checkout@v3 | ||
- name: Prepare environment | ||
id: prepare | ||
run: | | ||
[ -d build/ ] && rm -rf build/* || mkdir -p build | ||
make init -C tests | ||
# Initializes the CodeQL tools for scanning. | ||
- name: Initialize CodeQL | ||
uses: github/codeql-action/init@v3 | ||
working-directory: build/ | ||
Check failure on line 72 in .github/workflows/codeql.yml GitHub Actions / CodeQLInvalid workflow file
|
||
with: | ||
languages: ${{ matrix.language }} | ||
build-mode: ${{ matrix.build-mode }} | ||
# 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. | ||
# For more details on CodeQL's query packs, refer to: https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs | ||
# queries: security-extended,security-and-quality | ||
- name: CMake | ||
id: cmake | ||
run: | | ||
cmake \ | ||
-DCMAKE_CXX_COMPILER=$TOOLSET_GCC_DIR/bin/g++ \ | ||
-DCMAKE_C_COMPILER=$TOOLSET_GCC_DIR/bin/gcc \ | ||
-DNEBULA_USE_LINKER=gold \ | ||
-DCMAKE_BUILD_TYPE=Debug \ | ||
-DENABLE_TESTING=on \ | ||
-GNinja \ | ||
-B build | ||
- name: Make | ||
run: | | ||
ccache -z | ||
ninja -j $(nproc) | ||
ccache -s | ||
working-directory: build/ | ||
- name: Perform CodeQL Analysis | ||
uses: github/codeql-action/analyze@v3 | ||
with: | ||
category: "/language:${{matrix.language}}" | ||
working-directory: build/ |