From 94598f2187c820231a13d51f227b9c1430bbe0db Mon Sep 17 00:00:00 2001 From: Nikhil Badyal Date: Sat, 3 Sep 2022 19:42:06 +0530 Subject: [PATCH] =?UTF-8?q?=F0=9F=91=B7=20Prevent=20pre-commit-autoupdate.?= =?UTF-8?q?yml=20and=20codeql-analysis.yml=20from=20running=20in=20fork?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/codeql-analysis.yml | 1 + .github/workflows/pre-commit-autoupdate.yml | 1 + 2 files changed, 2 insertions(+) diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index bc65509..fbed342 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -16,6 +16,7 @@ on: jobs: analyze: + if: github.repository == 'nikhilbadyal/docker-py-revanced' name: Analyze runs-on: ubuntu-latest permissions: diff --git a/.github/workflows/pre-commit-autoupdate.yml b/.github/workflows/pre-commit-autoupdate.yml index 0576f41..1fac1c9 100644 --- a/.github/workflows/pre-commit-autoupdate.yml +++ b/.github/workflows/pre-commit-autoupdate.yml @@ -13,6 +13,7 @@ permissions: jobs: auto-update: + if: github.repository == 'nikhilbadyal/docker-py-revanced' runs-on: ubuntu-latest steps: - name: Checkout