Add coverity #30
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: Coverity Static Analysis | |
on: [pull_request] | |
jobs: | |
polaris-scan: | |
runs-on: [ ubuntu-latest] | |
env: | |
VCPKG_NUGET_USER: ${{secrets.VCPKG_NUGET_USER || github.repository_owner}} | |
VCPKG_NUGET_TOKEN: ${{secrets.VCPKG_NUGET_TOKEN || secrets.GITHUB_TOKEN}} | |
steps: | |
- name: Checkout Source | |
uses: actions/checkout@v4 | |
with: | |
submodules: recursive | |
- name: Setup build dependencies | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y gcc-10 g++-10 make mono-complete | |
- name: Prepare C++ compilation env | |
run: build_tooling/prep_cpp_build.sh | |
- name: Setup VCPKG cache | |
run: | | |
build_tooling/vcpkg_caching.sh | |
echo -e "VCPKG_BINARY_SOURCES=$VCPKG_BINARY_SOURCES" | tee -a $GITHUB_ENV | |
echo -e "VCPKG_ROOT=$PLATFORM_VCPKG_ROOT" | tee -a $GITHUB_ENV | |
- name: Get CMake | |
uses: lukka/get-cmake@latest | |
- name: CMake configure | |
uses: lukka/[email protected] | |
with: | |
cmakeListsTxtPath: ${{github.workspace}}/cpp/CMakeLists.txt | |
configurePreset: linux-debug | |
configurePresetAdditionalArgs: "['-DVCPKG_INSTALL_OPTIONS=--clean-after-build', '-DCMAKE_CXX_COMPILER=g++-10', '-DCMAKE_C_COMPILER=gcc-10', '-DVCPKG_INSTALL_OPTIONS=--debug', '-DCMAKE_MODULE_PATH=cpp/CMake']" | |
- name: Polaris PR Scan | |
if: ${{ github.event_name == 'pull_request' }} | |
uses: synopsys-sig/[email protected] | |
with: | |
polaris_server_url: ${{ vars.POLARIS_SERVER_URL }} | |
polaris_access_token: ${{ secrets.POLARIS_ACCESS_TOKEN }} | |
polaris_application_name: "ArcticDB" | |
polaris_project_name: "ArcticDB-core" | |
polaris_assessment_types: "SAST" | |
polaris_prComment_enabled: true | |
polaris_waitForScan: true | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
project_directory: ${{github.workspace}}/cpp/out/linux-debug-build |