Skip to content

Commit

Permalink
ShiftLeft Scan
Browse files Browse the repository at this point in the history
  • Loading branch information
hari326 committed May 17, 2024
1 parent 05db5a8 commit 9f9575f
Showing 1 changed file with 13 additions and 11 deletions.
24 changes: 13 additions & 11 deletions .github/workflows/Securin-aspm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,18 @@ on:
jobs:
scanning:
env:
APP_ID: 438a9eb2756f9f3da3d25bf4b91554eaa2021c82fc89ba80e58e2c548ead398c
APP_ID: 1c867c4358de9a8b4484a6df3b84d0fb2d8b2f69b16c4205513105a192e2a8a0
BRANCH_NAME: master
SCAN_ID: 55efd57d0bb4d668c235c42e2a34b8aac05f40ba3de6ef58fd0ab78c614a1ded
REQ_URL_MAP: "${{toJSON('{\"SL_RESULT_API_HOST\":\"https://slresultapi.qa.securin.io/resultapi\"\
,\"SL_RESULTPARSER_API_HOST\":\"https://slresultparserapi.qa.securin.io/resultparserapi\"\
SCAN_ID: 33a679369e5eb78bbe8a39d5b676648f8450cfe8b2a188734cd3d555f5c071cd
REQ_URL_MAP: "${{toJSON('{\"SL_RESULT_API_HOST\":\"https://slresultapi.uat.securin.io/resultapi\"\
,\"SL_RESULTPARSER_API_HOST\":\"https://slresultparserapi.uat.securin.io/resultparserapi\"\
}')}}"
steps:
- name: Retrieve Token Info
id: auth_token
run: "respJson=$(curl --location --request GET 'https://slresultapi.qa.securin.io/resultapi/aws/ecr/token'\
\ --header 'Authorization: Bearer ${{secrets.CLI_ACCESS_TOKEN}}' --data-raw\
\ ' ' ) \necho \"authTokenJson=$respJson\" >> $GITHUB_OUTPUT"
run: "respJson=$(curl --location --request GET 'https://slresultapi.uat.securin.io/resultapi/aws/ecr/token'\
\ --header 'X-ASPM-Auth-Key: ${{secrets.ORG_API_KEY}}' --data-raw ' ' )\
\ \necho \"authTokenJson=$respJson\" >> $GITHUB_OUTPUT"
- uses: actions/checkout@v3
- name: Scan Initiated
id: sec_scan_init
Expand All @@ -37,10 +37,10 @@ jobs:
\ ) \ndocker login --username $usrVal --password $usrPassword $usrPrxyUrl\
\ \ndocker pull -q $usrImgTag \ndocker run -v ${{github.workspace}}:/src \
\ --volume ${{github.workspace}}:/workdir -v /var/run/docker.sock:/var/run/docker.sock\
\ $usrImgTag -access_tkn ${{secrets.CLI_ACCESS_TOKEN}} -app_id ${{ env.APP_ID\
\ }} -scan_id ${{ env.SCAN_ID }} -branch_name ${{ env.BRANCH_NAME }} -req_url_map\
\ ${{ env.REQ_URL_MAP }} -tool_name github event:${{ github.event_name }}\
\ pr_number:${{ github.event.number }}"
\ $usrImgTag -api_key ${{secrets.ORG_API_KEY}} -wrkspc_id ${{secrets.WORKSPACE_ID}}\
\ -app_id ${{ env.APP_ID }} -scan_id ${{ env.SCAN_ID }} -branch_name ${{ env.BRANCH_NAME\
\ }} -req_url_map ${{ env.REQ_URL_MAP }} -tool_name github event:${{ github.event_name\
\ }} pr_number:${{ github.event.number }} -upload_log true"
- name: Upload SARIF file
uses: github/codeql-action/upload-sarif@v2
with:
Expand All @@ -49,4 +49,6 @@ jobs:
- name: Evaluate build status
run: "cat ${{github.workspace}}/results/status.txt\nexit 1\n"
if: hashFiles('**/status.txt') !=''
permissions:
security-events: write
runs-on: ubuntu-latest

0 comments on commit 9f9575f

Please sign in to comment.