Extension Settings
To access the extension settings, click on the gear icon:
Exclude Paths from Scan
By default, paths containing the words .git
, test
, venv
and node_modules
are excluded from Xray scan. The exclude pattern can be configured in the Extension Settings.
Proxy Configuration
If your JFrog environment is behind an HTTP/S proxy, follow these steps to configure the proxy server:
Go to Preferences --> Settings --> Application --> Proxy
Set the proxy URL under
Proxy
.Make sure 'Proxy Support' is
override
oron
.
Alternatively, you can use the HTTP_PROXY and HTTPS_PROXY environment variables.
Downloading External Resources Through Artifactory
JFrog VS Code extension requires necessary resources for scanning your projects. By default, the JFrog VS Code extension downloads the resources it requires from https://releases.jfrog.io. If the machine running JFrog VS Code extension has no access to it, follow these steps to allow the resources to be downloaded through an Artifactory instance, which the machine has access to:
Login to the JFrog Platform UI, with a user who has admin permissions.
Create a Remote Repository with the following properties set:
Under the
Basic
tab:Package Type: Generic
Repository Key: jfrog-releases-repository
Under the
Advanced
tab:Uncheck the 'Store Artifacts Locally' option
Navigate to the Settings in JFrog VS Code Extension
Insert the Repository Key you created in the Repository key text field
Or set the JFROG_IDE_RELEASES_REPO
environment variable with the Repository Key you created.
Proxy Authorization
If your proxy server requires credentials, follow these steps:
Follow 1-3 steps under Proxy configuration.
Basic authorization
Encode with base64:
[Username]:[Password]
.Under 'Proxy Authorization' click on 'Edit in settings.json'.
Add to settings.json:
"http.proxyAuthorization": "Basic [Encoded credentials]"
.
Access token authorization
Under 'Proxy Authorization' click on 'Edit in settings.json'.
Add to settings.json:
"http.proxyAuthorization": "Bearer [Access token]"
.
Example
Username: foo
Password: bar
settings.json:
Troubleshooting
Change the log level to debug
, info
, warn
, or err
in the Extension Settings.
Last updated