Use dependency management
Info
For generic how-to information about VoltScript Dependency Management, see VoltScript documentation.
Dependency management is available in the documentation for each project, but also aggregated here:
Authentication
You'll need a Personal Access Token to use GitHub REST APIs. You'll then need to add the following to the JSON object in your atlas-settings.json in the .vss
directory of your user home directory:
"hcl-github": {
"type": "github",
"token": "${env.TOKEN}"
},
"volt-mx-marketplace": {
"type": "marketplace",
"username": "YOUR_USERNAME",
"password": "YOUR_PASSWORD",
"authUrl": "https://accounts.auth.hclvoltmx.net/login"
}
Tip
Hard-coding your Personal Access Token in the atlas-settings.json file works well for initial setup and testing, but is not recommended for production. The recommended method is to store your Personal Access Token as an environment variable, and then reference that variable using the ${env.VARIABLE_NAME} pattern as demonstrated below
Repository
You'll need to add the following to your repositories object in the atlas.json
of your project:
Dependency
You'll need to add the following relevant dependency to your dependencies object in the atlas.json
of your project: