Debug: dump user scope

This commit is contained in:
Mariusz Kliber
2022-11-30 16:55:06 +00:00
parent 796763d027
commit 05a899ea53

View File

@@ -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"