Creating OAuth 2.0 credentials for GitHub Apps - JWT for the GitHub Application Vulnerability Integration
-
- UpdatedAug 1, 2024
- 8 minutes to read
- Xanadu
- Application Vulnerability Response
Perform the following steps to integrate your GitHub Apps using the JWT bearer token for the GitHub Application Vulnerability Integration.
- sn_vul.app_sec_manager and admin for records in your ServiceNow AI Platform.
- No instance role required for tasks in your GitHub account.
Create and configure the GitHub app for the GitHub Application Vulnerability Integration
Create a custom GitHub App from your GitHub account to activate OAuth 2.0 authentication with your GitHub Application Vulnerability Integration in your instance.
Before you begin
Role required: No instance role required
About this task
Complete these steps from your GitHub account. See Building GitHub Apps on the GitHub Developer site for instructions on creating and configuring custom applications.
Procedure
Generate the JKS certificate for the GitHub Application Vulnerability Integration
Generate a JKS certificate for the JWT authentication for the GitHub Application Vulnerability Integration.
Before you begin
You need to note the password that you use to generate the .jks file (KeyStore password).
Role required: sn_vul.app_sec_manager
Procedure
Attach the GitHub Java Key Store certificate to your instance for the GitHub Application Vulnerability Integration
Activate the JWT Bearer Grant token authentication by attaching the valid GitHub Java KeyStore (JKS) certificate to your instance.
Before you begin
A valid Java KeyStore certificate.
Role required: sn_vul.app_sec_manager
Procedure
Create a JWT signing key for the GitHub JKS certificate for the GitHub Application Vulnerability Integration
Create a JSON Web Token (JWT) signing key to assign to your GitHub Java KeyStore certificate.
Before you begin
- admin
- sn_vul.app_sec_manager
Procedure
Create a JWT provider for your GitHub signing key for the GitHub Application Vulnerability Integration
Add a JSON Web Token (JWT) provider to your ServiceNow instance for GitHub.
Before you begin
- admin
- sn_vul.app_sec_manager
Procedure
Register GitHub as an OAuth Provider (JWT) for the GitHub Application Vulnerability Integration
Use the information generated during GitHub App account configuration to register GitHub as an OAuth provider and allow the instance to request OAuth 2.0 tokens.
Before you begin
- admin
- sn_vul.app_sec_manager
Procedure
Create Credentials and Connections for the GitHub Application Vulnerability Integration
Create a credential record to the GitHub App provider previously created to authorize actions.
Before you begin
- admin
- sn_vul.app_sec_manager
Procedure
On this page
- Create and configure the GitHub app for the GitHub Application Vulnerability Integration
- Generate the JKS certificate for the GitHub Application Vulnerability Integration
- Attach the GitHub Java Key Store certificate to your instance for the GitHub Application Vulnerability Integration
- Create a JWT signing key for the GitHub JKS certificate for the GitHub Application Vulnerability Integration
- Create a JWT provider for your GitHub signing key for the GitHub Application Vulnerability Integration
- Register GitHub as an OAuth Provider (JWT) for the GitHub Application Vulnerability Integration
- Create Credentials and Connections for the GitHub Application Vulnerability Integration