mirror of
https://github.com/github/codeql.git
synced 2026-05-24 08:07:07 +02:00
Debug: dump user scope
This commit is contained in:
2
.github/workflows/internal-ci-checks.yml
vendored
2
.github/workflows/internal-ci-checks.yml
vendored
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user