Skip to content

Commit d06b050

Browse files
committed
Composite action for policy and sandbox scan with workflowApp parameter and SCA scan break build functionality
1 parent 328b2b0 commit d06b050

File tree

4 files changed

+6
-1
lines changed

4 files changed

+6
-1
lines changed

.github/workflows/binary-ready-veracode-sast-policy-scan.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,8 @@ jobs:
8787
scantimeout: 30
8888
failbuild: ${{ github.event.client_payload.user_config.break_build_policy_findings }}
8989
deleteincompletescan: true
90+
workflowApp: true
91+
9092

9193
- name: Veracode Policy Results
9294
id: prepare-results

.github/workflows/veracode-policy-scan.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ jobs:
9090
failbuild: ${{ inputs.break_build_policy_findings }}
9191
gitRepositoryUrl: ${{ github.server_url }}/${{ inputs.source_repository }}
9292
deleteincompletescan: true
93+
workflowApp: true
9394

9495
- name: Veracode Policy Results
9596
id: prepare-results

.github/workflows/veracode-sca-scan.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,9 +82,10 @@ jobs:
8282
env:
8383
SRCCLR_API_TOKEN: ${{ secrets.VERACODE_AGENT_TOKEN }}
8484
JAVA_OPTS: -Xms2g -Xmx4g
85-
uses: veracode/[email protected].13
85+
uses: veracode/[email protected].14
8686
with:
8787
github_token: ${{ secrets.GITHUB_TOKEN }}
8888
create-issues: false
8989
recursive: true
9090
allow-dirty: true
91+
breakBuildOnPolicyFindings: ${{ github.event.client_payload.user_config.break_build_policy_findings }}

veracode.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ veracode_sca_scan:
5757
# If the break_build_on_error is set to true, the build will break if the scan failed to complete or with an error, no libraries were found,
5858
# or no build system was found and the error_message will be displayed.
5959
break_build_on_error: true
60+
break_build_policy_findings: true
6061
error_message: "Veracode SCA scan faced a problem. Please contact your Veracode administrator for more information."
6162
# If the trigger is set to true, a scan is triggered when you create an issue containing the commands value or add a comment containing the commands value to an issue.
6263
# Syntax to be used - COMMANDS_VALUE [branch: BRANCH_NAME]

0 commit comments

Comments
 (0)