message: Restrict Actions token permissions in CodeQL workflow.
diff: @@ -13,6 +13,9 @@ jobs:
  outputs:
  versions: ${{ steps.compare.outputs.versions }}
  + permissions:
  + contents: read
  +
  steps:
  - uses: actions/checkout@v2
  - name: Init with default CodeQL bundle from the VM image
  @@ -59,6 +62,11 @@ jobs:
  tools: ${{ fromJson(needs.check-codeql-versions.outputs.versions) }}
  runs-on: ${{ matrix.os }}
  + permissions:
  + contents: read
  + security-events: write
  +
  +
  steps:
  - uses: actions/checkout@v2
  - uses: ./init
  