Skip to Content
FeaturesScan Profiles

Use scan profiles

A scan profile is a saved set of scan options that anyone in your organization can apply from the Start scan dialog. Use profiles so that a release audit or a quick check runs with the same settings every time.

A profile stores four things:

FieldNotes
NameUp to 40 characters in the dialog. The dialog rejects a name that already exists (case-insensitive).
Scan typeSmart scan or Deep scan
BranchThe branch selected when you saved the profile
Exclude pathsRepository-relative glob patterns, for example docs/**

The Checks to include selections are not saved in a profile.

Save a profile

  1. Open a repository and click Run scan, or start a scan from the Repositories list. The Start scan dialog opens.
  2. Choose the Branch and the Scan type.
  3. Expand Advanced settings. Enter any Exclude paths, separated by commas or new lines.
  4. Click Save as profile, enter a name, and press Save (or Enter).

The profile is stored for your whole organization, not for one repository.

Apply a profile

When your organization has at least one profile, the dialog shows a Saved profile list at the top. Each entry reads <name> · Smart / <branch> or <name> · Deep / <branch>.

Choosing a profile sets the scan type and exclude paths, and selects the saved branch if that branch exists in the repository you are scanning. If it does not, CodeStax keeps the branch that was already selected and shows a warning. You can still change any option before you click Start smart scan or Start deep scan.

Delete a profile

Profiles cannot be edited. To change one, delete it and save a new one:

  1. Select the profile in Saved profile.
  2. Click Delete selected profile (the trash icon) and confirm with Delete profile.

Permissions

ActionWho can do it
List and apply profilesAnyone who can read scans. API keys need the read:scans scope.
Save or delete a profileMembers, admins, and owners. A signed-in person is required; API keys cannot save or delete profiles.
Start a scanMembers and above, or an API key with write:scans

What Smart and Deep scans change

Both scan types run the same analyzers and rule set: the SAST Analyzer, dependency (SCA) analysis, the Secret Detection Engine, and the IaC Security Analyzer. In the current release, a Deep scan differs in three ways:

Smart scanDeep scan
Repository cloneCurrent checkout onlyFull git history
Secret detectionCurrent filesFull commit history, so it can find credentials that were committed and later removed
AI verificationStandard AI triageStandard triage, then a second verification pass over critical, high, and medium findings with confidence above 50

Deep scans take longer because of the history clone and the extra verification pass. Each scan of either type counts as one scan against your monthly plan quota. The dialog footer shows your usage as <used> of <limit> scans used this month. See Smart vs Deep scans.

The Checks to include checkboxes under Advanced settings (Dependencies (SCA), Secrets, Infrastructure as code) are not applied in the current release. The scan API ignores these selections, and every Smart and Deep scan runs all four engines.

Exclude paths

Exclude patterns apply to every engine for that run. When you start a scan, each pattern must:

  • be relative to the repository root, with no leading / or -
  • not contain ..
  • be 200 characters or fewer

A scan accepts up to 50 patterns. CodeStax combines them with any exclude_paths from the repository’s .codestax.yml; see Repository configuration.

Saving a profile checks patterns less strictly than starting a scan does. A profile with an invalid pattern saves without an error, but the scan request that uses it is then rejected. Follow the rules above when you save a profile.

Profiles in the API

Profiles are a convenience for the dashboard: starting a scan never looks up a profile. To repeat a profile’s settings from CI, send its values directly:

$ curl -s -X POST "https://codestax.co/api/scans/trigger/<repo_id>" \ -H "X-API-Key: $CODESTAX_API_KEY" \ -H "Content-Type: application/json" \ -d '{"type": "deep", "branch": "main", "exclude_patterns": ["docs/**", "vendor/**"]}'

The API key needs the write:scans scope. If you leave out branch, the scan uses the repository’s default branch. The profile endpoints are:

GET /api/scans/profiles POST /api/scans/profiles DELETE /api/scans/profiles/{profile_id}

A POST body takes name, scan_type (smart or deep), branch, and exclude_patterns. The API allows names of up to 100 characters.