diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index a0bd3849..a4a3f4c4 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -28,6 +28,11 @@ jobs: actions: read contents: read security-events: write + + if: | + !startsWith(github.event.head_commit.message, 'docs') && + !contains(github.event.head_commit.message, 'skip ci') && + !contains(github.event.head_commit.message, 'ci skip') strategy: fail-fast: false @@ -37,6 +42,11 @@ jobs: # Learn more about CodeQL language support at https://git.io/codeql-language-support steps: + - name: Cancel Previous Runs + uses: styfle/cancel-workflow-action@0.9.1 + with: + access_token: ${{ github.token }} + - name: Checkout repository uses: actions/checkout@v3