Skip to content

Commit

Permalink
i am done
Browse files Browse the repository at this point in the history
  • Loading branch information
bartekpacia committed Oct 26, 2024
1 parent 69af283 commit 75213bc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions backend/cmd/playground/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ var githubAppID int64 = 938460

func main() {
privateKeyBase64 := os.Getenv("GITHUB_APP_PRIVATE_KEY_BASE64")
slog.Info("DEBUG 1", slog.String("string1", "simple"))
slog.Info("DEBUG 1", slog.String("string with space", "simple with space"))
slog.Info("DEBUG 1", slog.String("string with equals", "simple="))
slog.Info("DEBUG 3", slog.String("GITHUB_APP_PRIVATE_KEY_BASE64", privateKeyBase64))
privateKey, err := base64.StdEncoding.DecodeString(privateKeyBase64)
if err != nil {
slog.Error("error decoding GitHub App private key from base64", slog.Any("error", err))
Expand All @@ -36,8 +40,6 @@ func main() {
log.Fatalln("generate signed jwt:", err)
}

return

appClient := http.Client{Transport: &bearerTransport{Token: jwtString}}
gh := github.NewClient(&appClient)
res, _, err := gh.Apps.CreateInstallationToken(context.Background(), installationID, nil)
Expand Down
2 changes: 1 addition & 1 deletion backend/e2e/pipeline/Get.http
Original file line number Diff line number Diff line change
@@ -1 +1 @@
GET {{server.url}}/api/pipeline/15
GET {{server.url}}/api/pipeline/18

0 comments on commit 75213bc

Please sign in to comment.