Skip to content

Commit

Permalink
Merge pull request #67 from veracode/SDEVX-v0.2.15
Browse files Browse the repository at this point in the history
Bug fixes related to invalid policy name and vercode helper repo
  • Loading branch information
shailesh-veracode authored Dec 12, 2024
2 parents 9e81197 + 91f57ba commit 8c8cf56
Show file tree
Hide file tree
Showing 9 changed files with 24 additions and 21 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
steps:
- name: Verify Veracode API credentials
id: verify_api_creds
uses: veracode/[email protected].4
uses: veracode/[email protected].5
with:
action: validateVeracodeApiCreds
token: ${{ github.event.client_payload.token }}
Expand All @@ -43,7 +43,7 @@ jobs:
- name: Verify Policy name
id: verify_policy_name
if: success()
uses: veracode/[email protected].4
uses: veracode/[email protected].5
with:
action: validatePolicyName
token: ${{ github.event.client_payload.token }}
Expand Down Expand Up @@ -83,7 +83,7 @@ jobs:
- name: Veracode Pipeline Results
if: always()
id: prepare-results
uses: Veracode/[email protected].4
uses: Veracode/[email protected].5
with:
action: 'preparePipelineResults'
token: ${{ github.event.client_payload.token }}
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/binary-ready-veracode-sast-policy-scan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
steps:
- name: Verify Veracode API credentials
id: verify_api_creds
uses: veracode/[email protected].4
uses: veracode/[email protected].5
with:
action: validateVeracodeApiCreds
token: ${{ github.event.client_payload.token }}
Expand All @@ -43,7 +43,7 @@ jobs:
- name: Verify Policy name
id: verify_policy_name
if: success()
uses: veracode/[email protected].4
uses: veracode/[email protected].5
with:
action: validatePolicyName
token: ${{ github.event.client_payload.token }}
Expand Down Expand Up @@ -88,7 +88,7 @@ jobs:
- name: Veracode Policy Results
id: prepare-results
if: always()
uses: Veracode/[email protected].4
uses: Veracode/[email protected].5
with:
action: 'preparePolicyResults'
token: ${{ github.event.client_payload.token }}
Expand All @@ -107,7 +107,7 @@ jobs:
if: ${{ github.event.client_payload.user_config.sandbox_scan.execute_remove_sandbox_action && always() }}
name: Remove Sandbox
steps:
- uses: veracode/[email protected].4
- uses: veracode/[email protected].5
with:
action: 'removeSandbox'
vid: ${{ secrets.VERACODE_API_ID }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/template-register.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
steps:
- name: Register build
id: register-build
uses: veracode/[email protected].4
uses: veracode/[email protected].5
with:
action: registerBuild
token: ${{ github.event.client_payload.token }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/veracode-code-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ jobs:
steps:
- name: Verify Veracode API credentials
id: verify_api_creds
uses: veracode/[email protected].4
uses: veracode/[email protected].5
with:
action: validateVeracodeApiCreds
token: ${{ github.event.client_payload.token }}
Expand All @@ -65,7 +65,7 @@ jobs:
- name: Verify Policy name
id: verify_policy_name
if: success()
uses: veracode/[email protected].4
uses: veracode/[email protected].5
with:
action: validatePolicyName
token: ${{ github.event.client_payload.token }}
Expand Down
15 changes: 9 additions & 6 deletions .github/workflows/veracode-default-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,14 @@ jobs:
steps:
- uses: actions/checkout@v4
with:
repository: ${{ inputs.repository }}
ref: ${{ inputs.ref }}
token: ${{ inputs.token }}
path: 'veracode-helper'

- uses: actions/checkout@v4
with:
path: 'veracode-helper'
repository: ${{ inputs.repository }}
ref: ${{ inputs.ref }}
token: ${{ inputs.token }}
path: 'source-code'

- name: Package the application
id: application_package
Expand Down Expand Up @@ -77,11 +78,13 @@ jobs:
export PATH="veracode-helper/helper/cli/$cliFileName:$PATH"
cd $working_path
if [[ "${{ inputs.event_name }}" == *"ruby"* ]]; then
gem install --install-dir source-code veracode
cd source-code
gem install bundler -v ${{ inputs.bundle_version }}
gem install veracode
bundle install
cd ..
fi
veracode package --source . --output veracode-artifacts --trust
veracode package --source source-code --output veracode-artifacts --trust
- name: Package error
if: failure() && steps.application_package.outcome == 'failure'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/veracode-iac-secrets-scan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
steps:
- name: Verify Veracode API credentials
id: verify_api_creds
uses: veracode/[email protected].4
uses: veracode/[email protected].5
with:
action: validateVeracodeApiCreds
token: ${{ github.event.client_payload.token }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/veracode-pipeline-scan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ jobs:
- name: Veracode Pipeline Results
if: always()
id: prepare-results
uses: Veracode/[email protected].4
uses: Veracode/[email protected].5
with:
action: 'preparePipelineResults'
token: ${{ inputs.token }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/veracode-policy-scan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ jobs:
- name: Veracode Policy Results
id: prepare-results
if: always()
uses: Veracode/[email protected].4
uses: Veracode/[email protected].5
with:
action: 'preparePolicyResults'
token: ${{ inputs.token }}
Expand All @@ -111,7 +111,7 @@ jobs:
if: ${{ github.event.client_payload.user_config.sandbox_scan.execute_remove_sandbox_action && always() }}
name: Remove Sandbox
steps:
- uses: veracode/[email protected].4
- uses: veracode/[email protected].5
with:
action: 'removeSandbox'
vid: ${{ secrets.VERACODE_API_ID }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/veracode-remove-sandbox.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
runs-on: ubuntu-latest
name: Remove Sandbox
steps:
- uses: veracode/[email protected].4
- uses: veracode/[email protected].5
with:
action: 'removeSandbox'
vid: ${{ secrets.VERACODE_API_ID }}
Expand Down

0 comments on commit 8c8cf56

Please sign in to comment.