Skip to content
This repository has been archived by the owner on Dec 19, 2023. It is now read-only.

Commit

Permalink
Merge pull request #24 from C2FO/ws-changes
Browse files Browse the repository at this point in the history
Remove GH - WS Integration / Add GH Action for WS
  • Loading branch information
dbbring committed Dec 27, 2021
2 parents 1ec8d60 + b7afef4 commit b53ce54
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 3 deletions.
46 changes: 46 additions & 0 deletions .github/workflows/whitesource.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: NPM WhiteSource Scan

on:
pull_request:
branches: [ master* ]

jobs:
WhiteSource-Unified-Agent:
runs-on: ubuntu-latest

strategy:
fail-fast: false
matrix:
node-version: [14.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.WHITESOURCE_ORG_API_KEY}}
WS_USERKEY: ${{secrets.WHITESOURCE_PRIORTIZE_USERKEY}}
WS_WSS_URL: https://saas.whitesourcesoftware.com/agent
WS_PRODUCTNAME: GH_${{github.event.repository.name}}
WS_PROJECTNAME: GH_${{github.event.repository.name}}
run: |
curl -LJO https://unified-agent.s3.amazonaws.com/wss-unified-agent.jar
echo Unified Agent downloaded successfully
java -jar wss-unified-agent.jar
3 changes: 0 additions & 3 deletions .whitesource

This file was deleted.

0 comments on commit b53ce54

Please sign in to comment.