Skip to content

Commit

Permalink
Update Main for Secrets.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Pranesh-Shrestha authored Jan 7, 2025
1 parent 7129e61 commit 146a30c
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/Main for Secrets.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
name: Build JS Package For Secrets
on:
push:
branches: [ STAGE ]
branches: [ IR-SCORE-TEST ]
pull_request:
branches: [ STAGE ]
branches: [ IR-SCORE-TEST ]

permissions:
checks: write
contents: read
packages: read
env:
API_URL: https://app.stage.veribom.com
API_URL: https://app.dev.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_STAGE}}"}'
data: '{"api_key": "${{secrets.VB_API_KEY_PROXY}}"}'
- 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_STAGE}}'
url: '${{env.API_URL}}/utilityapi/v1/registry?api_key=${{secrets.VB_API_KEY_PROXY}}'
method: 'GET'
- name: Decoding VB Token
id: parseToken
Expand All @@ -65,8 +65,8 @@ jobs:
env:
PSE_DEBUG_FLAG: --alsologtostderr
POLICY_LOG: t
INVISIRISK_JWT_TOKEN: ${{secrets.VB_API_KEY_STAGE}}
INVISIRISK_PORTAL: https://app.stage.veribom.com/
INVISIRISK_JWT_TOKEN: ${{secrets.VB_API_KEY_PROXY}}
INVISIRISK_PORTAL: https://app.dev.veribom.com/
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
container:
image: node:18-buster
Expand Down

0 comments on commit 146a30c

Please sign in to comment.