Two paths to the same place. Use the workspace if you would rather click, or the CLI if you live in a terminal. Both act on the same repositories and the same findings.
Before you begin
- A Cefense account. Sign up at cefense.com.
- A repository on GitHub, GitLab, or Bitbucket that you can grant access to.
- For the CLI path only: Node 22.12 or newer, and git on your PATH.
From the workspace
- 1Open the workspace
Go to cefense.com/app and sign in.
- 2Connect a provider
Choose GitHub, GitLab, or Bitbucket. GitHub installs a GitHub App and asks which repositories it may see. GitLab and Bitbucket authorise through OAuth. See Connect a repository.
- 3Pick a repository
Everything the provider granted access to is listed. Connecting one queues its first scan straight away.
- 4Wait for the scan
The repository shows as queued, then running, then completed. A first scan of a large repository takes a few minutes.
- 5Read Findings
Open Findings to review the reported issues and observations. Open a row for its source evidence, Research for related context, Fixes for proposed patches, and Verification for recorded replay results.
- 6Generate a patch and open the pull request
From a finding, generate the patch, read the diff, and open the pull request. Read How fixes are written before you merge one.
From the terminal
npm install -g @cefense-npm/cefense-cli
cf auth login
cf repo connect
cf reproducedcf auth login opens your browser and signs you in. cf repo connect lists what your provider granted access to, connects what you choose, and follows the first scan. cf reproduced prints the findings, worst first.
$cf repo connect acme/apiConnected acme/apiScanning acme/api queued running completed 31 findingscf reproduced --repo acme/api
Close one finding
cf reproduced lists the findings with a short id against each one. Take an id and run the rest against it. Publishing asks you to type the repository name first, so there is no accidental pull request.
cf reproduced --severity critical,high
cf reproduced show <finding-id>
cf fix generate <finding-id> --wait
cf fix publish <finding-id>Next steps
Have a correction or need help?
Email the docs team