Skip to main content
You can export the findings generated by Endor Labs to GitHub Advanced Security so that you can view the findings in the GitHub. Endor Labs exports the findings in the SARIF format and uploads them to GitHub. You can view the findings under Security > Vulnerability Alerts > Code Scanning in GitHub.
GitHub has multiple limitations for SARIF files, so you may not be able to experience the full benefits on Endor Labs. For example, GitHub limits the number of results in a SARIF file. It allows a maximum of 25000 results per file but displays the first 5000 results ranked by severity. GitHub also limits the number of tags on a code scanning rule. See Filter findings by tags in GitHub to learn which tags Endor Labs exports. Refer to GitHub SARIF support for code scanning for the complete list of SARIF file limitations in GitHub Advanced Security.

Prerequisites

Ensure that you meet the following prerequisites before exporting findings to GitHub Advanced Security:

Create a GHAS SARIF exporter

GHAS SARIF exporter allows you to export the findings generated by Endor Labs in the SARIF format. See Understanding SARIF files for more information on the SARIF format and Endor-specific extensions. Add a GHAS SARIF exporter and choose which findings it sends to GitHub Advanced Security.
  1. Select User menu > Integrations from the left sidebar.
  2. Under Exporters, click Add next to GHAS.
  3. Click Add GHAS Exporter.
  4. Enter an Exporter name.
  5. Review Scan context. By default, a GHAS exporter sends data from default branches, monitored branches, and pull request scans.
  6. Choose a Scan data type.
    • Findings with action policy of warn/block is the default and exports only the findings that an action policy matched.
    • All findings exports every finding.
  7. Review Format. By default, a GHAS exporter exports findings in SARIF format. Add a GHAS exporter
  8. Click Create Exporter.
The exporter does not export any data until you add it to a scan profile.

Configure scan profile and project to use the GHAS SARIF exporter

You can configure the scan profile to use the GHAS SARIF exporter and associate it with your project. You can also set the scan profile as the default scan profile so that all the projects in the namespace use the scan profile by default. See Scan profiles for more information.

Configure the scan profile

Ensure that you select the GHAS SARIF exporter in the Export section of the scan profile.
  1. Select User menu > Settings from the left sidebar.
  2. Select Scan Profiles.
  3. Select the scan profile you want to configure and click Edit Scan Profile.
  4. Select the GHAS SARIF exporter under Exporters and click Save Scan Profile. Scan profile

Configure the project to use the scan profile

Ensure that you choose the scan profile with the GHAS SARIF exporter for the project.
  1. Go to the Projects page and select the project you want to configure.
  2. Select Settings and select the scan profile you want to use under Scan Profile. Scan profile for projects

Scan projects to use the GHAS SARIF exporter

After the configuration is complete, your subsequent scans will export the findings in the SARIF format and upload them to GitHub. You can rescan the project immediately instead of waiting for the next scheduled scan. See Rescan projects for more information. If you have enabled pull request scans in your GitHub App, the GHAS SARIF exporter exports the findings for each pull request.

View findings in GitHub

  1. Navigate to your GitHub repository.
  2. Select Security.
  3. Select Code scanning under Vulnerability Alerts. View findings in GitHub You can use the search bar to filter the findings. You can also view findings for a specific branch and other filter criteria. You can also view the findings specific to a pull request if you have enabled pull request scans. You can filter the findings by the pull request number and view findings associated with the pull request. You can select a finding and view the commit history behind the finding. Filter findings in GitHub
  4. Select Campaigns to view and create security campaigns that coordinate remediation efforts across multiple repositories. See GitHub security campaign for more information.

Filter findings by tags in GitHub

After you export findings to GHAS, Endor Labs includes finding tags and categories as searchable tags in the SARIF output. These tags appear in the GitHub code scanning interface, and you can filter and identify specific types of findings. GitHub displays only the first 10 tags on a code scanning rule and rejects an upload that has more than 20. This keeps the most useful tags from being dropped. The GHAS SARIF exporter sends a fixed set of 10 tags in a fixed priority order. Tags outside this set, including CWE identifiers, are no longer exported to GHAS. You can use the search bar to filter findings by tags. Use the tag: prefix followed by the tag name to search for specific Endor Labs tags. The following table lists the tags that Endor Labs exports to GHAS, in the order they appear on a rule. You can combine multiple filters to narrow down your results. For example, to find reachable vulnerabilities with available fixes:
Filter findings by tags in GitHub

Severity of exported findings

Endor Labs sets the security-severity property on each SARIF rule, and GitHub reads it to assign a severity to the code scanning alert. When a finding has a CVSS score, Endor Labs uses that score. When a finding has no CVSS score, Endor Labs uses a fixed value for the finding severity. The security-severity value is always a plain decimal number, such as 7.5.

Filter findings exported to GitHub

You can control which findings you export to GHAS by using action policies. Only findings from projects within the scope of your configured action policies reach GitHub Advanced Security. To filter findings using action policies:
  1. Create an action policy that defines the criteria for findings you want to export, or use an existing action policy.
  2. Assign specific projects to the scope of the action policy you want to use.
  3. Create a GHAS SARIF exporter and choose Findings with action policy of warn/block as the Scan data type.

Manage the GHAS SARIF exporter

You can edit and delete GHAS SARIF exporters from the Endor Labs user interface.
  1. Select User menu > Integrations from the left sidebar.
  2. Under Exporters, click Manage next to GHAS.
The list shows the namespace that owns each exporter, its scan context, its scan data type, and the time it was last changed. You can search the list by exporter name.

Edit an exporter

You can change any setting of an exporter except its type.
  1. Select the vertical three dots for the exporter you want to change and select Edit.
  2. Update the values you want to change and click Next until you reach the last step.
  3. Click Save.

Delete an exporter

Delete an exporter when you no longer want to send scan data to its destination.
  1. Select the vertical three dots for the exporter you want to remove and select Delete.
  2. Click Delete to confirm.
If a scan profile uses the exporter, Endor Labs blocks the deletion and lists the scan profiles that reference it. Remove the exporter from each of those scan profiles and delete it again. See Scan profiles to manage the exporters a scan profile uses. You can edit or delete an exporter only in the namespace that owns it. An exporter is also available in the child namespaces of the namespace that owns it, where it is read-only.