From 81f29d3b42099a1e6dfe986332f55dcea8698670 Mon Sep 17 00:00:00 2001 From: hasezoey Date: Tue, 2 Aug 2022 12:59:55 +0200 Subject: [PATCH] chore(tidelift-alignment): run only in main repository, not in forks This is because in forks this workflow would run, but error because of missing secrets --- .github/workflows/tidelift-alignment.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/tidelift-alignment.yml b/.github/workflows/tidelift-alignment.yml index 01da55b89cd..83b6b6cebeb 100644 --- a/.github/workflows/tidelift-alignment.yml +++ b/.github/workflows/tidelift-alignment.yml @@ -12,6 +12,7 @@ jobs: build: name: Run Tidelift to ensure approved open source packages are in use runs-on: ubuntu-latest + if: github.repository == 'Automattic/mongoose' steps: - name: Checkout uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # v3.0.2 @@ -24,4 +25,4 @@ jobs: env: TIDELIFT_API_KEY: ${{ secrets.TIDELIFT_API_KEY }} TIDELIFT_ORGANIZATION: ${{ secrets.TIDELIFT_ORGANIZATION }} - TIDELIFT_PROJECT: ${{ secrets.TIDELIFT_PROJECT }} \ No newline at end of file + TIDELIFT_PROJECT: ${{ secrets.TIDELIFT_PROJECT }}