From 39c5d2fa0a9836014bf8e2bde6842edbb767df56 Mon Sep 17 00:00:00 2001 From: godofredoc Date: Tue, 1 Feb 2022 14:58:27 -0800 Subject: [PATCH] Do not run score cards on forks of flutter/flutter. (#97603) As a general rule all the .github workflows enabled for flutter/flutter should not run on forks. Bug: https://github.com/flutter/flutter/issues/97599 --- .github/workflows/scorecards-analysis.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/scorecards-analysis.yml b/.github/workflows/scorecards-analysis.yml index 59d92d33f79..95df17ee34a 100644 --- a/.github/workflows/scorecards-analysis.yml +++ b/.github/workflows/scorecards-analysis.yml @@ -14,6 +14,7 @@ jobs: analysis: name: Scorecards analysis runs-on: ubuntu-latest + if: ${{ github.repository == 'flutter/flutter' }} permissions: # Needed to upload the results to code-scanning dashboard. security-events: write