Skip to content

Commit

Permalink
Fix #414: Use exact match for roles/editor in removing default binding (
Browse files Browse the repository at this point in the history
  • Loading branch information
morgante committed May 7, 2020
1 parent 8511343 commit b7246ee
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ deprivilege_sa() {
EDITORS_LIST_COMMAND="gcloud projects get-iam-policy $PROJECT_ID \
--flatten=bindings[].members \
--format=table(bindings.role,bindings.members) \
--filter=bindings.role:editor $APPEND_IMPERSONATE"
--filter=bindings.role:roles/editor $APPEND_IMPERSONATE"
EDITORS_LIST=$(${EDITORS_LIST_COMMAND} || exit 1)

if [[ $EDITORS_LIST = *"$SA_ID"* ]]; then
Expand Down

0 comments on commit b7246ee

Please sign in to comment.