From 737635abd4e24788db1fc172e6cf5dda13bc9847 Mon Sep 17 00:00:00 2001 From: koddr Date: Mon, 3 Aug 2020 10:12:12 +0300 Subject: [PATCH 1/3] Fix gosec issue (pkg/cgapp/files.go) --- pkg/cgapp/files.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/cgapp/files.go b/pkg/cgapp/files.go index 0c49fa9..7c6855e 100644 --- a/pkg/cgapp/files.go +++ b/pkg/cgapp/files.go @@ -38,7 +38,7 @@ func MakeFiles(rootFolder string, filesToMake map[string][]byte) error { folder := filepath.Join(rootFolder, file) // Write to created file. - if err := ioutil.WriteFile(folder, data, 0755); err != nil { + if err := ioutil.WriteFile(folder, data, 0600); err != nil { return throwError("File `" + file + "` was not created!") } From 164791b04ff6cb9f4b8b09dcbc3c3a2dc758fff3 Mon Sep 17 00:00:00 2001 From: koddr Date: Tue, 4 Aug 2020 16:25:26 +0300 Subject: [PATCH 2/3] Update AlecAivazis/survey to 2.1.0 --- go.mod | 2 +- go.sum | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/go.mod b/go.mod index 27afa11..3f943c3 100644 --- a/go.mod +++ b/go.mod @@ -3,7 +3,7 @@ module github.com/create-go-app/cli go 1.11 require ( - github.com/AlecAivazis/survey/v2 v2.0.8 + github.com/AlecAivazis/survey/v2 v2.1.0 github.com/go-git/go-git/v5 v5.1.0 github.com/spf13/cobra v1.0.0 github.com/spf13/pflag v1.0.5 // indirect diff --git a/go.sum b/go.sum index 5dfa635..7b6f49a 100644 --- a/go.sum +++ b/go.sum @@ -11,8 +11,8 @@ cloud.google.com/go/firestore v1.1.0/go.mod h1:ulACoGHTpvq5r8rxGJ4ddJZBZqakUQqCl cloud.google.com/go/pubsub v1.0.1/go.mod h1:R0Gpsv3s54REJCy4fxDixWD93lHJMoZTyQ2kNxGRt3I= cloud.google.com/go/storage v1.0.0/go.mod h1:IhtSnM/ZTZV8YYJWCY8RULGVqBDmpoyjwiyrjsg+URw= dmitri.shuralyov.com/gpu/mtl v0.0.0-20190408044501-666a987793e9/go.mod h1:H6x//7gZCb22OMCxBHrMx7a5I7Hp++hsVxbQ4BYO7hU= -github.com/AlecAivazis/survey/v2 v2.0.8 h1:zVjWKN+JIAfmrq6nGWG3DfLS8ypEBhxYy0p7FM+riFk= -github.com/AlecAivazis/survey/v2 v2.0.8/go.mod h1:9FJRdMdDm8rnT+zHVbvQT2RTSTLq0Ttd6q3Vl2fahjk= +github.com/AlecAivazis/survey/v2 v2.1.0 h1:AT4+23hOFopXYZaNGugbk7MWItkz0SfTmH/Hk92KeeE= +github.com/AlecAivazis/survey/v2 v2.1.0/go.mod h1:9FJRdMdDm8rnT+zHVbvQT2RTSTLq0Ttd6q3Vl2fahjk= github.com/BurntSushi/toml v0.3.1 h1:WXkYYl6Yr3qBf1K79EBnL4mak0OimBfB0XUf9Vl28OQ= github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= github.com/BurntSushi/xgb v0.0.0-20160522181843-27f122750802/go.mod h1:IVnqGOEym/WlBOVXweHU+Q+/VP0lqqI8lqeDx9IjBqo= From 1532b79611bec6b01ec419bf091626da2897836e Mon Sep 17 00:00:00 2001 From: koddr Date: Tue, 4 Aug 2020 16:45:39 +0300 Subject: [PATCH 3/3] Bump v1.6.1 in registry/defaults and README --- README.md | 2 +- pkg/registry/defaults.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 9bdf4b4..0d1436b 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@

Create a new production-ready project with backend (Golang), frontend (JavaScript, TypeScript)
and deploy automation (Ansible, Docker) by running one CLI command.

Focus on writing code and thinking of business-logic! The CLI will take care of the rest.

-

cli version go version go cover go report license

+

cli version go version go cover go report license

## ⚡️ [Quick start](https://create-go.app/quick-start/) diff --git a/pkg/registry/defaults.go b/pkg/registry/defaults.go index ddad921..bdd8798 100644 --- a/pkg/registry/defaults.go +++ b/pkg/registry/defaults.go @@ -30,7 +30,7 @@ import "github.com/AlecAivazis/survey/v2" const ( // CLIVersion version of Create Go App CLI. - CLIVersion = "1.6.0" + CLIVersion = "1.6.1" // RegexpAnsiblePattern pattern for Ansible roles. RegexpAnsiblePattern = "^(deploy)$" // RegexpBackendPattern pattern for backend.