diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index a72ea03..299dc6d 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -3,7 +3,12 @@ # Contact us in the security slack channel for concerns name: "Security check - CodeQL" -on: [pull_request, workflow_dispatch] +on: + pull_request: + workflow_dispatch: + push: + branches: + - ${{ github.event.repository.default_branch }} jobs: analyze: diff --git a/.github/workflows/semgrep.yml b/.github/workflows/semgrep.yml index 419478b..611f055 100644 --- a/.github/workflows/semgrep.yml +++ b/.github/workflows/semgrep.yml @@ -1,6 +1,11 @@ name: Security check - Semgrep -on: [pull_request, workflow_dispatch] +on: + pull_request: + workflow_dispatch: + push: + branches: + - ${{ github.event.repository.default_branch }} jobs: run: