Skip to content

Commit c914ee1

Browse files
update workflow to handle multiple file
1 parent b941d48 commit c914ee1

6 files changed

+17
-40
lines changed

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

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -70,19 +70,14 @@ jobs:
7070
repository: ${{ github.event.client_payload.repository.full_name }}
7171
run-id: ${{ github.event.client_payload.run_id }}
7272

73-
- name: Get the name of the downloaded files
74-
run: |
75-
artifact_file=$(ls -1 ./veracode-artifact | head -n 1)
76-
echo "veracode_artifact=$artifact_file" >> $GITHUB_ENV
77-
7873
- name: Veracode Pipeline-Scan
7974
id: pipeline-scan
80-
uses: veracode/Veracode-pipeline-scan-action@feature/DXS-355
75+
uses: veracode/Veracode-pipeline-scan-action@master
8176
with:
8277
vid: ${{ secrets.VERACODE_API_ID }}
8378
vkey: ${{ secrets.VERACODE_API_KEY }}
8479
veracode_policy_name: ${{ github.event.client_payload.policy_name }}
85-
file: ./veracode-artifact/${{ env.veracode_artifact }}
80+
file: ${{ github.event.client_payload.repository.artifact_name }}
8681
fail_build: ${{ github.event.client_payload.user_config.break_build_policy_findings }}
8782
use_upgraded_version: true
8883

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

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -70,22 +70,17 @@ jobs:
7070
repository: ${{ github.event.client_payload.repository.full_name }}
7171
run-id: ${{ github.event.client_payload.run_id }}
7272

73-
- name: Get the name of the downloaded files
74-
run: |
75-
artifact_file=$(ls -1 ./veracode-artifact | head -n 1)
76-
echo "veracode_artifact=$artifact_file" >> $GITHUB_ENV
77-
7873
- name: Veracode Upload and Scan Action Step
79-
uses: veracode/uploadandscan-action@feature/DXS-335
74+
uses: veracode/uploadandscan-action@v0.1.3
8075
id: upload_and_scan
8176
with:
8277
vid: '${{ secrets.VERACODE_API_ID }}'
8378
vkey: '${{ secrets.VERACODE_API_KEY }}'
8479
appname: ${{ github.event.client_payload.user_config.profile_name }}
8580
createprofile: true
8681
version: '${{ github.run_id }}'
87-
filepath: ./veracode-artifact/${{ env.veracode_artifact }}
88-
include: ${{ github.event.client_payload.modules_to_scan }}
82+
filepath: ${{ github.event.client_payload.repository.artifact_name }}
83+
# include: ${{ github.event.client_payload.modules_to_scan }}
8984
policy: ${{ github.event.client_payload.policy_name }}
9085
scantimeout: 15
9186
failbuild: ${{ github.event.client_payload.user_config.break_build_policy_findings }}

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

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -70,23 +70,18 @@ jobs:
7070
repository: ${{ github.event.client_payload.repository.full_name }}
7171
run-id: ${{ github.event.client_payload.run_id }}
7272

73-
- name: Get the name of the downloaded files
74-
run: |
75-
artifact_file=$(ls -1 ./veracode-artifact | head -n 1)
76-
echo "veracode_artifact=$artifact_file" >> $GITHUB_ENV
77-
7873
- name: Veracode Upload and Scan Action Step
7974
id: upload_and_scan
80-
uses: veracode/[email protected].2
75+
uses: veracode/[email protected].3
8176
with:
8277
appname: ${{ github.event.client_payload.user_config.profile_name }}
8378
createprofile: true
8479
policy: ${{ github.event.client_payload.policy_name }}
8580
version: '${{ github.run_id }}'
86-
filepath: ./veracode-artifact/${{ env.veracode_artifact }}
81+
filepath: ${{ github.event.client_payload.repository.artifact_name }}
8782
vid: '${{ secrets.VERACODE_API_ID }}'
8883
vkey: '${{ secrets.VERACODE_API_KEY }}'
8984
createsandbox: true
9085
sandboxname: GitHub App Scans-${{ github.event.client_payload.repository.branch }}
91-
include: ${{ github.event.client_payload.modules_to_scan }}
86+
# include: ${{ github.event.client_payload.modules_to_scan }}
9287
failbuild: ${{ github.event.client_payload.user_config.break_build_policy_findings }}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ jobs:
7373
# run the pipeline scan action
7474
- name: Veracode Pipeline-Scan
7575
id: pipeline-scan
76-
uses: veracode/Veracode-pipeline-scan-action@feature/DXS-355
76+
uses: veracode/Veracode-pipeline-scan-action@master
7777
with:
7878
vid: ${{ secrets.VERACODE_API_ID }}
7979
vkey: ${{ secrets.VERACODE_API_KEY }}

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

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -67,26 +67,22 @@ jobs:
6767
with:
6868
name: veracode-artifact
6969
path: ./veracode_artifact_directory
70-
71-
- name: Get the name of the downloaded files
72-
run: |
73-
artifact_file=$(ls -1 ./veracode_artifact_directory | head -n 1)
74-
echo "veracode_artifact=$artifact_file" >> $GITHUB_ENV
70+
7571
# run the policy scan action
7672
- name: Veracode Upload and Scan Action Step
77-
uses: veracode/uploadandscan-action@feature/DXS-335
73+
uses: veracode/uploadandscan-action@v0.1.3
7874
id: upload_and_scan
7975
with:
8076
appname: ${{ inputs.profile_name }}
8177
createprofile: true
8278
policy: ${{ inputs.policy_name }}
8379
version: '${{ github.run_id }}'
84-
filepath: ./veracode_artifact_directory/${{ env.veracode_artifact }}
80+
filepath: ./veracode_artifact_directory/
8581
vid: '${{ secrets.VERACODE_API_ID }}'
8682
vkey: '${{ secrets.VERACODE_API_KEY }}'
8783
#scanpollinginterval: 30
8884
scantimeout: 15
89-
include: ${{ inputs.modules_to_scan }}
85+
# include: ${{ inputs.modules_to_scan }}
9086
failbuild: ${{ inputs.break_build_policy_findings }}
9187
use_upgraded_version: true
9288

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

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -34,24 +34,20 @@ jobs:
3434
with:
3535
name: veracode-artifact
3636
path: ./veracode_artifact_directory
37-
38-
- name: Get the name of the downloaded files
39-
run: |
40-
artifact_file=$(ls -1 ./veracode_artifact_directory | head -n 1)
41-
echo "veracode_artifact=$artifact_file" >> $GITHUB_ENV
37+
4238
# run the policy scan action
4339
- name: Veracode Upload and Scan Action Step
44-
uses: veracode/[email protected].2
40+
uses: veracode/[email protected].3
4541
id: upload_and_scan
4642
with:
4743
appname: ${{ inputs.profile_name }}
4844
createprofile: true
4945
policy: ${{ inputs.policy_name }}
5046
version: '${{ github.run_id }}'
51-
filepath: ./veracode_artifact_directory/${{ env.veracode_artifact }}
47+
filepath: ./veracode_artifact_directory/
5248
vid: '${{ secrets.VERACODE_API_ID }}'
5349
vkey: '${{ secrets.VERACODE_API_KEY }}'
5450
createsandbox: true
5551
sandboxname: GitHub App Scans-${{ inputs.branch }}
56-
include: ${{ inputs.modules_to_scan }}
52+
# include: ${{ inputs.modules_to_scan }}
5753
failbuild: ${{ inputs.break_build_policy_findings }}

0 commit comments

Comments
 (0)