From 59660bb653bdb9c2fddb6ee72ccd368f20af7fdc Mon Sep 17 00:00:00 2001 From: Derek Bringewatt Date: Mon, 7 Feb 2022 11:36:22 -0700 Subject: [PATCH] Add timeout and vendor in uni agent --- .github/workflows/whitesource.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/whitesource.yml b/.github/workflows/whitesource.yml index 94249ce..15df7e7 100644 --- a/.github/workflows/whitesource.yml +++ b/.github/workflows/whitesource.yml @@ -7,6 +7,7 @@ on: jobs: WhiteSource-Unified-Agent: runs-on: ubuntu-latest + timeout-minutes: 20 strategy: fail-fast: false @@ -24,6 +25,13 @@ jobs: with: node-version: ${{ matrix.node-version }} + - 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 + - uses: actions/cache@v2 with: path: ~/.npm @@ -41,6 +49,6 @@ jobs: 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 + 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 \ No newline at end of file