From 80f0918b7ab4305291a689b03e7bc289a18d1146 Mon Sep 17 00:00:00 2001 From: mmetc <92726601+mmetc@users.noreply.github.com> Date: Mon, 24 Oct 2022 22:17:42 +0200 Subject: [PATCH] add stuff (#54) --- .github/workflows/bats-hub.yml | 2 +- .github/workflows/dispatch_ci_hub.yaml | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/bats-hub.yml b/.github/workflows/bats-hub.yml index 5fa7cf6d916c..8a41e56e98a3 100644 --- a/.github/workflows/bats-hub.yml +++ b/.github/workflows/bats-hub.yml @@ -56,7 +56,7 @@ jobs: - name: "Create Parsers badge" uses: schneegans/dynamic-badges-action@v1.1.0 - if: ${{ github.ref == 'refs/heads/master' }} + if: ${{ github.ref == 'refs/heads/master' && github.repository_owner == 'crowdsecurity' }} with: auth: ${{ secrets.GIST_BADGES_SECRET }} gistID: ${{ secrets.GIST_BADGES_ID }} diff --git a/.github/workflows/dispatch_ci_hub.yaml b/.github/workflows/dispatch_ci_hub.yaml index 8f7d7fe17a68..d6ac46687b72 100644 --- a/.github/workflows/dispatch_ci_hub.yaml +++ b/.github/workflows/dispatch_ci_hub.yaml @@ -13,6 +13,7 @@ jobs: steps: - name: Repository Dispatch uses: peter-evans/repository-dispatch@v1 + if: ${{ github.repository_owner == 'crowdsecurity' }} with: token: ${{ secrets.DISPATCH_TOKEN }} event-type: trigger_ci_hub