capabilities.work

Poll Full Scan to Completion

A 2-step recipe with Socket. We can help you get access.

Recipe · 2 steps

Poll Full Scan to Completion

with Socket

Create a full scan then poll its metadata until processing completes.

  1. Create a full scan for the repository from the supplied manifest files, returning the new full scan id.
  2. Read the full scan metadata and branch on scan_state. Loop back while the scan is still resolving or scanning; finish once it leaves the processing states.
What you'll need to have ready
  • orgSlug: The slug of the organization.
  • repoSlug: The repository slug to associate the full scan with.
  • manifestFiles: Map of manifest file names to file contents uploaded as multipart/form-data.
For your developer

Arazzo workflow socket-dev:poll-full-scan-completion, 2 operations: CreateOrgFullScan → getOrgFullScanMetadata. Specs on APIs.io.