Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

do not merge - collect binary #134

Closed
wants to merge 2 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 6 additions & 5 deletions .github/workflows/veracode-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ jobs:

- name: Backup analysis reports
# debug step used to investigate support case
if: needs.build.outputs.enable_qg == 'false' || (failure() && github.event.pull_request.draft == false)
if: success() || failure()
run: |
echo "[DEBUG] downloaded baseline details in /tmp"
ls -la /tmp
Expand Down Expand Up @@ -189,6 +189,7 @@ jobs:
backup_baseline "results.json"
backup_baseline "filtered_results.json"

cp $( find ./ -name "*veracode-binary.zip" ) "/tmp/backup"
ZIPNAME="$CURRENT_PR.$CURRENT_DATE.${{github.run_id}}.zip"
cd /tmp/backup && zip "$ZIPNAME" *
aws s3 cp "/tmp/backup/$ZIPNAME" "$BACKUP_LOCATION/$ZIPNAME"
Expand Down Expand Up @@ -232,7 +233,7 @@ jobs:
needs: [build]
name: Run a sandbox scan
# only stable and unstable maintenances branches will produce a report
if: needs.build.outputs.development_stage != 'Development'
# if: needs.build.outputs.development_stage != 'Development'
runs-on: [self-hosted, common]

steps:
Expand All @@ -245,16 +246,16 @@ jobs:

- name: Sandbox scan
uses: veracode/veracode-uploadandscan-action@f7e1fbf02c5c899fba9f12e3f537b62f2f1230e1 # master
continue-on-error: ${{ vars.VERACODE_CONTINUE_ON_ERROR == 'true' }}
continue-on-error: true
with:
appname: "${{ inputs.module_name }}"
appname: "support_case_00832599_bis_centreon-web"
version: "${{ needs.build.outputs.development_stage }}_runId-${{ github.run_id }}"
filepath: "${{ inputs.module_name }}-${{ github.sha }}-${{ github.run_id }}-veracode-binary.zip"
vid: "vera01ei-${{ secrets.veracode_api_id }}"
vkey: "vera01es-${{ secrets.veracode_api_key }}"
createprofile: true
createsandbox: true
sandboxname: "${{ github.ref_name }}"
sandboxname: "drawio-${{ github.ref_name }}"
scantimeout: 120
includenewmodules: true
scanallnonfataltoplevelmodules: true
Expand Down