microsoft / security-devops-azdevops

Microsoft Security DevOps extension for Azure DevOps.
MIT License
60 stars 16 forks source link

error while running on a self-hosted agent behind proxy #28

Open gt97 opened 1 year ago

gt97 commented 1 year ago

Hi,

I am trying to use the Microsoft Security DevOps extension for Azure Devops on a self-hosted machine that runs behind the proxy. The Azure Devops agent configuration has veen done using the proxy configuration (--proxyurl http://:8080)

Looks to me the proxy is non used by the scanner.

I see in the log: 2023-01-11T09:23:35.820+0100 error cli/init.go:42 failed to initialize terrascan. error : could not connect to github.com 2023-01-11T09:23:35.820+0100 error cli/init.go:42 failed to initialize terrascan. error : could not connect to github.com

Kind regards Gianluca

mnieto commented 1 year ago

I'm not familiar terrascan. but: Usually, tools installed in the self-hosted agent make use of the proxy settings configured at OS level, they don't use the agent proxy configuration. On Windows some tools use the default OS proxy configuration, but other search HTTP_PROXY or HTTPS_PROXY environment variables.