From 05a899ea53bf8248ae858f06175d46eb4879b67a Mon Sep 17 00:00:00 2001 From: Mariusz Kliber Date: Wed, 30 Nov 2022 16:55:06 +0000 Subject: [PATCH] Debug: dump user scope --- .github/workflows/internal-ci-checks.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/internal-ci-checks.yml b/.github/workflows/internal-ci-checks.yml index 10fac1c8636..0d816783bc5 100644 --- a/.github/workflows/internal-ci-checks.yml +++ b/.github/workflows/internal-ci-checks.yml @@ -17,6 +17,8 @@ jobs: LABEL: "ready-for-internal-ci" run: | set +eo pipefail + echo "Checking user scope" + gh api -i /user | grep X-Oauth-Scopes echo "Checking if user $USERNAME is a member of the CodeQL team" if [ "$(gh api "/orgs/github/teams/codeql/memberships/$USERNAME" --jq .state)" == "active" ]; then echo "User $USERNAME is a member of the CodeQL team"