[llvm] [Github] Prevent scorecard action from running on forks (PR #72780)
Aiden Grossman via llvm-commits
llvm-commits at lists.llvm.org
Sat Nov 18 20:31:28 PST 2023
https://github.com/boomanaiden154 created https://github.com/llvm/llvm-project/pull/72780
Currently, the scorecard action runs on forks. This means that every recent fork will be periodically running a job that doesn't really make a lot of sense to run outside the main monorepo. This patch fixes that by restricting the job to only run in the monorepo.
>From 0aef5966a07c1b896bf73efcaac42b0bfc9ec7e5 Mon Sep 17 00:00:00 2001
From: Aiden Grossman <agrossman154 at yahoo.com>
Date: Sat, 18 Nov 2023 20:30:00 -0800
Subject: [PATCH] [Github] Prevent scorecard action from running on forks
Currently, the scorecard action runs on forks. This means that every
recent fork will be periodically running a job that doesn't really make
a lot of sense to run outside the main monorepo. This patch fixes that
by restricting the job to only run in the monorepo.
---
.github/workflows/scorecard.yml | 1 +
1 file changed, 1 insertion(+)
diff --git a/.github/workflows/scorecard.yml b/.github/workflows/scorecard.yml
index 270f58f777ce84d..3344ab19462acc2 100644
--- a/.github/workflows/scorecard.yml
+++ b/.github/workflows/scorecard.yml
@@ -22,6 +22,7 @@ jobs:
analysis:
name: Scorecard analysis
runs-on: ubuntu-latest
+ if: github.repository = 'llvm/llvm-project'
permissions:
# Needed to upload the results to code-scanning dashboard.
security-events: write
More information about the llvm-commits
mailing list