This repository has been archived by the owner on Dec 20, 2023. It is now read-only.
chore(deps): update commitlint monorepo to v17.8.1 #114
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: NPM WhiteSource Scan | |
on: | |
pull_request: | |
branches: [ master* ] | |
jobs: | |
WhiteSource-Unified-Agent: | |
runs-on: ubuntu-latest | |
timeout-minutes: 20 | |
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: Configure AWS Credentials | |
uses: aws-actions/configure-aws-credentials@v1 | |
with: | |
aws-access-key-id: ${{ secrets.AWS_C2FO_GITHUB_ACTIONS_KEY }} | |
aws-secret-access-key: ${{ secrets.AWS_C2FO_GITHUB_ACTIONS_SECRET }} | |
aws-region: us-west-2 | |
- 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: | | |
aws s3api get-object --bucket secops-approved-libraries --key whitesource/wss-unified-agent.jar ./wss-unified-agent.jar | |
echo Unified Agent downloaded successfully | |
java -jar wss-unified-agent.jar |