From da26f64208ab995b527b9e43bebab3ece1b68261 Mon Sep 17 00:00:00 2001 From: Grant Murphy Date: Thu, 19 Jul 2018 17:40:28 +1000 Subject: [PATCH] Rename github org (#214) --- .travis.yml | 2 +- README.md | 10 +++++----- analyzer_test.go | 6 +++--- call_list_test.go | 4 ++-- cmd/gas/main.go | 6 +++--- cmd/gas/sort_issues.go | 2 +- cmd/tlsconfig/header_template.go | 2 +- config_test.go | 2 +- issue_test.go | 6 +++--- output/formatter.go | 2 +- output/junit_xml_format.go | 2 +- resolve_test.go | 4 ++-- rule_test.go | 2 +- rules/archive.go | 2 +- rules/big.go | 2 +- rules/bind.go | 2 +- rules/blacklist.go | 2 +- rules/errors.go | 2 +- rules/fileperms.go | 2 +- rules/hardcoded_credentials.go | 2 +- rules/rand.go | 2 +- rules/readfile.go | 2 +- rules/rsa.go | 2 +- rules/rulelist.go | 2 +- rules/rules_test.go | 6 +++--- rules/sql.go | 2 +- rules/ssh.go | 2 +- rules/subproc.go | 2 +- rules/tempfiles.go | 2 +- rules/templates.go | 2 +- rules/tls.go | 2 +- rules/tls_config.go | 2 +- rules/unsafe.go | 2 +- rules/weakcrypto.go | 2 +- testutils/pkg.go | 2 +- testutils/visitor.go | 2 +- 36 files changed, 50 insertions(+), 50 deletions(-) diff --git a/.travis.yml b/.travis.yml index 7d7958f..4b1c9c4 100644 --- a/.travis.yml +++ b/.travis.yml @@ -11,7 +11,7 @@ install: - go get -u github.com/onsi/ginkgo/ginkgo - go get -u github.com/onsi/gomega - go get -u golang.org/x/crypto/ssh - - go get -u github.com/GoASTScanner/gas/cmd/gas/... + - go get -u github.com/securego/gas/cmd/gas/... - go get -v -t ./... - export PATH=$PATH:$HOME/gopath/bin diff --git a/README.md b/README.md index dff0b0e..253fbb0 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ -## GAS - Go AST Scanner +## GAS - Go Application Security Inspects source code for security problems by scanning the Go AST. @@ -12,15 +12,15 @@ You may obtain a copy of the License [here](http://www.apache.org/licenses/LICEN ### Project status -[![Build Status](https://travis-ci.org/GoASTScanner/gas.svg?branch=master)](https://travis-ci.org/GoASTScanner/gas) -[![GoDoc](https://godoc.org/github.com/GoASTScanner/gas?status.svg)](https://godoc.org/github.com/GoASTScanner/gas) +[![Build Status](https://travis-ci.org/securego/gas.svg?branch=master)](https://travis-ci.org/securego/gas) +[![GoDoc](https://godoc.org/github.com/securego/gas?status.svg)](https://godoc.org/github.com/securego/gas) Gas is still in alpha and accepting feedback from early adopters. We do not consider it production ready at this time. ### Install -`$ go get github.com/GoASTScanner/gas/cmd/gas/...` +`$ go get github.com/securego/gas/cmd/gas/...` ### Usage @@ -188,7 +188,7 @@ The configuration of TLS rule can be generated from [Mozilla's TLS ciphers recom First you need to install the generator tool: ``` -go get github.com/GoASTScanner/gas/cmd/tlsconfig/... +go get github.com/securego/gas/cmd/tlsconfig/... ``` You can invoke now the `go generate` in the root of the project: diff --git a/analyzer_test.go b/analyzer_test.go index c527d0e..5f75db1 100644 --- a/analyzer_test.go +++ b/analyzer_test.go @@ -6,12 +6,12 @@ import ( "os" "strings" - "github.com/GoASTScanner/gas" - "github.com/GoASTScanner/gas/rules" + "github.com/securego/gas" + "github.com/securego/gas/rules" - "github.com/GoASTScanner/gas/testutils" . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" + "github.com/securego/gas/testutils" ) var _ = Describe("Analyzer", func() { diff --git a/call_list_test.go b/call_list_test.go index f949cfd..3b01b68 100644 --- a/call_list_test.go +++ b/call_list_test.go @@ -3,10 +3,10 @@ package gas_test import ( "go/ast" - "github.com/GoASTScanner/gas" - "github.com/GoASTScanner/gas/testutils" . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" + "github.com/securego/gas" + "github.com/securego/gas/testutils" ) var _ = Describe("call list", func() { diff --git a/cmd/gas/main.go b/cmd/gas/main.go index ccc002e..0a1db68 100644 --- a/cmd/gas/main.go +++ b/cmd/gas/main.go @@ -27,10 +27,10 @@ import ( "sort" "strings" - "github.com/GoASTScanner/gas" - "github.com/GoASTScanner/gas/output" - "github.com/GoASTScanner/gas/rules" "github.com/kisielk/gotool" + "github.com/securego/gas" + "github.com/securego/gas/output" + "github.com/securego/gas/rules" ) const ( diff --git a/cmd/gas/sort_issues.go b/cmd/gas/sort_issues.go index 5557f96..208253c 100644 --- a/cmd/gas/sort_issues.go +++ b/cmd/gas/sort_issues.go @@ -3,7 +3,7 @@ package main import ( "sort" - "github.com/GoASTScanner/gas" + "github.com/securego/gas" ) type sortBySeverity []*gas.Issue diff --git a/cmd/tlsconfig/header_template.go b/cmd/tlsconfig/header_template.go index 618221b..99da96e 100644 --- a/cmd/tlsconfig/header_template.go +++ b/cmd/tlsconfig/header_template.go @@ -8,6 +8,6 @@ package {{.}} import ( "go/ast" - "github.com/GoASTScanner/gas" + "github.com/securego/gas" ) `)) diff --git a/config_test.go b/config_test.go index a1ff0f5..e1e2ff3 100644 --- a/config_test.go +++ b/config_test.go @@ -3,9 +3,9 @@ package gas_test import ( "bytes" - "github.com/GoASTScanner/gas" . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" + "github.com/securego/gas" ) var _ = Describe("Configuration", func() { diff --git a/issue_test.go b/issue_test.go index 1203697..bb3e162 100644 --- a/issue_test.go +++ b/issue_test.go @@ -3,11 +3,11 @@ package gas_test import ( "go/ast" - "github.com/GoASTScanner/gas" - "github.com/GoASTScanner/gas/rules" - "github.com/GoASTScanner/gas/testutils" . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" + "github.com/securego/gas" + "github.com/securego/gas/rules" + "github.com/securego/gas/testutils" ) var _ = Describe("Issue", func() { diff --git a/output/formatter.go b/output/formatter.go index 3d9d248..9ab13db 100644 --- a/output/formatter.go +++ b/output/formatter.go @@ -22,7 +22,7 @@ import ( "io" plainTemplate "text/template" - "github.com/GoASTScanner/gas" + "github.com/securego/gas" "gopkg.in/yaml.v2" ) diff --git a/output/junit_xml_format.go b/output/junit_xml_format.go index 2fd5c39..a3b0739 100644 --- a/output/junit_xml_format.go +++ b/output/junit_xml_format.go @@ -5,7 +5,7 @@ import ( htmlLib "html" "strconv" - "github.com/GoASTScanner/gas" + "github.com/securego/gas" ) type junitXMLReport struct { diff --git a/resolve_test.go b/resolve_test.go index f17a825..1589c10 100644 --- a/resolve_test.go +++ b/resolve_test.go @@ -3,10 +3,10 @@ package gas_test import ( "go/ast" - "github.com/GoASTScanner/gas" - "github.com/GoASTScanner/gas/testutils" . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" + "github.com/securego/gas" + "github.com/securego/gas/testutils" ) var _ = Describe("Resolve ast node to concrete value", func() { diff --git a/rule_test.go b/rule_test.go index 196e575..df5f21e 100644 --- a/rule_test.go +++ b/rule_test.go @@ -4,9 +4,9 @@ import ( "fmt" "go/ast" - "github.com/GoASTScanner/gas" . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" + "github.com/securego/gas" ) type mockrule struct { diff --git a/rules/archive.go b/rules/archive.go index 1b388f5..09648fb 100644 --- a/rules/archive.go +++ b/rules/archive.go @@ -4,7 +4,7 @@ import ( "go/ast" "go/types" - "github.com/GoASTScanner/gas" + "github.com/securego/gas" ) type archive struct { diff --git a/rules/big.go b/rules/big.go index f4aeb3e..10270a0 100644 --- a/rules/big.go +++ b/rules/big.go @@ -17,7 +17,7 @@ package rules import ( "go/ast" - "github.com/GoASTScanner/gas" + "github.com/securego/gas" ) type usingBigExp struct { diff --git a/rules/bind.go b/rules/bind.go index 1cd8bf2..c669951 100644 --- a/rules/bind.go +++ b/rules/bind.go @@ -18,7 +18,7 @@ import ( "go/ast" "regexp" - "github.com/GoASTScanner/gas" + "github.com/securego/gas" ) // Looks for net.Listen("0.0.0.0") or net.Listen(":8080") diff --git a/rules/blacklist.go b/rules/blacklist.go index 92d8ed4..6ab3b8f 100644 --- a/rules/blacklist.go +++ b/rules/blacklist.go @@ -18,7 +18,7 @@ import ( "go/ast" "strings" - "github.com/GoASTScanner/gas" + "github.com/securego/gas" ) type blacklistedImport struct { diff --git a/rules/errors.go b/rules/errors.go index 03ededf..73f5f87 100644 --- a/rules/errors.go +++ b/rules/errors.go @@ -18,7 +18,7 @@ import ( "go/ast" "go/types" - "github.com/GoASTScanner/gas" + "github.com/securego/gas" ) type noErrorCheck struct { diff --git a/rules/fileperms.go b/rules/fileperms.go index 6276c85..883f6a4 100644 --- a/rules/fileperms.go +++ b/rules/fileperms.go @@ -19,7 +19,7 @@ import ( "go/ast" "strconv" - "github.com/GoASTScanner/gas" + "github.com/securego/gas" ) type filePermissions struct { diff --git a/rules/hardcoded_credentials.go b/rules/hardcoded_credentials.go index 0040710..6b811b6 100644 --- a/rules/hardcoded_credentials.go +++ b/rules/hardcoded_credentials.go @@ -19,8 +19,8 @@ import ( "regexp" "strconv" - "github.com/GoASTScanner/gas" "github.com/nbutton23/zxcvbn-go" + "github.com/securego/gas" ) type credentials struct { diff --git a/rules/rand.go b/rules/rand.go index c85f10f..1e9e055 100644 --- a/rules/rand.go +++ b/rules/rand.go @@ -17,7 +17,7 @@ package rules import ( "go/ast" - "github.com/GoASTScanner/gas" + "github.com/securego/gas" ) type weakRand struct { diff --git a/rules/readfile.go b/rules/readfile.go index d6c2186..9e573be 100644 --- a/rules/readfile.go +++ b/rules/readfile.go @@ -18,7 +18,7 @@ import ( "go/ast" "go/types" - "github.com/GoASTScanner/gas" + "github.com/securego/gas" ) type readfile struct { diff --git a/rules/rsa.go b/rules/rsa.go index 99c6e82..e11cc99 100644 --- a/rules/rsa.go +++ b/rules/rsa.go @@ -18,7 +18,7 @@ import ( "fmt" "go/ast" - "github.com/GoASTScanner/gas" + "github.com/securego/gas" ) type weakKeyStrength struct { diff --git a/rules/rulelist.go b/rules/rulelist.go index e06b7cc..63d98ab 100644 --- a/rules/rulelist.go +++ b/rules/rulelist.go @@ -15,7 +15,7 @@ package rules import ( - "github.com/GoASTScanner/gas" + "github.com/securego/gas" ) // RuleDefinition contains the description of a rule and a mechanism to diff --git a/rules/rules_test.go b/rules/rules_test.go index 4a9c910..7e9324b 100644 --- a/rules/rules_test.go +++ b/rules/rules_test.go @@ -4,12 +4,12 @@ import ( "fmt" "log" - "github.com/GoASTScanner/gas" + "github.com/securego/gas" - "github.com/GoASTScanner/gas/rules" - "github.com/GoASTScanner/gas/testutils" . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" + "github.com/securego/gas/rules" + "github.com/securego/gas/testutils" ) var _ = Describe("gas rules", func() { diff --git a/rules/sql.go b/rules/sql.go index a76f580..5e37c58 100644 --- a/rules/sql.go +++ b/rules/sql.go @@ -18,7 +18,7 @@ import ( "go/ast" "regexp" - "github.com/GoASTScanner/gas" + "github.com/securego/gas" ) type sqlStatement struct { diff --git a/rules/ssh.go b/rules/ssh.go index f4f18cc..17ed71b 100644 --- a/rules/ssh.go +++ b/rules/ssh.go @@ -3,7 +3,7 @@ package rules import ( "go/ast" - "github.com/GoASTScanner/gas" + "github.com/securego/gas" ) type sshHostKey struct { diff --git a/rules/subproc.go b/rules/subproc.go index 8c0f675..d34cfb1 100644 --- a/rules/subproc.go +++ b/rules/subproc.go @@ -18,7 +18,7 @@ import ( "go/ast" "go/types" - "github.com/GoASTScanner/gas" + "github.com/securego/gas" ) type subprocess struct { diff --git a/rules/tempfiles.go b/rules/tempfiles.go index 664f774..c2f587b 100644 --- a/rules/tempfiles.go +++ b/rules/tempfiles.go @@ -18,7 +18,7 @@ import ( "go/ast" "regexp" - "github.com/GoASTScanner/gas" + "github.com/securego/gas" ) type badTempFile struct { diff --git a/rules/templates.go b/rules/templates.go index 66c37d6..45ea3c0 100644 --- a/rules/templates.go +++ b/rules/templates.go @@ -17,7 +17,7 @@ package rules import ( "go/ast" - "github.com/GoASTScanner/gas" + "github.com/securego/gas" ) type templateCheck struct { diff --git a/rules/tls.go b/rules/tls.go index c437930..62366bc 100644 --- a/rules/tls.go +++ b/rules/tls.go @@ -20,7 +20,7 @@ import ( "fmt" "go/ast" - "github.com/GoASTScanner/gas" + "github.com/securego/gas" ) type insecureConfigTLS struct { diff --git a/rules/tls_config.go b/rules/tls_config.go index 7242513..a756386 100644 --- a/rules/tls_config.go +++ b/rules/tls_config.go @@ -3,7 +3,7 @@ package rules import ( "go/ast" - "github.com/GoASTScanner/gas" + "github.com/securego/gas" ) // NewModernTLSCheck creates a check for Modern TLS ciphers diff --git a/rules/unsafe.go b/rules/unsafe.go index 8742dbc..bb88aa6 100644 --- a/rules/unsafe.go +++ b/rules/unsafe.go @@ -17,7 +17,7 @@ package rules import ( "go/ast" - "github.com/GoASTScanner/gas" + "github.com/securego/gas" ) type usingUnsafe struct { diff --git a/rules/weakcrypto.go b/rules/weakcrypto.go index 2fb9686..26b03df 100644 --- a/rules/weakcrypto.go +++ b/rules/weakcrypto.go @@ -17,7 +17,7 @@ package rules import ( "go/ast" - "github.com/GoASTScanner/gas" + "github.com/securego/gas" ) type usesWeakCryptography struct { diff --git a/testutils/pkg.go b/testutils/pkg.go index a7dbdb0..b74c211 100644 --- a/testutils/pkg.go +++ b/testutils/pkg.go @@ -10,7 +10,7 @@ import ( "path" "strings" - "github.com/GoASTScanner/gas" + "github.com/securego/gas" "golang.org/x/tools/go/loader" ) diff --git a/testutils/visitor.go b/testutils/visitor.go index df9275b..b2c6a50 100644 --- a/testutils/visitor.go +++ b/testutils/visitor.go @@ -3,7 +3,7 @@ package testutils import ( "go/ast" - "github.com/GoASTScanner/gas" + "github.com/securego/gas" ) // MockVisitor is useful for stubbing out ast.Visitor with callback