Install Frogbot with the GitHub App

Set up Frogbot scans in selected GitHub repositories using the JFrog GitHub App.

Add Frogbot to selected GitHub repositories so scans run in GitHub Actions. The public Frogbot action scans pull requests and repositories. Its README documents dependency and license checks, SAST, contextual analysis for Python, JavaScript, and Java, secret detection, and Terraform scans.

Before You Begin

  • The JFrog GitHub App is installed.
  • A GitHub organization. Personal repositories under an individual user account aren't supported.
  • Xray 3.128.3 or newer for the GitHub App integration, and Xray 3.143.6 or later to run Frogbot V3.
  • Permission to select repositories and merge the generated workflow.

Use jfrog/frogbot@v3 for new workflows. Frogbot V2 is maintenance only. The GitHub App writes jfrog/frogbot@v3 into the workflows it generates.

Add Frogbot to Repositories

To add Frogbot to repositories:

  1. In the JFrog Platform, go to Administration > Xray Settings > Indexed Resources > Git Repositories.

  2. Click + Add Git Repositories.

  3. Select Automatic Integration.

  4. In Organization, select the GitHub organization, then select the repositories to scan. You can select up to 200 repositories.

  5. If Access token expiry appears, choose how long the new JF_ACCESS_TOKEN stays valid: No expiry, 1 month, 3 months, 6 months, or 1 year. The default is No expiry. JFrog doesn't renew the token automatically. When the organization already has a JF_ACCESS_TOKEN secret, the field doesn't appear and JFrog keeps the existing secret.

  6. Leave Automatically merge the Frogbot workflow selected, or clear it to review each pull request yourself. The checkbox is selected by default.

  7. Click Integrate Frogbot. JFrog opens a pull request titled Add Frogbot Configuration in each repository. The pull request adds .github/workflows/frogbot-scan-pull-request.yml and .github/workflows/frogbot-scan-repository.yml, and creates a GitHub environment named frogbot. JFrog sets the organization secret JF_URL and creates JF_ACCESS_TOKEN when the organization doesn't have one.

  8. On View Pull Requests, read the token message and confirm whether each pull request merged. The message shows when a new JF_ACCESS_TOKEN expires, or says that JFrog kept the existing secret.

  9. In the Pull Request column, click Merged or Approve Pull Request to open that pull request on GitHub.

The frogbot environment uses the repository's teams with the Maintain permission as reviewers. When the repository has no such team, the pull request description warns that the scan-PR workflow won't run until you add a reviewer in Settings > Environments > frogbot.

A workflow that calls the public action can also set oidc-provider-name and the optional oidc-audience. The command: auto-pr setting is only for workflows that must open a fix pull request for a known dependency. The component-name, affected-version, fix-version, and branch-name inputs apply to that command.

Frogbot Scan Results

Each selected repository has the Frogbot pull-request and repository workflows, and a pull request or scheduled repository scan produces Frogbot results. Pull-request scans report new findings as comments on the pull request.

Repository scans appear under Security > Code scanning alerts when GitHub code scanning is enabled. Pull-request scan results appear there only when JF_UPLOAD_PR_SECURITY_RESULTS_TO_VCS is true. Repository scans can also open fix pull requests.

Troubleshoot

Use the following table to resolve common Frogbot installation issues.

SymptomWhat to Check
A repository can't be selected.Confirm the JFrog GitHub App is installed for that organization repository.
The pull request has no workflow file.On View Pull Requests, open the link in the Pull Request column and confirm the workflow files are in the pull request.
Frogbot can't authenticate.Confirm that the organization secrets JF_URL and JF_ACCESS_TOKEN are present, without printing the secret value. If the token expired, generate a new token and update the JF_ACCESS_TOKEN organization secret.
The scan-PR workflow doesn't run.In GitHub, open Settings > Environments > frogbot and add at least one reviewer.
You need to find the token JFrog created.In the JFrog Platform, look for access tokens named frogbot-automatic-integration.

Related Topics


Did this page help you?