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