diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index 758a4b729b..116c38362e 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -7,6 +7,9 @@ on: pull_request: branches: - main + merge_group: + types: + - checks_requested workflow_dispatch: permissions: @@ -23,6 +26,8 @@ jobs: steps: - name: Check out repository uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6 + with: + persist-credentials: false - name: Initialize CodeQL uses: github/codeql-action/init@7188fc363630916deb702c7fdcf4e481b751f97a # v4