create hub badges, repository dispatch only on crowdsecurity/crowdsec (#1838)

This commit is contained in:
mmetc 2022-10-28 10:11:15 +02:00 committed by GitHub
parent 23ffa1e04f
commit 67e464281f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 2 deletions

View file

@ -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 }}

View file

@ -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

1
.gitignore vendored
View file

@ -6,6 +6,7 @@
*.dylib
*~
.pc
.vscode
# Test binaries, built with `go test -c`
*.test