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

missing BDH project name on input parameter #59

Open
sugu0620 opened this issue Jun 22, 2023 · 1 comment
Open

missing BDH project name on input parameter #59

sugu0620 opened this issue Jun 22, 2023 · 1 comment

Comments

@sugu0620
Copy link

I would like to use my own custom project name and version during BDH scan. There is no input argument in the Action plugin. Please add or tell me a workaround for this issue.

**default behavior noticed tale repo name as BDH project name.

@RDarnel
Copy link

RDarnel commented Oct 9, 2023

In case anyone else is looking for this, I learned that there are some environment variable overrides built into the detect binary to help with this. Tracking down these environment variables have proven difficult, but appears to correspond to the property name in the CLI where the name is capitalized and the . char is replaced with _. For example, detect.project.name would simply have the corresponding environment variable: DETECT_PROJECT_NAME

For a list of all available properties:
https://sig-product-docs.synopsys.com/bundle/integrations-detect/page/properties/all-properties.html

Environment variables documentation:
https://sig-product-docs.synopsys.com/bundle/integrations-detect/page/configuring/envvars.html

Here's a couple that will help with the project name and version:

  • DETECT_PROJECT_NAME
  • DETECT_PROJECT_VERSION_NAME

Sample usage:

jobs:
  security:
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v3
    - name: "<Insert Build Step here>"
    - name: Run BD Detect
      uses: synopsys-sig/[email protected]
      env:
        DETECT_PROJECT_VERSION_NAME: "${{ env.VERSION }}"
        DETECT_PROJECT_NAME: "${{ github.repository }}"
      with:
        scan-mode: INTELLIGENT
        detect-version: 9.0.0
        ...

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

No branches or pull requests

2 participants