Skip to content

Commit 4ec6568

Browse files
authored
Update CodeQL workflow to include GH_TOKEN
It's required for using the gh cli command.
1 parent 178a206 commit 4ec6568

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/update-codeql.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ jobs:
2121

2222
- name: Check latest CodeQL CLI version and update qlt.conf.json
2323
id: check-version
24+
env:
25+
GH_TOKEN: ${{ github.token }}
2426
run: |
2527
echo "Checking latest CodeQL CLI version"
2628
current_version=$(jq .CodeQLCLI qlt.conf.json -r)
@@ -106,4 +108,4 @@ jobs:
106108
- Upgraded all CodeQL pack lock files using `codeql pack upgrade`
107109
commit-message: "Upgrade CodeQL CLI dependency to ${{ steps.check-version.outputs.latest_version_tag }}"
108110
delete-branch: true
109-
branch: "codeql/upgrade-to-${{ steps.check-version.outputs.latest_version_tag }}"
111+
branch: "codeql/upgrade-to-${{ steps.check-version.outputs.latest_version_tag }}"

0 commit comments

Comments
 (0)