Skip to content

feat: fcli sc-sast scan: Add prioritize command - #1140

Open
gilseara wants to merge 1 commit into
fortify:dev/v3.xfrom
gilseara:feat/sc-sast-scan-prioritize
Open

gilseara wants to merge 1 commit into
fortify:dev/v3.xfrom
gilseara:feat/sc-sast-scan-prioritize

Conversation

@gilseara

@gilseara gilseara commented Oct 16, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Adds a new fcli sc-sast scan prioritize <scan-job-token> command, equivalent to the Prioritize action on the SSC ScanCentral SAST jobs page (/html/ssc/scans/sast/jobs).

The command:

  1. Resolves the scan job through the ScanCentral SAST Controller (same as scan cancel/scan status), which validates that the job token exists.
  2. Calls the SSC endpoint POST /api/v1/cloudjobs/action/prioritizeJob with body {"jobToken": "<token>"}, using the SSC session token.
  3. Outputs the scan job descriptor with action PRIORITIZED.

Changes

  • SCSastScanPrioritizeCommand (new), registered in SCSastScanCommands
  • SSCUrls.CLOUD_JOBS_ACTION_PRIORITIZE_JOB constant
  • Usage header/description in SCSastMessages.properties

Example

fcli ssc session login --url https://ssc.example.com -u <user> -p <password> -c <client-auth-token>
fcli sc-sast scan prioritize 726f5f65-8526-4f00-b0f4-10c9ce4cdfe3

🤖 Generated with Claude Code

Adds `fcli sc-sast scan prioritize <scan-job-token>`, which invokes the SSC
`POST /api/v1/cloudjobs/action/prioritizeJob` endpoint, equivalent to the
"Prioritize" action on the SSC ScanCentral SAST jobs page.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant