Diff Two Full Scans by ID
A 3-step recipe with Socket. We can help you get access.
Recipe · 3 steps
Diff Two Full Scans by ID
with Socket
Diff the two latest full scans of a repo and poll the diff to completion.
- List the two newest full scans for the repository so index 0 is the after (newer) scan and index 1 is the before (older) scan.
- Create a diff scan comparing the older before scan against the newer after scan.
- Read the diff scan in cached mode. A 202 means still computing (loop back); a 200 means the cached diff is ready.
What you'll need to have ready
- orgSlug: The slug of the organization.
- repoSlug: The repository slug whose full scans are compared.
- description: Optional description used in the diff report.
For your developer
Arazzo workflow socket-dev:diff-from-scan-ids, 3 operations: getOrgFullScanList → createOrgDiffScanFromIds → getDiffScanById. Specs on APIs.io.