Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Code Assessment

Connect GitHub repositories and run a Code Assessment.

Code Assessment reviews source available through the Pentest Copilot GitHub App. It does not include unpushed local changes.

Unlike Web and Network, Code Assessment has no separate Discovery and Assessment phases. Each run reviews one repository target, such as a branch, pull request, tag, or commit, so the wizard starts at Scope and has four steps.

1. Connect GitHub

Open Settings -> Integrations -> GitHub and install or connect the Pentest Copilot GitHub App.

During installation:

  • choose the account or organization that owns the repositories;

  • grant access to all repositories or the required selected repositories;

  • return to Pentest Copilot and confirm the connection.

Configure GitHub for Code Assessment

2. Select Repositories and Targets

Open Modules -> Code Assessment -> Run Assessment.

Select one or more repositories. Each selected row has its own Assessment target dropdown:

  • start typing to rank live branches, open pull requests, and recent commits;

  • select the default branch when no special target is needed;

  • enter an exact branch, tag, #PR, PR number, or commit SHA and press Enter when it is not in the suggestions.

If live GitHub targets cannot be loaded, exact target entry remains available.

Code Assessment repository target dropdown with live branches, pull requests, and commits
Assessment targets are selected per repository.

3. Configure Scan Settings

Choose the checks required for the run, including source-code paths, dependency risk, secrets, authorization/business logic, and AI inventory where available.

Configure Scan Settings for Code Assessment

4. Configure Automation

Automation is saved per selected repository.

  • Allow manual and scheduled branch runs permits runs started from this wizard and schedules.

  • Run on future pull requests assesses the latest PR commit when supported GitHub events arrive.

  • Run on future push assesses pushed commits that match the optional branch regular expressions.

You can run now, schedule a run, or save automation without starting a branch run.

5. Review and Submit

Confirm repositories, exact assessment targets, enabled checks, auto-fix behavior, and automation.

  • Start run starts the selected branch/PR/commit assessment.

  • Schedule run creates the configured schedule.

  • Save automation stores repository event rules without starting a run.

Monitor and Review

  • Activity -> Activity shows pending, running, completed, failed, and cancelled runs.

  • Code Assessment -> Statistics summarizes findings.

  • Code Assessment -> Attack Paths contains validated findings and remediation.

  • Code Assessment -> SBOM contains inventory verification and SPDX, CycloneDX, and AI-BOM exports.

Common Blocks

Problem
Check

Repository is missing

Confirm it is included in the GitHub App installation.

Live targets cannot be loaded

Refresh the dropdown or enter the exact branch, tag, PR, or SHA.

PR scan did not run

Confirm PR automation was saved before the event and the App can access the repository.

Push scan did not run

Confirm push automation is enabled and the branch matches the configured regex.

Auto-fix did not create a PR

Confirm the finding is validated, fixable, and the repository uses Auto PR mode.

Last updated