Mend Prioritize Scan #2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 ./ |