Skip to content

GitHub Integration (Dependabot)#

This method imports the vulnerabilities detected by GitHub Dependabot and the list of libraries that a repository depends on into FutureVuls so that you can manage them in the same UI as your other servers.

Item Description
Import target The list of libraries that the GitHub repository depends on (dependency graph), and the vulnerabilities detected by Dependabot (open alerts)
Prerequisites Dependabot alerts and the dependency graph enabled on the GitHub side, and a GitHub token issued (including authorizing the token for the organization if the organization uses SAML SSO). A user with group administrator permissions registers the token in FutureVuls
Registration destination A registered server (excluding container images; if you manage only the repository, you can create a pseudo server and register the repository to it). Register the repository under "GitHub Repository" in the server / product details
Update timing The latest information is retrieved from GitHub when the server to which the repository is registered is scanned

For how this differs from the other import methods, see "Importing from External Services and Assessment Tools".

GitHub provides a built-in feature to detect vulnerabilities in libraries.

GitHub builds the library list by reading the manifest files in the repository (package-lock.json, pom.xml, etc.). All libraries are imported, whether or not they have vulnerabilities, so libraries without vulnerabilities are also covered by EOL management and license management. Imported libraries appear as GitHub Package on the software list (see Software types).

The integration consists of preparation on the GitHub side and registration on the FutureVuls side.

Enable Dependabot alerts and generate a token on GitHub, then in FutureVuls register the token to the group and the repository to the server

Order Task Work location
1 Enable Dependabot alerts and the dependency graph GitHub
2 Generate a GitHub token GitHub
3 Register the GitHub token to the group FutureVuls
4 Register the GitHub repository to the server FutureVuls
5 Scan the server and check the imported libraries and vulnerabilities FutureVuls

On this page, "GitHub Security Alerts" refers to GitHub's Dependabot alerts (the GitHub UI displays it as "Dependabot alerts").

Enabling GitHub Security Alerts#

Refer to the "Managing security and analysis settings for your repository (GitHub Docs)" to enable the Dependabot alerts (GitHub Security Alerts) setting. Also enable the dependency graph so that the library list can be imported.

Generating a GitHub Token#

Generate a GitHub token from Fine-grained personal access tokens. You can grant only read permissions, limited to the target repositories.

  • Expiration: Ensure it has not expired
  • Resource owner: Ensure this is set to the owner (Organization) of the target repository
  • Repository access: Ensure the target repository is included (select only the target repositories with "Only select repositories")
  • Repository permissions: Set the following permissions to Read-only
    • Contents
    • Dependabot alerts
    • Metadata

When using Personal access tokens (classic)

If you cannot use Fine-grained personal access tokens, for example because of your Organization's settings, generate a token from Personal access tokens (classic). The repo (Full control of private repositories) scope is required (Reference: How to set up GitHub "Personal access tokens" - in Japanese). Because repo also includes write access to private repositories, manage the token carefully.

Configuring External Integration#

As a group administrator, register the token created above in the GitHub Security card under Group Settings > Advanced Settings > External Integration > External Integration.

Group Settings > GitHub Integration

Register the token using the "Add" button. Also, set a token name to identify it within FutureVuls.

Adding a GitHub token

The configuration is complete once the added token appears in the list.

Registering a GitHub Repository to a Server#

Under "GitHub Repository" in the Server / Product details, enter the owner and repository name of the GitHub repository to integrate, and select a token registered to the group. The owner is the <owner> part (a user name or an Organization name) of the repository URL https://github.com/<owner>/<repository name>.

GitHub Repository Integration

If registration is successful, the registered repository will appear in the list.

Clicking the GitHub icon in the settings will take you to the corresponding repository on GitHub. You can also switch tokens or remove the integration by clicking Edit. When you remove the integration, the tasks for the vulnerabilities imported from that repository are deleted. Tasks for vulnerabilities that still have a relation to other software or external scan results (results registered through "Manual Registration of Assessment Results (External Scan)") on the same server remain.

GitHub Repository Integration

Running a Scan and Checking the Results#

When Scan Results are Reflected

Registering a repository alone does not retrieve information from GitHub. After registration, run a "manual scan" from the Server / Product details to reflect the scan results. For a server with the scanner installed, the results are also reflected at the next scan by the scanner. For a pseudo server, the results are also reflected at the periodic automatic scan. Whether servers registered by Paste Scan or SBOM import are targeted by periodic automatic scans depends on your plan (see "Target Servers of Periodic Automatic Scans").

After the scan, the corresponding libraries will be displayed under Server > Software.

If a GitHub API error is displayed

If a scan after the integration fails with "Failed to access Github API. Please check if your github token is valid", check the following points.

  • The GitHub token has not expired and has the required permissions (Generating a GitHub Token)
  • If the organization uses SAML SSO, the token is authorized for that organization
  • The owner and repository name are correct
  • For a private repository, Dependabot alerts and the dependency graph are enabled (Enabling GitHub Security Alerts)

For private repositories, both may be disabled. While the dependency graph is disabled, this error occurs even if the token and repository name are correct. Enabling Dependabot alerts also enables the dependency graph.

Troubleshooting#