build: add secret + use http clone
diff --git a/internal/pkg/image_repositories/github_workflow.go b/internal/pkg/image_repositories/github_workflow.go
index c8b202d..d4d6763 100644
--- a/internal/pkg/image_repositories/github_workflow.go
+++ b/internal/pkg/image_repositories/github_workflow.go
@@ -60,11 +60,12 @@
 }
 
 type GithubWorkflowStep struct {
-	Name string            `yaml:"name"`
-	Run  string            `yaml:"run,omitempty"`
-	Uses string            `yaml:"uses,omitempty"`
-	If   string            `yaml:"if,omitempty"`
-	With map[string]string `yaml:"with,omitempty"`
+	Name        string            `yaml:"name"`
+	Run         string            `yaml:"run,omitempty"`
+	Uses        string            `yaml:"uses,omitempty"`
+	If          string            `yaml:"if,omitempty"`
+	With        map[string]string `yaml:"with,omitempty"`
+	Environment map[string]string `yaml:"env,omitempty"`
 }
 
 func (g *GithubWorkflow) Write(wr io.Writer) error {
diff --git a/internal/pkg/image_repositories/image_repository.go b/internal/pkg/image_repositories/image_repository.go
index 45b49d5..3161223 100644
--- a/internal/pkg/image_repositories/image_repository.go
+++ b/internal/pkg/image_repositories/image_repository.go
@@ -198,7 +198,7 @@
 
 	repo, err := git.Clone(storer, fs, &git.CloneOptions{
 		Auth: i.gitAuth,
-		URL:  *githubRepo.SSHURL,
+		URL:  *githubRepo.CloneURL,
 	})
 	if err != nil {
 		return err
diff --git a/internal/pkg/image_repositories/sync_workflow.go b/internal/pkg/image_repositories/sync_workflow.go
index 2939dd8..3a1959c 100644
--- a/internal/pkg/image_repositories/sync_workflow.go
+++ b/internal/pkg/image_repositories/sync_workflow.go
@@ -48,6 +48,9 @@
 					{
 						Name: "Synchronize Image Repository",
 						Run:  fmt.Sprintf("go run ./cmd/atmosphere-ci image repo sync %s", project),
+						Environment: map[string]string{
+							"GITHUB_TOKEN": "${{ secrets.GITHUB_TOKEN }}",
+						},
 					},
 				},
 			},