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

Action Attempts to Download Bridge Executable Even When Path For Executable is Set #102

Open
chernoffRTX opened this issue Apr 25, 2023 · 3 comments

Comments

@chernoffRTX
Copy link

We are using Running GitHub enterprise in an air gapped environment. We have sync'd the synopsys-action into our environment and downloaded the bridge executable to the runner. When the SYNOPSYS_BRIDGE_PATH variable is set, the action still seems to attempt to download the executable from the synopsis

Runner OS - Windows 2019 Data Center Edition
Bridge Version Downloaded: https://sig-repo.synopsys.com/artifactory/bds-integrations-release/com/synopsys/integration/synopsys-action/0.1.192/

Path and Directory for the bridge:
Directory: C:\apps\blackduck-bridge

Mode LastWriteTime Length Name


d----- 4/25/2023 6:58 PM extensions
-a---- 4/25/2023 6:58 PM 8537 LICENSE.txt
-a---- 4/25/2023 6:58 PM 4078048 synopsys-bridge.exe
-a---- 4/25/2023 6:58 PM 4078048 bridge.exe
-a---- 4/25/2023 6:58 PM 515 versions.txt

GitHub Workflow File:

name: Hello World - Testing Black Duck

on:

  • workflow_dispatch

jobs:
test_black_duck_windows_2019:
runs-on: App-Factory-Win-2019

steps:
  - uses: actions/checkout@v3

  - name: Synopsys Action
    uses: vendor-actions/synopsys-action@v1.1.0
    with:
      coverity_project_name: ${{ secrets.COVERITY_PROJECT_NAME }}
      blackduck_apiToken: ${{ secrets.BLACKDUCK_API_TOKEN }}
      blackduck_url: ${{ secrets.BLACKDUCK_URL }}
      SYNOPSYS_BRIDGE_PATH: "C:\\apps\\blackduck-bridge"

      # Optional parameter. By default, pushes will initiate a full "intelligent" scan and pull requests
      # will initiate a rapid scan.
      blackduck_scan_full: true

      blackduck_scan_failure_severities: "ALL"
      # multiple parameters
      # blackduck_scan_failure_severities: "BLOCKER,CRITICAL,TRIVIAL"

Error Message:


Run vendor-actions/synopsys-action@v1.1.0
with:
coverity_project_name: ***
blackduck_apiToken: ***
blackduck_url: ***
SYNOPSYS_BRIDGE_PATH: C:\apps\blackduck-bridge
blackduck_scan_full: true
blackduck_scan_failure_severities: ALL

Synopsys Action started...
Checking for latest version of Bridge to download and configure
Error: Workflow failed! read ECONNRESET

@lejouni
Copy link

lejouni commented Jun 8, 2023

Is this still valid with version v1.2.0?

@hergerprime
Copy link

Yes. I tried this version 2, the issue still remains.

@lejouni
Copy link

lejouni commented Jun 8, 2023

ok, I made some testing and I noticed that you have to give the Bridge version as well, otherwise it will check that do you have the latest version. So, you have to give these:

with:
synopsys_bridge_path: <bridge_install_folder>
bridge_download_version: <bridge_version>

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

3 participants