From da39ba09b2d56648f66c1419a7ad7efdb67d5843 Mon Sep 17 00:00:00 2001 From: Pranav Singh Date: Wed, 25 Dec 2024 18:14:48 +0530 Subject: [PATCH] print token length Signed-off-by: Pranav Singh --- cmd/kanvas-snapshot/cmd.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cmd/kanvas-snapshot/cmd.go b/cmd/kanvas-snapshot/cmd.go index 2a0cdac308..a1091e54b3 100644 --- a/cmd/kanvas-snapshot/cmd.go +++ b/cmd/kanvas-snapshot/cmd.go @@ -207,7 +207,8 @@ func CreateMesheryDesign(uri, name, email string) (string, error) { func GenerateSnapshot(contentID, assetLocation string, ghAccessToken string) error { payload := fmt.Sprintf(`{"ref":"master","inputs":{"contentID":"%s","assetLocation":"%s"}}`, contentID, assetLocation) - req, err := http.NewRequest("POST", "https://api.github.com/repos/meshery/meshery.io/actions/workflows/kanvas.yml/dispatches", bytes.NewBuffer([]byte(payload))) + fmt.Println("check for access token", len(ghAccessToken)) + req, err := http.NewRequest("POST", "https://api.github.com/repos/thebeginner86/my-yamls/actions/workflows/kanvas.yml/dispatches", bytes.NewBuffer([]byte(payload))) fmt.Println(err) if err != nil { return err