Skip to content

Commit 8c8cf56

Browse files
Merge pull request #67 from veracode/SDEVX-v0.2.15
Bug fixes related to invalid policy name and vercode helper repo
2 parents 9e81197 + 91f57ba commit 8c8cf56

9 files changed

+24
-21
lines changed

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

+3-3
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
steps:
3131
- name: Verify Veracode API credentials
3232
id: verify_api_creds
33-
uses: veracode/[email protected].4
33+
uses: veracode/[email protected].5
3434
with:
3535
action: validateVeracodeApiCreds
3636
token: ${{ github.event.client_payload.token }}
@@ -43,7 +43,7 @@ jobs:
4343
- name: Verify Policy name
4444
id: verify_policy_name
4545
if: success()
46-
uses: veracode/[email protected].4
46+
uses: veracode/[email protected].5
4747
with:
4848
action: validatePolicyName
4949
token: ${{ github.event.client_payload.token }}
@@ -83,7 +83,7 @@ jobs:
8383
- name: Veracode Pipeline Results
8484
if: always()
8585
id: prepare-results
86-
uses: Veracode/[email protected].4
86+
uses: Veracode/[email protected].5
8787
with:
8888
action: 'preparePipelineResults'
8989
token: ${{ github.event.client_payload.token }}

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

+4-4
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
steps:
3131
- name: Verify Veracode API credentials
3232
id: verify_api_creds
33-
uses: veracode/[email protected].4
33+
uses: veracode/[email protected].5
3434
with:
3535
action: validateVeracodeApiCreds
3636
token: ${{ github.event.client_payload.token }}
@@ -43,7 +43,7 @@ jobs:
4343
- name: Verify Policy name
4444
id: verify_policy_name
4545
if: success()
46-
uses: veracode/[email protected].4
46+
uses: veracode/[email protected].5
4747
with:
4848
action: validatePolicyName
4949
token: ${{ github.event.client_payload.token }}
@@ -88,7 +88,7 @@ jobs:
8888
- name: Veracode Policy Results
8989
id: prepare-results
9090
if: always()
91-
uses: Veracode/[email protected].4
91+
uses: Veracode/[email protected].5
9292
with:
9393
action: 'preparePolicyResults'
9494
token: ${{ github.event.client_payload.token }}
@@ -107,7 +107,7 @@ jobs:
107107
if: ${{ github.event.client_payload.user_config.sandbox_scan.execute_remove_sandbox_action && always() }}
108108
name: Remove Sandbox
109109
steps:
110-
- uses: veracode/[email protected].4
110+
- uses: veracode/[email protected].5
111111
with:
112112
action: 'removeSandbox'
113113
vid: ${{ secrets.VERACODE_API_ID }}

.github/workflows/template-register.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
steps:
1515
- name: Register build
1616
id: register-build
17-
uses: veracode/[email protected].4
17+
uses: veracode/[email protected].5
1818
with:
1919
action: registerBuild
2020
token: ${{ github.event.client_payload.token }}

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ jobs:
5252
steps:
5353
- name: Verify Veracode API credentials
5454
id: verify_api_creds
55-
uses: veracode/[email protected].4
55+
uses: veracode/[email protected].5
5656
with:
5757
action: validateVeracodeApiCreds
5858
token: ${{ github.event.client_payload.token }}
@@ -65,7 +65,7 @@ jobs:
6565
- name: Verify Policy name
6666
id: verify_policy_name
6767
if: success()
68-
uses: veracode/[email protected].4
68+
uses: veracode/[email protected].5
6969
with:
7070
action: validatePolicyName
7171
token: ${{ github.event.client_payload.token }}

.github/workflows/veracode-default-build.yml

+9-6
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,14 @@ jobs:
4141
steps:
4242
- uses: actions/checkout@v4
4343
with:
44-
repository: ${{ inputs.repository }}
45-
ref: ${{ inputs.ref }}
46-
token: ${{ inputs.token }}
44+
path: 'veracode-helper'
4745

4846
- uses: actions/checkout@v4
4947
with:
50-
path: 'veracode-helper'
48+
repository: ${{ inputs.repository }}
49+
ref: ${{ inputs.ref }}
50+
token: ${{ inputs.token }}
51+
path: 'source-code'
5152

5253
- name: Package the application
5354
id: application_package
@@ -77,11 +78,13 @@ jobs:
7778
export PATH="veracode-helper/helper/cli/$cliFileName:$PATH"
7879
cd $working_path
7980
if [[ "${{ inputs.event_name }}" == *"ruby"* ]]; then
81+
gem install --install-dir source-code veracode
82+
cd source-code
8083
gem install bundler -v ${{ inputs.bundle_version }}
81-
gem install veracode
8284
bundle install
85+
cd ..
8386
fi
84-
veracode package --source . --output veracode-artifacts --trust
87+
veracode package --source source-code --output veracode-artifacts --trust
8588
8689
- name: Package error
8790
if: failure() && steps.application_package.outcome == 'failure'

.github/workflows/veracode-iac-secrets-scan.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
steps:
3131
- name: Verify Veracode API credentials
3232
id: verify_api_creds
33-
uses: veracode/[email protected].4
33+
uses: veracode/[email protected].5
3434
with:
3535
action: validateVeracodeApiCreds
3636
token: ${{ github.event.client_payload.token }}

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ jobs:
8484
- name: Veracode Pipeline Results
8585
if: always()
8686
id: prepare-results
87-
uses: Veracode/[email protected].4
87+
uses: Veracode/[email protected].5
8888
with:
8989
action: 'preparePipelineResults'
9090
token: ${{ inputs.token }}

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ jobs:
9292
- name: Veracode Policy Results
9393
id: prepare-results
9494
if: always()
95-
uses: Veracode/[email protected].4
95+
uses: Veracode/[email protected].5
9696
with:
9797
action: 'preparePolicyResults'
9898
token: ${{ inputs.token }}
@@ -111,7 +111,7 @@ jobs:
111111
if: ${{ github.event.client_payload.user_config.sandbox_scan.execute_remove_sandbox_action && always() }}
112112
name: Remove Sandbox
113113
steps:
114-
- uses: veracode/[email protected].4
114+
- uses: veracode/[email protected].5
115115
with:
116116
action: 'removeSandbox'
117117
vid: ${{ secrets.VERACODE_API_ID }}

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
runs-on: ubuntu-latest
3535
name: Remove Sandbox
3636
steps:
37-
- uses: veracode/[email protected].4
37+
- uses: veracode/[email protected].5
3838
with:
3939
action: 'removeSandbox'
4040
vid: ${{ secrets.VERACODE_API_ID }}

0 commit comments

Comments
 (0)