Skip to content

Commit 94367ab

Browse files
Merge pull request #77 from veracode/enable_delete_incomplete_scan
Enabled configuration to automatically remove incomplete scans from the platform for both policy and sandbox scans.
2 parents e7b812c + 7d65ce0 commit 94367ab

File tree

4 files changed

+6
-2
lines changed

4 files changed

+6
-2
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ jobs:
8686
policy: ${{ github.event.client_payload.policy_name }}
8787
scantimeout: 30
8888
failbuild: ${{ github.event.client_payload.user_config.break_build_policy_findings }}
89+
deleteincompletescan: true
8990

9091
- name: Veracode Policy Results
9192
id: prepare-results
@@ -174,4 +175,4 @@ jobs:
174175
repo_owner: ${{ github.event.client_payload.repository.owner }}
175176
github-token: ${{ github.event.client_payload.token }}
176177
repo_name: ${{ github.event.client_payload.repository.name }}
177-
commitHash: ${{ github.event.client_payload.sha }}
178+
commitHash: ${{ github.event.client_payload.sha }}

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,4 +38,5 @@ jobs:
3838
createsandbox: true
3939
sandboxname: GitHub App Scans-${{ github.event.client_payload.repository.branch }}
4040
# include: ${{ github.event.client_payload.modules_to_scan }}
41-
failbuild: ${{ github.event.client_payload.user_config.break_build_policy_findings }}
41+
failbuild: ${{ github.event.client_payload.user_config.break_build_policy_findings }}
42+
deleteincompletescan: true

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ jobs:
8989
# include: ${{ inputs.modules_to_scan }}
9090
failbuild: ${{ inputs.break_build_policy_findings }}
9191
gitRepositoryUrl: ${{ github.server_url }}/${{ inputs.source_repository }}
92+
deleteincompletescan: true
9293

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

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,3 +66,4 @@ jobs:
6666
sandboxname: GitHub App Scans-${{ github.event.client_payload.repository.branch }}
6767
failbuild: ${{ github.event.client_payload.user_config.break_build_policy_findings }}
6868
gitRepositoryUrl: ${{ github.server_url }}/${{ github.event.client_payload.repository.full_name }}
69+
deleteincompletescan: true

0 commit comments

Comments
 (0)