diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index cf0217154..94fe4917d 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -1,5 +1,9 @@ name: "Code scanning - action" +permissions: + contents: read + security-events: write + on: pull_request: schedule: @@ -13,7 +17,7 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@v2 + uses: actions/checkout@v4 with: # We must fetch at least the immediate parents so that if this is # a pull request then we can checkout the head.