Diff a Repository Against Its HEAD Scan
A 3-step recipe with Socket. We can help you get access.
Recipe · 3 steps
Diff a Repository Against Its HEAD Scan
with Socket
Create a diff scan against a repo HEAD and poll until the cached diff is ready.
- Read the repository to confirm it exists and capture its current HEAD full scan id.
- Create a diff scan from the repository HEAD full scan. The new full scan is built from the supplied manifest files and compared against HEAD.
- Read the diff scan in cached mode. A 202 means the diff is still being computed (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 to diff against its HEAD scan.
- description: Optional description used in the diff report.
- branch: Optional branch name to associate the new full scan with.
For your developer
Arazzo workflow socket-dev:diff-repo-head, 3 operations: getOrgRepo → createOrgRepoDiff → getDiffScanById. Specs on APIs.io.