Skip to content

Commit

Permalink
Update main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Pranesh-Shrestha authored Dec 13, 2024
1 parent 49f6eb9 commit 888ca27
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -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:
Expand All @@ -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"
Expand All @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 888ca27

Please sign in to comment.