Skip to content

ci: bump github/codeql-action from 2 to 3 #276

ci: bump github/codeql-action from 2 to 3

ci: bump github/codeql-action from 2 to 3 #276

Workflow file for this run

name: "Coverity"
on:
workflow_dispatch:
push:
branches: [ master, develop ]
pull_request:
branches: [ master, develop ]
# schedule:
# - cron: '21 20 * * 5'
jobs:
convert:
name: Convert and upload coverity results
runs-on: ubuntu-20.04
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Check for new scan data
env:
FILE: 'coverity-results.json'
shell: bash
run: |
if [ -f "${FILE}" ]
then
echo "HAVE_SCAN_DATA=true" >> $GITHUB_ENV
echo "Found data file: ${FILE}"
else
echo "HAVE_SCAN_DATA=false" >> $GITHUB_ENV
echo "Data file NOT found!!"
fi
- name: Convert Coverity Results to SARIF
if: env.HAVE_SCAN_DATA == 'true'
uses: gautambaghel/coverity-scan-results-to-sarif@master
with:
pipeline-results-json: coverity-results.json
output-results-sarif: coverity-results.sarif
- name: Upload SARIF file to GitHub UI
if: env.HAVE_SCAN_DATA == 'true'
uses: github/codeql-action/upload-sarif@v3
with:
sarif_file: coverity-results.sarif