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 7d7958f09a..4b1c9c4109 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 dff0b0e579..253fbb076b 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 c527d0ed03..5f75db1e29 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 f949cfd345..3b01b68488 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 ccc002e718..0a1db689b3 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 5557f96ec6..208253ca82 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 618221bdad..99da96eb09 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 a1ff0f5f13..e1e2ff3293 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 12036976e5..bb3e162449 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 3d9d248898..9ab13db3f5 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 2fd5c39a95..a3b073932d 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 f17a8258d0..1589c101cd 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 196e575678..df5f21ef5e 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 1b388f549d..09648fbf77 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 f4aeb3e790..10270a01a7 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 1cd8bf26b7..c669951b28 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 92d8ed4ec8..6ab3b8f1a3 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 03ededf695..73f5f874ad 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 6276c855a2..883f6a4d49 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 00407103d8..6b811b6a0c 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 c85f10f0b3..1e9e055320 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 d6c2186a8e..9e573befbc 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 99c6e82b4c..e11cc99724 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 e06b7cc433..63d98ab813 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 4a9c91088d..7e9324b266 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 a76f580673..5e37c58d23 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 f4f18cc3ca..17ed71b42a 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 8c0f675b58..d34cfb1e53 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 664f774bd1..c2f587b6c7 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 66c37d6cb1..45ea3c0f98 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 c437930bdc..62366bc793 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 7242513433..a756386f3c 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 8742dbc390..bb88aa69c2 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 2fb96867b9..26b03dfcfe 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 a7dbdb00eb..b74c211140 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 df9275b4b0..b2c6a50135 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