Skip to content

Commit

Permalink
Create Prioritize.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Dima2021 committed Dec 21, 2021
1 parent 5e3eaa5 commit a437ec8
Showing 1 changed file with 51 additions and 0 deletions.
51 changes: 51 additions & 0 deletions .github/workflows/Prioritize.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: NPM Prioritize Scan

on: workflow_dispatch

jobs:
WhiteSource-Prioritize:
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.whitesourcesoftware.com/agent
WS_PRODUCTNAME: GH_${{github.event.repository.name}}
WS_PROJECTNAME: NodeGoat_Prioritize
WS_ENABLEIMPACTANALYSIS: true
WS_REQUIREKNOWNSHA1: false
WS_RESOLVEALLDEPENDENCIES: false
WS_NPM_RESOLVEDEPENDENCIES: true
WS_NPM_RESOLVELOCKFILE: false
WS_FILESYSTEMSCAN: false
WS_GENERATEPROJECTDETAILSJSON: true
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 ./

0 comments on commit a437ec8

Please sign in to comment.