Loading sbom_scanner/scan.py +8 −0 Original line number Diff line number Diff line Loading @@ -613,6 +613,14 @@ class Scanner: break def scan(self, sbom_patterns: list[str]): try: # try to join the api server self.get_permissions() except requests.exceptions.RequestException as err: fail( f"Unable to connect to Dependency Track server - check the API URL and network configuration: {err}" ) print( f"🗝 API key has permissions: {AnsiColors.BLUE}{', '.join(self.get_permissions())}{AnsiColors.RESET}" ) Loading Loading
sbom_scanner/scan.py +8 −0 Original line number Diff line number Diff line Loading @@ -613,6 +613,14 @@ class Scanner: break def scan(self, sbom_patterns: list[str]): try: # try to join the api server self.get_permissions() except requests.exceptions.RequestException as err: fail( f"Unable to connect to Dependency Track server - check the API URL and network configuration: {err}" ) print( f"🗝 API key has permissions: {AnsiColors.BLUE}{', '.join(self.get_permissions())}{AnsiColors.RESET}" ) Loading