From ae2a56deb0598676b6f7d69a07b3c076ee557e97 Mon Sep 17 00:00:00 2001 From: subhamkrai Date: Fri, 1 Jul 2022 12:21:43 +0530 Subject: [PATCH] ci: skip snyk ci from running on fork repo Signed-off-by: subhamkrai --- .github/workflows/synk.yaml | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/.github/workflows/synk.yaml b/.github/workflows/synk.yaml index 53d662294..90eb7efc5 100644 --- a/.github/workflows/synk.yaml +++ b/.github/workflows/synk.yaml @@ -9,14 +9,15 @@ on: jobs: security: + if: github.repository == 'rook/rook' runs-on: ubuntu-latest steps: - - name: checkout - uses: actions/checkout@v2 - with: - fetch-depth: 0 + - name: checkout + uses: actions/checkout@v2 + with: + fetch-depth: 0 - - name: run Snyk to check for code vulnerabilities - uses: snyk/actions/golang@master - env: - SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }} + - name: run Snyk to check for code vulnerabilities + uses: snyk/actions/golang@master + env: + SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}