Skip to content

Add coverity

Add coverity #17

Workflow file for this run

---
name: Coverity Static Analysis
on: [pull_request]
jobs:
cibw_docker_image:
uses: ./.github/workflows/cibw_docker_image.yml
permissions: {packages: write}
with:
cibuildwheel_ver: "2.12.1"
force_update: false
polaris-scan:
needs: [cibw_docker_image]
runs-on: [ ubuntu-22.04 ]
container:
image: ${{needs.cibw_docker_image.outputs.tag}}
env:
VCPKG_NUGET_USER: ${{secrets.VCPKG_NUGET_USER || github.repository_owner}}
VCPKG_NUGET_TOKEN: ${{secrets.VCPKG_NUGET_TOKEN || secrets.GITHUB_TOKEN}}
VCPKG_MAN_NUGET_USER: ${{secrets.VCPKG_MAN_NUGET_USER}} # For forks to download pre-compiled dependencies from the Man repo
VCPKG_MAN_NUGET_TOKEN: ${{secrets.VCPKG_MAN_NUGET_TOKEN}}
ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true
steps:
- name: Checkout Source
uses: actions/checkout@v3.3.0
with:
submodules: recursive
fetch-depth: 0
- name: Setup VCPKG cache
run: |
. build_tooling/vcpkg_caching.sh
echo -e "VCPKG_BINARY_SOURCES=$VCPKG_BINARY_SOURCES
VCPKG_ROOT=$PLATFORM_VCPKG_ROOT" | tee -a $GITHUB_ENV
- name: CMake configure
uses: lukka/run-cmake@v10.6
with:
cmakeListsTxtPath: ${{github.workspace}}/cpp/CMakeLists.txt
configurePreset: linux-debug
configurePresetAdditionalArgs: "['-DVCPKG_INSTALL_OPTIONS=--clean-after-build']"
- name: Polaris PR Scan
if: ${{ github.event_name == 'pull_request' }}
uses: synopsys-sig/synopsys-action@v1.13.0
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