ci: skip snyk ci from running on fork repo

Signed-off-by: subhamkrai <srai@redhat.com>
This commit is contained in:
subhamkrai committed 2022-07-01 12:23:23 +05:30
1 parent f1673152fa
commit ae2a56deb0
1 file changed
+9 -8
+9 -8
View File
@@ -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 }}