diff --git a/.github/workflows/bats-hub.yml b/.github/workflows/bats-hub.yml index 5fa7cf6d9..b24f2db5b 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 }} @@ -67,7 +67,7 @@ jobs: - name: "Create Scenarios 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 8f7d7fe17..d6ac46687 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 diff --git a/.gitignore b/.gitignore index b968a732b..904f75874 100644 --- a/.gitignore +++ b/.gitignore @@ -6,6 +6,7 @@ *.dylib *~ .pc +.vscode # Test binaries, built with `go test -c` *.test