-
Notifications
You must be signed in to change notification settings - Fork 253
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: Add workflow for 'coverity' label in PRs
- Loading branch information
1 parent
3b405be
commit 42c1038
Showing
1 changed file
with
25 additions
and
2 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,38 @@ | ||
name: Coverity scan | ||
on: | ||
# run once daily at 00:30 UTC due to | ||
# coverity_daily job runs once daily at 00:30 UTC due to | ||
# https://scan.coverity.com/faq#frequency | ||
schedule: | ||
- cron: "30 0 * * *" | ||
pull_request_target: | ||
branches: [master] | ||
workflow_dispatch: | ||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
jobs: | ||
coverity: | ||
coverity_daily: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Install dependencies | ||
uses: ./.github/actions/install-dependencies | ||
|
||
- name: Configure | ||
uses: ./.github/actions/configure | ||
|
||
- name: Execute and submit coverity scan | ||
uses: vapier/[email protected] | ||
with: | ||
email: "[email protected]" | ||
token: ${{ secrets.COVERITY_SCAN_TOKEN }} | ||
working-directory: x86_64 | ||
|
||
# only if PR contains 'coverity' label | ||
coverity_label: | ||
if: ${{ github.event.label.name == 'coverity' && github.event_name == 'pull_request' }} | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repository | ||
|