forked from inrupt/solid-client-authn-js
-
Notifications
You must be signed in to change notification settings - Fork 7
55 lines (46 loc) · 1.85 KB
/
whitesource.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
53
54
name: Whitesource Security Scan
on:
# The config is set up to verify compliance on pull requests, and to update the
# whitesource inventory on push to the master branch.
# NOTE: Due to a bug in Whitesource, it is currently disabled for PRs.
# pull_request:
push:
branches:
- master
jobs:
whitesource:
runs-on: ubuntu-latest
name: Whitesource security scan
steps:
# Setup
- name: Checkout repository
uses: actions/[email protected]
- name: Set up JDK 1.8
uses: actions/[email protected]
with:
java-version: 1.8
# Use a cache for the local gradle repository
- name: Cache
uses: actions/[email protected]
with:
path: ~/.gradle/caches
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }}
restore-keys: |
${{ runner.os }}-gradle-
- name: Fetch WSS unified agent
run: wget https://github.com/whitesource/unified-agent-distribution/releases/download/$WHITESOURCE_UNIFIED_AGENT_VERSION/wss-unified-agent.jar -O resources/whitesource/wss-unified-agent.jar
env:
WHITESOURCE_UNIFIED_AGENT_VERSION: v20.4.2.1
- name: Install all the dependencies
run: npm ci
- name: Run WhiteSource Scan
run: java -jar "$WHITESOURCE_UA_PATH" -c "$WHITESOURCE_CONFIG_PATH" -apiKey "${{ secrets.WHITESOURCE_API_KEY }}" -userKey "${{ secrets.WHITESOURCE_USER_KEY }}" -scanComment "fixme: not configured"
env:
WHITESOURCE_UA_PATH: resources/whitesource/wss-unified-agent.jar
WHITESOURCE_CONFIG_PATH: resources/whitesource/wss-${{ github.event_name }}-scan.config
- name: Upload artifacts for debugging
uses: actions/[email protected]
if: failure()
with:
path: whitesource/policyRejectionSummary.json
name: whitesource-logs