From 85f7a4be396d8c0f4464a24d6b5d90445ceb1ce8 Mon Sep 17 00:00:00 2001 From: Chris Rose Date: Wed, 1 Sep 2021 10:47:07 -0700 Subject: [PATCH] ci: disable the security-audit cron on non-canonical forks (#3027) Co-authored-by: Chris Rose --- .github/workflows/security-audit.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/security-audit.yml b/.github/workflows/security-audit.yml index 67ffc80b..c2d72639 100644 --- a/.github/workflows/security-audit.yml +++ b/.github/workflows/security-audit.yml @@ -12,6 +12,7 @@ on: - cron: '0 0 * * *' jobs: security_audit: + if: (github.event_name == 'schedule' && github.repository == 'starship/starship') || (github.event_name != 'schedule') runs-on: ubuntu-latest steps: - uses: actions/checkout@v2.3.4