After you integrate Assured OSS with Security Command Center, Assured Open Source Software packages are hosted in an Artifact Registry repository that is created in a project that you control.
This document explains how you can connect to the Artifact Registry repository for Assured OSS to directly access and download JavaScript (NPM) packages.
This document applies to the Assured OSS premium tier only.
Before you begin
-
To get the permissions that you need to get the base64-encoded string of the service account key, ask your administrator to grant you the Service Account Key Admin (
roles/iam.serviceAccountKeyAdmin) IAM role on your organization. For more information about granting roles, see Manage access to projects, folders, and organizations.You might also be able to get the required permissions through custom roles or other predefined roles.
- Integrate Assured OSS with Security Command Center.
- Validate connectivity to Security Command Center for the requested service accounts.
- Install Node.js and
npmon your local machine. - Install the latest version of the Google Cloud CLI.
If you've installed the Google Cloud CLI previously, check that you have the latest version by running this command:
gcloud components update
Set up authentication
To set up authentication for Node.js (NPM), configure .npmrc to authenticate with Artifact Registry using service account credentials or Google Cloud user credentials.
For more information, see Set up authentication for Node.js.
Download NPM packages
In your
.npmrcfile, set the registry URL for your JavaScript (NPM) packages:registry=https://us-npm.pkg.dev/PROJECT_ID/assuredoss-javascript/Replace PROJECT_ID with the ID of the project that you selected when you set up Assured OSS.
Install the required NPM packages by using
npmoryarn:npm:npm install package-nameyarn:yarn add package-name
Replace
package-namewith your package name or scoped package name (for example,expressor@scope/package-name).
What's next
- Access security metadata and verify packages in the premium tier
- Review the list of supported NPM packages