File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 66
77set -e
88
9- export GITHUB_CLIRNT_ID =$( aws ssm get-parameters --name /ghlinkcard/github/clientid --query " Parameters[0].Value" --region ap-northeast-1 --output text)
10- export GITHUB_SECRETGITHUB_SECRET =$( aws ssm get-parameters --name /ghlinkcard/github/clientsecret --with-decryption --query " Parameters[0].Value" --region ap-northeast-1 --output text)
9+ export GITHUB_CLIENT_ID =$( aws ssm get-parameters --name /ghlinkcard/github/clientid --query " Parameters[0].Value" --region ap-northeast-1 --output text)
10+ export GITHUB_SECRET =$( aws ssm get-parameters --name /ghlinkcard/github/clientsecret --with-decryption --query " Parameters[0].Value" --region ap-northeast-1 --output text)
1111
1212exec " $@ "
Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ func (r *Router) InitRouter() *gin.Engine {
2929 router .GET ("/api/v1/images/:user/:repo" , r .Handler .GetCode )
3030 router .GET ("/api/v1/fdceda" , func (c * gin.Context ) {
3131 c .JSON (http .StatusOK , gin.H {
32- "val" : os .Getenv ("GITHUB_CLIRNT_ID " ),
32+ "val" : os .Getenv ("GITHUB_CLIENT_ID " ),
3333 })
3434 })
3535 return router
Original file line number Diff line number Diff line change @@ -38,9 +38,9 @@ func init() {
3838 }
3939 Port = port
4040
41- githubClientID := os .Getenv ("GITHUB_CLIRNT_ID " )
41+ githubClientID := os .Getenv ("GITHUB_CLIENT_ID " )
4242 if githubClientID == "" {
43- l .Warnf ("GITHUB_CLIRNT_ID environment is not exists." )
43+ l .Warnf ("GITHUB_CLIENT_ID environment is not exists." )
4444 }
4545 GithubClientID = githubClientID
4646
You can’t perform that action at this time.
0 commit comments