Skip to content

Latest commit

 

History

History
41 lines (25 loc) · 1.81 KB

disable-all-interaction-from-snyk.md

File metadata and controls

41 lines (25 loc) · 1.81 KB

Disable all PRs / Tests & any interactions Snyk might have with my SCM for a certain event/time

User need

Use this script to disable all interaction from Snyk to my SCM for a given time period

Flow and Endpoints

Flows

Approach # 1

Webhooks Approach

  • Remove the Snyk webhook by getting the Webhook Id and using it to delete the webhook

Approach # 2

  • Get integrations from different organizations and then update each integrations settings.
  1. Get all integrations first
  2. Go through each integration to get the integration settings by integration ID
  3. Return integration IDs into an array along with associated settings.
  4. Update integration settings to off. Looped through each integration setting data attribute and set it to false. Focus on making sure all SCM settings are identified and set to off.
  5. Later down the line turn the settings back on.

Endpoints used

Approach #1

Webhooks Approach:

Approach #2