Merge pull request #10540 from subhamkrai/skip-synk-on-fork

ci: skip snyk ci from running on fork repo
This commit is contained in:
Travis Nielsen authored and GitHub committed 2022-07-01 07:37:45 -06:00
commit 8ecbfbe49d
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 }}