-
Notifications
You must be signed in to change notification settings - Fork 7
37 lines (32 loc) · 1 KB
/
ws.yaml
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
name: MEND_CHECK
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
ws_check:
runs-on: ubuntu-latest
steps:
- name: Code checkout
uses: actions/checkout@v3
- name: mend_check
env:
WSS_API_KEY: ${{ secrets.WSS_API_KEY }}
WSS_CM_TOKEN: ${{ secrets.WSS_CM_TOKEN }}
WSS_USER_KEY: ${{ secrets.WSS_USER_KEY }}
run: |
echo Downloading WhiteSource Unified Agent
curl -LJO https://unified-agent.s3.amazonaws.com/wss-unified-agent.jar
if [[ "$(curl -sL https://unified-agent.s3.amazonaws.com/wss-unified-agent.jar.sha256)" != "$(sha256sum wss-unified-agent.jar)" ]] ; then
echo "Integrity Check Failed"
else
java -jar wss-unified-agent.jar \
-apiKey $WSS_API_KEY \
-projectToken $WSS_CM_TOKEN \
-userKey $WSS_USER_KEY \
-c ./ci/wss-cm.conf -d ./ \
-scanComment $GITHUB_SHA
fi