Skip to content

Commit

Permalink
Do not include org in repo name
Browse files Browse the repository at this point in the history
  • Loading branch information
joecorall committed Jan 25, 2025
1 parent 9b24746 commit 02d82ee
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/handler/registration_token.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import (
"encoding/json"
"log/slog"
"net/http"
"strings"

"github.com/google/go-github/v68/github"
)
Expand All @@ -17,7 +18,7 @@ func (h *Handler) RepoAdminToken(w http.ResponseWriter, r *http.Request) {

opts := &github.InstallationTokenOptions{
Repositories: []string{
claims.Repository,
strings.Split(claims.Repository, "/")[1],
},
Permissions: &github.InstallationPermissions{
Administration: github.Ptr("write"),
Expand Down

0 comments on commit 02d82ee

Please sign in to comment.