Skip to content

Commit 06d4e82

Browse files
committed
Add permissions block to workflow
1 parent 0fb7838 commit 06d4e82

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/update-required-checks.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,15 @@ jobs:
2222
run: echo "$GITHUB_CONTEXT"
2323

2424
- name: Update checks
25+
env:
26+
GITHUB_TOKEN: "${{ secrets.CODEQL_CI_TOKEN }}"
2527
run: |
2628
# Update the required checks based on the current branch.
2729
# Typically, this will be main.
2830
echo "Getting checks for $GITHUB_SHA"
2931
3032
# Ignore any checks with "https://", CodeQL, LGTM, and Update checks.
31-
CHECKS="$(gh api repos/github/codeql-action/commits/${GITHUB_SHA}/check-runs --paginate | jq --slurp --compact-output --raw-output '[.[].check_runs | .[].name | select(contains("https://") or . == "CodeQL" or . == "LGTM.com" or contains("Update") | not)] | sort')"
33+
CHECKS="$(gh api repos/github/codeql-action/commits/${GITHUB_SHA}/check-runs --paginate | jq --slurp --compact-output --raw-output '[.[].check_runs | .[].name | select(contains("https://") or . == "CodeQL" or . == "LGTM.com" or contains("Update") or contains("update-") | not)] | sort')"
3234
3335
echo "::group::New Checks"
3436
echo "$CHECKS" | jq

0 commit comments

Comments
 (0)