forked from apache/commons-csv
-
Notifications
You must be signed in to change notification settings - Fork 0
60 lines (58 loc) · 2.23 KB
/
Copy pathcoverity.yaml
File metadata and controls
60 lines (58 loc) · 2.23 KB
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
49
50
51
52
53
54
55
56
57
58
59
60
# example workflow for Coverity scans using the Synopsys Action
# https://github.com/marketplace/actions/synopsys-action
# Use this YAML in your workflow file for each job
name: coverity
on:
push:
branches: [main, master, develop, stage, release]
pull_request:
branches: [main, master, develop, stage, release]
workflow_dispatch:
jobs:
coverity:
runs-on: self-hosted
steps:
- name: Checkout Source
uses: actions/checkout@v4
- name: Setup Java JDK
uses: actions/setup-java@v4
with:
java-version: 17
distribution: microsoft
cache: maven
- name: Run a script
run: |
echo "${{ secrets.AUTH_KEY }}" > "./auth-key.txt"
chmod 400 auth-key.txt
shell: bash
- name: Coverity Full Scan
if: ${{ github.event_name != 'pull_request' }}
uses: synopsys-sig/synopsys-action@v1.8.0
with:
coverity_url: ${{ secrets.COVERITY_URL }}
coverity_user: ${{ secrets.COV_USER }}
coverity_passphrase: ${{ secrets.COVERITY_PASSPHRASE }}
coverity_project_name: ${{ github.event.repository.name }}
coverity_stream_name: ${{ github.event.repository.name }}-${{ github.ref_name }}
coverity_policy_view: "Non Legacy Issues"
coverity_local: true
coverity_install_directory: /Applications/cov-analysis-macos-arm-2023.12.0
- name: Coverity PR Scan
if: ${{ github.event_name == 'pull_request' }}
uses: synopsys-sig/synopsys-action@v1.8.0
with:
coverity_url: ${{ secrets.COVERITY_URL }}
coverity_user: ${{ secrets.COV_USER }}
coverity_passphrase: ${{ secrets.COVERITY_PASSPHRASE }}
coverity_project_name: ${{ github.event.repository.name }}
coverity_stream_name: ${{ github.event.repository.name }}-${{ github.base_ref }}
coverity_prComment_enabled: true
github_token: ${{ secrets.GITHUB_TOKEN }}
coverity_local: true
coverity_install_directory: /Applications/cov-analysis-macos-arm-2023.12.0
# - name: Save Logs
# if: always()
# uses: actions/upload-artifact@v4
# with:
# name: bridge-logs
# path: ${{ github.workspace }}/.bridge