From 873fe21a6165c023c33be1eb81e559602db9c71a Mon Sep 17 00:00:00 2001 From: Niels de Vos Date: Mon, 5 Jun 2023 09:30:41 +0200 Subject: [PATCH] ci: prevent Retest Workflow from running on forked repos Forked repositories contain the the `.github/workflows/` directory, and therefore run all the GitHub Workflows located there. Some of the workflows need additional configuration, like providing access to the standard `GITHUB_TOKEN`. If the extra configuration is not done, the GitHub Workflow will fail, and the owner of the forked repository will receive regular notifications about that. There is no need to run the "retest" workflow on forked repositories, so it can be skipped by default. Signed-off-by: Niels de Vos --- .github/workflows/retest.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/retest.yaml b/.github/workflows/retest.yaml index 3299e0dcb0e..81879627590 100644 --- a/.github/workflows/retest.yaml +++ b/.github/workflows/retest.yaml @@ -11,6 +11,7 @@ permissions: jobs: retest: + if: github.repository == 'ceph/ceph-csi' runs-on: ubuntu-latest steps: # path to the retest action