-
Notifications
You must be signed in to change notification settings - Fork 2
49 lines (42 loc) · 1.49 KB
/
Prioritize.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
name: Mend Prioritize Scan
on: workflow_dispatch
jobs:
NPM-Scan:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
node-version: ["12.x"]
steps:
- name: Checkout https://github.com/${{ github.repository }}@${{ github.ref }}
uses: actions/checkout@v2
with:
persist-credentials: false
- name: Set up Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- uses: actions/cache@v2
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: Install dependencies
run: npm install --only=prod
- name: WhiteSource Unified Agent Scan
env:
WS_APIKEY: ${{secrets.APIKEY}}
WS_USERKEY: ${{secrets.USERKEY}}
WS_WSS_URL: https://saas.mend.io/agent
WS_PRODUCTNAME: GH_${{github.event.repository.name}}
WS_PROJECTNAME: dvna_Prioritize
WS_ENABLEIMPACTANALYSIS: true
WS_RESOLVEALLDEPENDENCIES: false
WS_NPM_RESOLVEDEPENDENCIES: true
WS_NPM_RESOLVELOCKFILE: false
WS_FILESYSTEMSCAN: false
run: |
curl -LJO https://unified-agent.s3.amazonaws.com/wss-unified-agent.jar
echo Unified Agent downloaded successfully
java -jar wss-unified-agent.jar -appPath ./package.json -d ./