-
Notifications
You must be signed in to change notification settings - Fork 1
52 lines (47 loc) · 1.4 KB
/
taxgrid_mend.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
49
50
51
52
name: Mend SCA Scan
on:
push:
branches:
- taxgrid
permissions:
id-token: write
contents: write
actions: write
deployments: write
packages: write
repository-projects: write
jobs:
processes:
runs-on: ubuntu-latest
name: Mend
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Login to Github Packages
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/setup-node@v1
with:
node-version: '12.x'
- name: npm install
run: |
npm ci
env:
GPR_TOKEN: ${{ secrets.GITHUB_TOKEN }}
CI: true
- name: Download unified agent
run: |
curl -LJO https://unified-agent.s3.amazonaws.com/wss-unified-agent.jar
env:
GPR_TOKEN: ${{ secrets.GPR_TOKEN }}
- name: Run whitesource unified agent
run: |
cat /home/runner/work/zokrates-worker/zokrates-worker/wss-unified-agent.config
java -jar wss-unified-agent.jar -c /home/runner/work/zokrates-worker/zokrates-worker/wss-unified-agent.config -apikey $MEND_API_KEY -userkey $MEND_USER_KEY
env:
MEND_API_KEY: ${{ secrets.MEND_API_KEY }}
MEND_USER_KEY: ${{ secrets.MEND_USER_KEY }}
GPR_TOKEN: ${{ secrets.GPR_TOKEN }}