Github linked repositories under plan configuration results in permission errors for non-admin users

XMLWordPrintable

    • 1
    • Severity 3 - Minor

      Issue Summary

      User with admin permissions for the build plan, linked repository, and GitHub repository still encounters permission errors when accessing the repository through the plan configuration.

      Steps to Reproduce

      1. Created a new GitHub repository
      2. Added the repository to a Bamboo build plan
      3. Created a non-administrative user account
      4. Granted the non-admin user admin permissions for that build plan/project as given.
      5. Also, to the linked repo that user is granted as admin.
      6. In Global permission granted the user create repository permission.
      7. When non-admin user try accessing the repository inside plan configuration, it gives error.

      Expected Results

      Repository should be accessible and branch re-assignment should happen successfully.

      Actual Results

      On UI Navigate to Plan->plan configuration->repo-> It gives below error:

      The below exception is thrown in the atlassian-bamboo.log file:

      2026-01-15 14:24:37,975 ERROR [http-nio-8085-exec-25 url: /bamboo/rest/git/latest/gh/repositories/; user: khushboo] [ThrowableExceptionMapper] Uncaught exception 1c023b21-80ba-4fd6-8ee8-f5996d7333d3 thrown by REST service: Errors: {}
       (log message continued...) Error Messages: [You don't have permission to this repository.]
      com.atlassian.bamboo.exception.DefaultWebValidationException: Errors: {}
      Error Messages: [You don't have permission to this repository.] 

      Workaround

      This works fine when user have admin access in global permission OR consider creating a Git-type repository instead of using GitHub directly. When setting up the linked repository, instead of selecting the GitHub option, choose Git and still use your existing GitHub repository URL.

              Assignee:
              Mateusz Szmal
              Reporter:
              Khushboo Gupta (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: