forked from priyanks-synopsys/Hello_Java
-
Notifications
You must be signed in to change notification settings - Fork 0
32 lines (32 loc) · 1.02 KB
/
cop.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
# example workflow for Coverity on Polaris
name: coverity-on-polaris
on:
push:
branches: [ main, master, develop, stage, release ]
workflow_dispatch:
jobs:
coverity-on-polaris:
runs-on: ubuntu-latest
steps:
- name: Checkout Source
uses: actions/checkout@v3
- name: Setup Java JDK
uses: actions/setup-java@v3
with:
java-version: 17
distribution: microsoft
cache: maven
- name: Polaris Scan
env:
POLARIS_SERVER_URL: ${{ vars.POLARIS_SERVER_URL }}
POLARIS_ACCESS_TOKEN: ${{ secrets.POLARIS_ACCESS_TOKEN }}
run: |
curl -fLsS -o polaris.zip $POLARIS_SERVER_URL/api/tools/polaris_cli-linux64.zip
unzip -d $RUNNER_TEMP -jo polaris.zip && rm -f polaris.zip
$RUNNER_TEMP/polaris --co project.name=chuckaude-${{ github.event.repository.name }} analyze -w
# - name: Save Logs
# if: always()
# uses: actions/upload-artifact@v3
# with:
# name: polaris-cli-logs
# path: ${{ github.workspace }}/.synopsys