@@ -8,7 +8,7 @@ concurrency:
88
99on :
1010 repository_dispatch :
11- types :
11+ types :
1212 - java-maven-pipeline-scan
1313 - java-maven-policy-scan
1414 - java-gradle-pipeline-scan
3838 register :
3939 uses : ./.github/workflows/veracode-check-run.yml
4040 with :
41- check_run_name : ${{ github.workflow }}
41+ check_run_name : ${{ github.workflow }} - ${{ contains(github.event.action, 'policy') && 'Policy' || 'Pipeline' }}
4242 head_sha : ${{ github.event.client_payload.sha }}
4343 repositroy_owner : ${{ github.event.client_payload.repository.owner }}
4444 repositroy_name : ${{ github.event.client_payload.repository.name }}
5454 steps :
5555 - name : Verify Veracode API credentials
5656 id : verify_api_creds
57- uses :
veracode/[email protected] .2 57+ uses :
veracode/[email protected] .3 5858 with :
5959 action : validateVeracodeApiCreds
6060 token : ${{ github.event.client_payload.token }}
@@ -63,11 +63,11 @@ jobs:
6363 appname : ${{ github.event.client_payload.user_config.profile_name }}
6464 source_repository : ${{ github.event.client_payload.repository.full_name }}
6565 check_run_id : ${{ needs.register.outputs.run_id }}
66-
66+
6767 - name : Verify Policy name
6868 id : verify_policy_name
6969 if : success()
70- uses :
veracode/[email protected] .2 70+ uses :
veracode/[email protected] .3 7171 with :
7272 action : validatePolicyName
7373 token : ${{ github.event.client_payload.token }}
8181 start_line : ${{ github.event.client_payload.annotationObj.start_line }}
8282 end_line : ${{ github.event.client_payload.annotationObj.end_line }}
8383 break_build_invalid_policy : ${{github.event.client_payload.break_build_invalid_policy }}
84-
84+
8585 build :
8686 needs : validations
8787 uses : ./.github/workflows/veracode-build-artifact-for-scanning.yml
@@ -114,7 +114,7 @@ jobs:
114114 filter_mitigated_flaws : ${{ github.event.client_payload.user_config.filter_mitigated_flaws }}
115115 language : ${{ github.event.client_payload.repository.language }}
116116 secrets : inherit
117-
117+
118118 policy_scan :
119119 needs : [build, register]
120120 if : contains(github.event.action, 'policy')
@@ -136,4 +136,4 @@ jobs:
136136 break_build_on_error : ${{ github.event.client_payload.user_config.break_build_on_error }}
137137 filter_mitigated_flaws : ${{ github.event.client_payload.user_config.filter_mitigated_flaws }}
138138 language : ${{ github.event.client_payload.repository.language }}
139- secrets : inherit
139+ secrets : inherit
0 commit comments