Creating OAuth 2.0 credentials for GitHub Apps - JWT for the GitHub Application Vulnerability Integration
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.
- For more information about the context of the steps for this setup, see OAuth 2.0 protocol.
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.
Avant de commencer
Role required: No instance role required
Pourquoi et quand exécuter cette tâche
Complete these steps from your GitHub account. See Building GitHub Apps on the GitHub Developer site for instructions on creating and configuring custom applications.
Procédure
Generate the JKS certificate for the GitHub Application Vulnerability Integration
Generate a JKS certificate for the JWT authentication for the GitHub Application Vulnerability Integration.
Avant de commencer
You need to note the password that you use to generate the .jks file (KeyStore password).
Role required: sn_vul.app_sec_manager
Procédure
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.
Avant de commencer
A valid Java KeyStore certificate.
Role required: sn_vul.app_sec_manager
Procédure
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.
Avant de commencer
- admin
- sn_vul.app_sec_manager
Procédure
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.
Avant de commencer
- admin
- sn_vul.app_sec_manager
Procédure
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.
Avant de commencer
- admin
- sn_vul.app_sec_manager
Procédure
Create Credentials and Connections for the GitHub Application Vulnerability Integration
Create a credential record to the GitHub App provider previously created to authorize actions.
Avant de commencer
- admin
- sn_vul.app_sec_manager