Skip to content

Commit

Permalink
ShiftLeft Scan
Browse files Browse the repository at this point in the history
  • Loading branch information
Saiganesh-SG committed Feb 8, 2024
1 parent c49ab8e commit 9d366cc
Showing 1 changed file with 5 additions and 10 deletions.
15 changes: 5 additions & 10 deletions .github/workflows/Securin-aspm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
env:
APP_ID: 2d5dc9181d1d2bcb426d2661b049619cffa2f845bdacd52e3b09003e1049831e
BRANCH_NAME: main
SCAN_ID: c6eafc83720a6c3400daca57a9ded7d9856dbf48069c82edb400b93d5f14f86d
SCAN_ID: e9a61cbb69a3e1a0a9480badeb690f16187c151a4b20512c2bc64625860ac1f1
REQ_URL_MAP: "${{toJSON('{\"SL_RESULT_API_HOST\":\"https://slresultapi.securin.io/resultapi\"\
,\"SL_RESULTPARSER_API_HOST\":\"https://slresultparserapi.securin.io/resultparserapi\"\
}')}}"
Expand All @@ -37,15 +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 -org_api_key ${{secrets.ORG_API_KEY}} -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:
sarif_file: "${{github.workspace}}/results/result.sarif"
if: hashFiles('**/result.sarif') !=''
\ $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: Evaluate build status
run: "cat ${{github.workspace}}/results/status.txt\nexit 1\n"
if: hashFiles('**/status.txt') !=''
Expand Down

0 comments on commit 9d366cc

Please sign in to comment.