@@ -8,7 +8,7 @@ concurrency:
8
8
9
9
on :
10
10
repository_dispatch :
11
- types :
11
+ types :
12
12
- java-maven-pipeline-scan
13
13
- java-maven-policy-scan
14
14
- java-gradle-pipeline-scan
38
38
register :
39
39
uses : ./.github/workflows/veracode-check-run.yml
40
40
with :
41
- check_run_name : ${{ github.workflow }}
41
+ check_run_name : ${{ github.workflow }} - ${{ contains(github.event.action, 'policy') && 'Policy' || 'Pipeline' }}
42
42
head_sha : ${{ github.event.client_payload.sha }}
43
43
repositroy_owner : ${{ github.event.client_payload.repository.owner }}
44
44
repositroy_name : ${{ github.event.client_payload.repository.name }}
54
54
steps :
55
55
- name : Verify Veracode API credentials
56
56
id : verify_api_creds
57
- uses :
veracode/[email protected] .2
57
+ uses :
veracode/[email protected] .3
58
58
with :
59
59
action : validateVeracodeApiCreds
60
60
token : ${{ github.event.client_payload.token }}
@@ -63,11 +63,11 @@ jobs:
63
63
appname : ${{ github.event.client_payload.user_config.profile_name }}
64
64
source_repository : ${{ github.event.client_payload.repository.full_name }}
65
65
check_run_id : ${{ needs.register.outputs.run_id }}
66
-
66
+
67
67
- name : Verify Policy name
68
68
id : verify_policy_name
69
69
if : success()
70
- uses :
veracode/[email protected] .2
70
+ uses :
veracode/[email protected] .3
71
71
with :
72
72
action : validatePolicyName
73
73
token : ${{ github.event.client_payload.token }}
81
81
start_line : ${{ github.event.client_payload.annotationObj.start_line }}
82
82
end_line : ${{ github.event.client_payload.annotationObj.end_line }}
83
83
break_build_invalid_policy : ${{github.event.client_payload.break_build_invalid_policy }}
84
-
84
+
85
85
build :
86
86
needs : validations
87
87
uses : ./.github/workflows/veracode-build-artifact-for-scanning.yml
@@ -114,7 +114,7 @@ jobs:
114
114
filter_mitigated_flaws : ${{ github.event.client_payload.user_config.filter_mitigated_flaws }}
115
115
language : ${{ github.event.client_payload.repository.language }}
116
116
secrets : inherit
117
-
117
+
118
118
policy_scan :
119
119
needs : [build, register]
120
120
if : contains(github.event.action, 'policy')
@@ -136,4 +136,4 @@ jobs:
136
136
break_build_on_error : ${{ github.event.client_payload.user_config.break_build_on_error }}
137
137
filter_mitigated_flaws : ${{ github.event.client_payload.user_config.filter_mitigated_flaws }}
138
138
language : ${{ github.event.client_payload.repository.language }}
139
- secrets : inherit
139
+ secrets : inherit
0 commit comments