jenkins
sidebar_position: 2 sidebar_label: "Jenkins" title: Integrating Scribe in your Jenkins pipeline
Use the following instructions to integrate your Jenkins pipelines with Scribe.
1. Obtain a Scribe Hub API Token
-
Sign in to Scribe Hub. If you don't have an account you can sign up for free here.
-
Create an API token in Scribe Hub > Settings > Tokens. Copy it to a safe temporary notepad until you complete the integration.
The token is a secret and will not be accessible from the UI after you finalize the token generation.
2. Add the API token to Jenkins secrets
-
Log in to your Jenkins account and select Dashboard > Manage Jenkins > Manage credentials (under Security options).
-
Select 'Global' in the list of domains:
-
In the Global credentials section, click + Add Credentials. A new Credentials form opens.
-
Copy the Scribe Hub API Token to the Password field and set the username to
SCRIBE_CLIENT_ID
. -
Set ID to
scribe-auth-id
(lowercase). -
Click Create.
3. Install Scribe CLI
Valint - Scribe CLI is required to generate evidence such as SBOMs and SLSA provenance. Install Valint on your build runner with the following command:
sh 'curl -sSfL https://get.scribesecurity.com/install.sh | sh -s -- -b ./temp/bin'
Alternatively, add an installation stage at the beginning of your relevant builds as follows:
stage('install-valint') {
steps {
sh 'curl -sSfL https://get.scribesecurity.com/install.sh | sh -s -- -b ./temp/bin'
}
}
Note: To avoid potentially costly commits, add the Scribe output directory **/scribe
to your .gitignore file.