forked from runatlantis/atlantis
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request runatlantis#87 from hootsuite/readme
Add Getting Started instructions. Rename gh-password to gh-token
- Loading branch information
Showing
8 changed files
with
132 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -30,8 +30,8 @@ func main() { | |
if githubUsername == "" { | ||
log.Fatalf("GITHUB_USERNAME cannot be empty") | ||
} | ||
githubPassword := os.Getenv("GITHUB_PASSWORD") | ||
if githubPassword == "" { | ||
githubToken := os.Getenv("GITHUB_PASSWORD") | ||
if githubToken == "" { | ||
log.Fatalf("GITHUB_PASSWORD cannot be empty") | ||
} | ||
atlantisURL := os.Getenv("ATLANTIS_URL") | ||
|
@@ -49,7 +49,7 @@ func main() { | |
repoName = "atlantis-tests" | ||
} | ||
// using https to clone the repo | ||
repoUrl := fmt.Sprintf("https://%s:%[email protected]/%s/%s.git", githubUsername, githubPassword, ownerName, repoName) | ||
repoUrl := fmt.Sprintf("https://%s:%[email protected]/%s/%s.git", githubUsername, githubToken, ownerName, repoName) | ||
cloneDirRoot := os.Getenv("CLONE_DIR") | ||
if cloneDirRoot == "" { | ||
cloneDirRoot = "/tmp/atlantis-tests" | ||
|
@@ -65,7 +65,7 @@ func main() { | |
// create github client | ||
tp := github.BasicAuthTransport{ | ||
Username: strings.TrimSpace(githubUsername), | ||
Password: strings.TrimSpace(githubPassword), | ||
Password: strings.TrimSpace(githubToken), | ||
} | ||
ghClient := github.NewClient(tp.Client()) | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters