Skip to content

Integrate gitStream with Snyk

Auto-Merge Snyk Dependency Updates

Approve PRs from Snyk

Approve and Merge Snyk Changes

Configuration Description

Conditions (all must be true):

  • The PR author is Snyk.

Automation Actions:

  • Approve the PR
  • Apply an approved-snyk label to the PR
  • Merge the PR if all status checks pass.

Approve Snyk

# -*- mode: yaml -*-

manifest:
  version: 1.0

automations:
  approve_snyk:
    if:
      - {{ branch.author | includes(term="snyk") }}
    run:
      - action: approve@v1
      - action: add-label@v1
        args:
          label: "approved-snyk"
      - action: merge@v1
        args:
          wait_for_all_checks: true
          squash_on_merge: true