Update CodeQL workflow to init@v2 and update permissions
@@ -25,7 +25,8 @@ on:
schedule:
- cron: '32 12 * * 5'
-permissions: read-all
+permissions:
+ security-events: write
jobs:
@@ -51,7 +52,7 @@ jobs:
# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
- uses: github/codeql-action/init@v1
+ uses: github/codeql-action/init@v2
with:
languages: ${{ matrix.language }}
# If you wish to specify custom queries, you can do so here or in a config file.
