From 73c510d126a1a224c628e03f9918b4298211a258 Mon Sep 17 00:00:00 2001 From: Ry Jones Date: Mon, 27 Jun 2022 10:23:29 -0700 Subject: [PATCH] Only run workflows on main repo Fixes #1839 Signed-off-by: Ry Jones --- .github/workflows/codeql.yml | 1 + .github/workflows/pip-audit.yml | 1 + 2 files changed, 2 insertions(+) diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index e240dd8308..9d5ee6a7ea 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -10,6 +10,7 @@ jobs: CodeQL-Build: # CodeQL runs on ubuntu-latest and windows-latest runs-on: ubuntu-latest + if: (github.event_name == 'pull_request' && github.repository == 'hyperledger/aries-cloudagent-python') || (github.event_name != 'pull_request') steps: - name: Checkout repository diff --git a/.github/workflows/pip-audit.yml b/.github/workflows/pip-audit.yml index 4aef21a011..1f068b8738 100644 --- a/.github/workflows/pip-audit.yml +++ b/.github/workflows/pip-audit.yml @@ -9,6 +9,7 @@ permissions: jobs: selftest: runs-on: ubuntu-latest + if: (github.event_name == 'pull_request' && github.repository == 'hyperledger/aries-cloudagent-python') || (github.event_name != 'pull_request') steps: - uses: actions/checkout@v3 - name: install