Skip to content

Commit f854110

Browse files
REPO-723 add logic to seperate scans names
1 parent 0ebfa99 commit f854110

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

.github/workflows/veracode-code-analysis.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ concurrency:
88

99
on:
1010
repository_dispatch:
11-
types:
11+
types:
1212
- java-maven-pipeline-scan
1313
- java-maven-policy-scan
1414
- java-gradle-pipeline-scan
@@ -38,7 +38,7 @@ jobs:
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 Scan' || ' - Pipeline Scan' }}
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 }}
@@ -63,7 +63,7 @@ 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()
@@ -81,7 +81,7 @@ jobs:
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

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
.DS_Store
2+
.idea

0 commit comments

Comments
 (0)