diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index df7de6d888..f7b9d91aa3 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -2,9 +2,17 @@ name: "Code scanning - action" on: push: + branches: + - master + tags: + - v* pull_request: + branches: + - master + paths-ignore: + - '**/*.md' schedule: - - cron: '0 19 * * 0' + - cron: '00 14 * * *' # Every morning at 7:00am PDT jobs: CodeQL-Build: @@ -25,7 +33,7 @@ jobs: # the head of the pull request instead of the merge commit. - run: git checkout HEAD^2 if: ${{ github.event_name == 'pull_request' }} - + # Initializes the CodeQL tools for scanning. - name: Initialize CodeQL uses: github/codeql-action/init@v1