Skip to content

Commit

Permalink
Revert script removal
Browse files Browse the repository at this point in the history
We don't want to display the report to all github users that aren't authorised.
  • Loading branch information
Marcin Strankowski committed Jul 26, 2024
1 parent 3580107 commit b163a5e
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/actions/veracode/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ runs:
run: |
echo "SRCCLR_SCM_URI=${{ github.server_url }}/${{ github.repository }}/${{ inputs.srcclr-project-ext }}" >> $GITHUB_ENV
- name: "Run scanning"
run: srcclr scan
run: ${{ github.action_path }}/source_clear.sh
shell: bash
env:
SRCCLR_API_TOKEN: ${{ inputs.srcclr-api-token }}
16 changes: 16 additions & 0 deletions .github/actions/veracode/source_clear.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#!/usr/bin/env bash

echo "=========================== Starting SourceClear Script ==========================="
PS4="\[\e[35m\]+ \[\e[m\]"
set +e -v -x

srcclr scan > scan.log

SUCCESS=$? # this will read exit code of the previous command

grep -e 'Full Report Details' scan.log

set +vex
echo "=========================== Finishing SourceClear Script =========================="

exit ${SUCCESS}

0 comments on commit b163a5e

Please sign in to comment.