buildkite / feedback

Got feedback? Please let us know!
https://buildkite.com
25 stars 24 forks source link

Team membership missing in BUILDKITE_BUILD_CREATOR_TEAMS #508

Open NandGates opened 5 years ago

NandGates commented 5 years ago

It appears that users who are only members of secret teams do not have their team membership properly passed through in the BUILDKITE_BUILD_CREATOR_TEAMS environment variable.

I am trying to whitelist several secure agents using an environment hook and following the suggestions here (https://buildkite.com/docs/pipelines/permissions#programmatically-managing-teams)

My user is an administrator, and my environment variables on build appear as

BUILDKITE="true" ..... BUILDKITE_BUILD_CREATOR="[my username]" BUILDKITE_BUILD_CREATOR_EMAIL="[my email]" BUILDKITE_BUILD_CREATOR_TEAMS="" .....

My team membership is to only one team at present - is it because this team is Secret? If so, how can we whitelist agents using environment hooks based on secret teams?

Teams

Teams2