Skip to content

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

Open
uluzox wants to merge 1 commit intosynopsys-sig:mainfrom
uluzox:main
Open

Add synopsys detect exit codes and exit code names as detect-action o…#50
uluzox wants to merge 1 commit intosynopsys-sig:mainfrom
uluzox:main

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/detect-action@v0.3.3
   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