Scan private source and retain its evidence
Connect a private repository, scope a real scan, inspect the result, and remove the connection without erasing its history. This task follows workspace setup and comes before interpreting source findings as migration work.
Scan private source and retain its evidence
Loading video…
The demonstration uses the production workspace and an authenticated GitHub connection to the private project repository. The scope is deliberately limited to tests/fixtures/certificate-files. These are test certificates, including one deliberately invalid certificate; the repository access, transfer, scan, findings and cleanup responses are real. Nothing in this lesson claims complete coverage of the project or runtime use of its certificates.
Get ready
Use a workspace administrator account to create and later delete the connection. Have permission to read the repository and send the selected source to the hosted scanner. Keep confidential or unnecessary source outside the approved directory.
For GitHub, obtain a fine-grained personal access token restricted to the intended repository with Contents: read-only. Organization approval may also be required. For GitLab, use a suitable project or personal token with the documented read_api permission and access to the selected project. The filmed example uses an existing authorized GitHub credential; creating a new token at the provider is a prerequisite, not a step shown in this recording.
The provider token is entered only into the password field and is never revealed in the recording. A token's provider permissions still matter even when QScan limits its own selected source directory.
Add a narrowly scoped connection
- Open Repository scanning and choose Add repository.
- Give the connection a useful name. It appears in the connection list and scan history.
- Choose the provider and enter
owner/repository, without the website URL. GitLab subgroup paths are supported. - Enter the branch, tag or commit. Each scan resolves that reference to an exact commit, which is retained with the result.
- Enter the approved source directory. In the example, this is the small certificate fixture directory. Leave the field empty only when your approved scope covers all supported source in the repository.
- Choose Your account token, enter the credential in the hidden field, and optionally record its expiry.
- Save. This saves scope and access configuration; it does not start a scan.
Verify access and start discovery
- Open the connection's More menu and choose Check access.
- Resolve any provider refusal before continuing. A missing path, expired credential, missing organization approval, or rate limit calls for a different response.
- Choose Run scan once. The interface shows admission and progress feedback while processing continues.
- Follow the status in scan history. You may leave the page while the job runs; do not create duplicate runs because a scan has not finished immediately.
- Open the completed attempt and inspect its exact commit, file count, findings, coverage diagnostics and cleanup status.
- Choose Download SARIF when you need the structured report. The recording exports this real scan result.
Interpret the result without overstating it
The example scans three source files and produces two certificate findings. The deliberately invalid certificate produces a certificate-parse-error diagnostic, leaving analysis incomplete. The UI presents that as a coverage gap, even though the processing job has finished and temporary source cleanup is confirmed.
A source certificate is evidence that the file contains that certificate. It does not prove that a running application uses it. A dependency declaration likewise needs its own installation and runtime context. Preserve the commit and diagnostic paths when assigning follow-up work.
Disconnect and delete the temporary connection
- Open More, choose Disconnect, read the confirmation, then confirm.
- Disconnection removes the stored credential and prevents unfinished work from publishing new findings. It does not revoke the original token at GitHub or GitLab; do that at the provider if the token is no longer needed.
- Choose Delete on the disconnected connection.
- Read the permanent-deletion confirmation. Connection configuration is removed; scan history, findings and audit records are retained.
- Open the retained scan history to confirm the evidence is still available.
Deletion may wait for active scans to finish cleanup. Do not interpret a pending cleanup message as a completed deletion.
Recover from common problems
- Access not configured or scan unavailable: configure an authenticated connection. A public repository is not a reason to omit provider authentication from the hosted scan workflow.
- Access denied or repository not found: check the owner/path, reference, token scope, repository selection and any organization approval. The provider may intentionally return not found for a private resource you cannot access.
- Rate limited: wait for the connected provider account's quota to reset. A rate limit does not establish that the credential is invalid.
- Selected source is too large: choose a smaller approved source directory. A scope-limit rejection is not a scan result.
- A file could not be parsed: review the named diagnostic, repair the source or record the unresolved gap, then run a new attempt. Do not erase the historical incomplete result.
- Cleanup pending: wait for cleanup confirmation before treating the attempt or deletion as finished.
- Connection disappeared after deletion: use retained scan history. Removing connection configuration does not remove the scan evidence.
What you accomplished
You established provider access, selected a specific source boundary, followed a real scan into its findings and diagnostics, and removed temporary connection access while retaining the historical evidence. The next step is to review the findings in their application and runtime context.
Narration transcript
Let's scan a private repository after workspace setup. You'll approve a narrow source scope, inspect the findings, and remove the connection while keeping its evidence. Start with Add repository.
Enter the owner and repository path, then the branch, tag, or commit you want to assess. Each run resolves that reference to an exact commit. Here we're choosing a small certificate fixture directory in our private project. That's deliberate: this lesson proves the workflow without pretending we've assessed the entire codebase.
Enter the provider token in the hidden password field, then save. Saving doesn't start a scan.
Check access, then run the scan. Follow the progress instead of submitting it again. The job resolves your branch to a commit, analyzes the selected source, and confirms cleanup before publishing its findings.
This scan found two certificates in three files, with a coverage gap for an invalid certificate. Review the commit and cleanup status too. Source findings don't prove runtime use, and a completed job doesn't mean every file was understood.
Disconnect this temporary connection when you're finished. Its stored credential is removed. Revoke the provider token separately if you no longer need it.
Delete the disconnected configuration. The confirmation explains what stays: scan history, findings, and audit records.
You've scanned private source and removed its connection while keeping the evidence. For each repository, approve access, constrain the source, and inspect coverage. Tie the findings to their exact commit, and keep unanswered questions visible.