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

Add synopsys detect exit codes and exit code names as detect-action o… #50

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

uluzox
Copy link

@uluzox uluzox commented Mar 7, 2023

…utput.

As a developer, I want to react upon different outcomes of the detect scan.
By use of the exit codes, I can (or avoid to) run further actions after the detect scan finished.

Example

- name: 🦆 Run Detect Scan
   id: scan
   uses: synopsys-sig/[email protected]
   env:
     DETECT_PROJECT_VERSION_NAME: 'master'
     DETECT_RISK_REPORT_PDF: true
     DETECT_RISK_REPORT_PDF_PATH: '.'
   with:
     scan-mode: 'RAPID'
     github-token: ${{ github.token }}
     detect-version: 7.9.0
     blackduck-url: 'https://my.blackduck.url.com'
     blackduck-api-token: ${{ secrets.BLACKDUCK_API_TOKEN }}
- name: Post Action
   if: ${{ always() }}
   shell: bash
   run: |
     echo ${{ steps.scan.outputs.detect-exit-code }}
     echo ${{ steps.scan.outputs.detect-exit-code-name }}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant