To add packages from GitHub, a custom registry must be added in the extension settings (Custom Registries).
The following example adds the GitHub registry for the SIMATIC-AX organization:
{
"siemens.apax-v3.registriesExplorer.customRegistries": [
{
"name": "GitHub Public",
"url": "https://npm.pkg.github.com/",
"registry_type": "github",
"github_scopes": [
"@simatic-ax"
]
}
]
}
If you want to add other organizations hosted on GitHub, add the corresponding scopes to the github_scopes array. Authenticate with GitHub to access private packages (see the apax login command).
If your organization uses a self-hosted GitHub instance, you can also add this as a custom registry by specifying the URL of your instance and add the github_api_url property:
{
"siemens.apax-v3.registriesExplorer.customRegistries": [
{
"name": "GitHub Enterprise",
"url": "https://<your-github-instance>/",
"registry_type": "github",
"github_api_url": "https://<your-github-instance>/api/v3/",
"github_scopes": [
"@your-org"
]
}
]
}