Skip to content

[JENKINS-34835] Reference GitHub teams by slug#116

Merged
samrocketman merged 1 commit into
masterfrom
bugfix-slugs-JENKINS-34835
Aug 6, 2019
Merged

[JENKINS-34835] Reference GitHub teams by slug#116
samrocketman merged 1 commit into
masterfrom
bugfix-slugs-JENKINS-34835

Conversation

@samrocketman
Copy link
Copy Markdown
Member

This change references teams by slug but falls back to the old behavior of referencing by name for compatibility reasons. This is so that when users upgrade they do not get authorization issues.

See also:

  • JENKINS-34835 GitHub team should be referenced by slug not name

This change references teams by slug but falls back to the old behavior
of referencing by name for compatibility reasons.  This is so that when
users upgrade they do not get authorization issues.

See also:

- [JENKINS-34835][JENKINS-34835] GitHub team should be referenced by slug
  not name

[JENKINS-34835]: https://issues.jenkins-ci.org/browse/JENKINS-34835
@samrocketman samrocketman merged commit 56816f8 into master Aug 6, 2019
@samrocketman samrocketman deleted the bugfix-slugs-JENKINS-34835 branch August 6, 2019 03:43
basil pushed a commit that referenced this pull request Nov 27, 2021
* [JENKINS-34835] Use team slug for authorities if set

PR #116 loads the team based on the slug if it's available but the
authorities list is still using the team name.
This means that you can set the team in the matrix in global security
but you will then be denied access because the authorities list uses the
team name.
You can see this if you go to /whoAmI The team name is shown against the
user.

* [JENKINS-34835] Add slug to teams

The GithubAuthenticationToken constructor now uses the github team slug
if it's set. I've updated the tests so the slug is set here as well.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant