-
Notifications
You must be signed in to change notification settings - Fork 13
48 lines (46 loc) · 1.34 KB
/
run-coverity.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
name: Coverity
on:
push:
branches:
- master
schedule:
- cron: '0 16 * * 2,4,6'
jobs:
coverity:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Buildx
uses: docker/setup-buildx-action@v3
- name: Build Image
uses: docker/build-push-action@v5
with:
context: .
tags: coverity-img:latest
load: true
pull: true
cache-to: type=gha,mode=max
cache-from: type=gha
- name: Run Coverity
run: |
set -e
docker run --name cov-worker --env COVERITY_SCAN_NOTIFICATION_EMAIL --env COVERITY_SCAN_TOKEN --env COVERITY_DRY_RUN coverity-img
docker cp cov-worker:/root/cov-int.tgz cov-int.tgz
env:
COVERITY_SCAN_NOTIFICATION_EMAIL: ${{ secrets.COVERITY_SCAN_NOTIFICATION_EMAIL }}
COVERITY_SCAN_TOKEN: ${{ secrets.COVERITY_SCAN_TOKEN }}
COVERITY_DRY_RUN: ${{ github.event_name != 'schedule' }}
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: cov-int
path: cov-int.tgz
keepalive:
name: Keepalive Workflow
runs-on: ubuntu-latest
permissions:
actions: write
steps:
- uses: actions/checkout@v4
- uses: gautamkrishnar/keepalive-workflow@v2