diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 200d534..102d13b 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,16 +1,16 @@ name: Build NPM Package on: push: - branches: [ DEV ] + branches: [ PROD ] pull_request: - branches: [ DEV ] + branches: [ PROD ] permissions: checks: write contents: read packages: read env: - API_URL: https://app.dev.veribom.com/ + API_URL: https://app.veribom.com/ jobs: create_scan_in_IR_Portal: @@ -24,7 +24,7 @@ jobs: with: url: '${{env.API_URL}}/utilityapi/v1/scan' method: 'POST' - data: '{"api_key": "${{secrets.VB_API_KEY}}"}' + data: '{"api_key": "${{secrets.VB_API_KEY_PROD}}"}' - name: Parse Response id: parseResponse run: echo "scan_id=${{fromJSON(steps.createScan.outputs.response).data.scan_id}}" >> "$GITHUB_OUTPUT" @@ -40,7 +40,7 @@ jobs: id: fetchECRDetails uses: fjogeleit/http-request-action@v1.15.1 with: - url: '${{env.API_URL}}/utilityapi/v1/registry?api_key=${{secrets.VB_API_KEY}}' + url: '${{env.API_URL}}/utilityapi/v1/registry?api_key=${{secrets.VB_API_KEY_PROD}}' method: 'GET' - name: Decoding VB Token id: parseToken @@ -58,17 +58,17 @@ jobs: needs: [create_scan_in_IR_Portal, ecr_details] services: pse: - image: 282904853176.dkr.ecr.us-west-2.amazonaws.com/invisirisk/pse-proxy:dev-test + image: 282904853176.dkr.ecr.us-west-2.amazonaws.com/invisirisk/pse-proxy:latest credentials: username: ${{needs.ecr_details.outputs.ecr_username}} password: ${{needs.ecr_details.outputs.ecr_token}} env: PSE_DEBUG_FLAG: --alsologtostderr POLICY_LOG: t - INVISIRISK_JWT_TOKEN: ${{secrets.VB_API_KEY}} - INVISIRISK_PORTAL: https://app.dev.veribom.com/ + INVISIRISK_JWT_TOKEN: ${{secrets.VB_API_KEY_PROD}} + INVISIRISK_PORTAL: https://app.veribom.com/ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - POLICY_AUTH_TOKEN: ${{secrets.VB_API_KEY}} + POLICY_AUTH_TOKEN: ${{secrets.VB_API_KEY_PROD}} container: image: node:18-alpine options: --cap-add=NET_ADMIN