VeriBOM Travis CI Integration
Last updated
Last updated
Introduction This guide provides step-by-step instructions on integrating VeriBOM with Travis-CI Pipelines CI/CD for seamless CI/CD pipeline scanning for SBOM generation and uploading the generated SBOM to the VeriBOM platform.
Before you begin, ensure that you have the following:
Travis-CI Account: Ensure you have access to your Travis-CI repository with the necessary permissions to configure pipeline settings.
VeriBOM Account: Ensure you have access to VeriBOM and the required permissions to generate an API key.
Steps
Step 1: Generate an access token from VeriBOM
Log in to VeriBOM
Navigate to Products page
If the product for which Travis-CI CI/CD integration is needed is already listed, click it; otherwise, click on Add Product to create the product and click it.
Click on "Add Project."
Provide project information (name, description, and environment) and click on the Save and Continue button.
On the next page, select Travis-CI CI/CD under Source Type.
From the following page, Copy the API Key generated and click on "Complete Setup" Please ensure to securely store this API Key for future use.
A SBOM request needs to be submitted from the Travis-CI CI/CD platform using the API Key. You should be able to view the SBOM when the SBOM scanning status is shown as completed.
Step 2: Configure VeriBOM Integration in Travis-CI
Log in to your Travis-CI account
Once logged in, click on your Repo.
For your Selected Repo, click on Settings
Scroll down to the Environment Variables section, and enter the API Key previously copied from the VeriBOM UI.
Once you've stored the VeriBOM API Key in the Travis-CI Environment variable, proceed by adding a .travis.yml file to your repository. Within this file, include or adjust the script responsible for initiating SBOM generation and uploading the resulting SBOM to VeriBOM. You can refer to a sample script available on the same page where you obtained the API Key.
Scroll up on the same page click on "Trigger Build"
Once the job is completed, verify the generated SBOM in VeriBOM.
In this way, we can successfully integrate VeriBOM with Travis-CI projects and manage and track SBOM efficiently.