Coverity #1046
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" | |
on: | |
schedule: | |
- cron: '0 1 * * *' | |
jobs: | |
analyze: | |
name: Analyze | |
if: github.repository == 'performancecopilot/pcp' | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 1 | |
- name: Download Coverity | |
run: | | |
cd .. | |
wget -q https://scan.coverity.com/download/linux64 --post-data "token=${TOKEN}&project=performancecopilot/pcp" -O coverity_tool.tgz | |
mkdir coverity | |
tar xzf coverity_tool.tgz --strip 1 -C coverity | |
echo "$(pwd)/coverity/bin" >> $GITHUB_PATH | |
env: | |
TOKEN: ${{ secrets.COVERITY_TOKEN }} | |
- name: Configure | |
run: ./configure | |
- name: Build with Coverity | |
run: cov-build --dir cov-int make | |
- name: Submit the result to Coverity | |
run: | | |
tar czvf pcp.tgz cov-int | |
curl \ | |
--form token=${TOKEN} \ | |
--form [email protected] \ | |
--form [email protected] \ | |
--form version=${GITHUB_SHA} \ | |
https://scan.coverity.com/builds?project=performancecopilot/pcp | |
env: | |
TOKEN: ${{ secrets.COVERITY_TOKEN }} |