diff --git a/.github/workflows/codeql.yaml b/.github/workflows/codeql.yaml index ba56b0c5cd0f..07cfb6bb83e9 100644 --- a/.github/workflows/codeql.yaml +++ b/.github/workflows/codeql.yaml @@ -25,6 +25,8 @@ jobs: steps: - name: Get last 5 commits and their checks + env: + GH_TOKEN: ${{ github.token }} run: | # Get the last 5 commits commits=$(gh api repos/${{ github.repository }}/commits --jq '.[0:5] | .[].sha')