forked from jeremylong/DependencyCheck
-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (33 loc) · 1.21 KB
/
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
name: coverity-scan
on:
schedule:
- cron: '0 0 * * SAT'
jobs:
scan:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up JDK 1.8
id: jdk-8
uses: actions/setup-java@v2
with:
java-version: 8
distribution: 'zulu'
- name: Get coverity cli
run: |
wget https://scan.coverity.com/download/linux64 --no-verbose --post-data "token=${{ secrets.COVERITY_TOKEN }}&project=jeremylong%2FDependencyCheck" -O coverity_tool.tgz
mkdir coverity_tool
tar xzf coverity_tool.tgz --strip 1 -C coverity_tool
- name: Perform coverity scan
run: |
export PATH=`pwd`/coverity_tool/bin:$PATH
cov-build --dir cov-int mvn -DskipTests=true package --no-transfer-progress --batch-mode
- name: Submit coverity scan
run: |
tar czvf scan.tgz cov-int
curl --form token=${{ secrets.COVERITY_TOKEN }} \
--form [email protected] \
--form [email protected] \
--form version="main" \
--form description="Weekly Scan" \
https://scan.coverity.com/builds?project=jeremylong%2FDependencyCheck