From 74b6633ee05c871eb80568f50618134619f98b21 Mon Sep 17 00:00:00 2001 From: Grant Murphy Date: Wed, 2 Nov 2016 16:54:20 -0700 Subject: [PATCH] Updated imports to new repository location. --- README.md | 4 ++-- main.go | 4 ++-- output/formatter.go | 2 +- rulelist.go | 5 ++--- rules/bind.go | 2 +- rules/bind_test.go | 2 +- rules/blacklist.go | 2 +- rules/errors.go | 2 +- rules/errors_test.go | 2 +- rules/fileperms.go | 2 +- rules/fileperms_test.go | 2 +- rules/hardcoded_credentials.go | 2 +- rules/hardcoded_credentials_test.go | 2 +- rules/httpoxy_test.go | 2 +- rules/nosec_test.go | 2 +- rules/rand.go | 2 +- rules/rand_test.go | 2 +- rules/rsa.go | 2 +- rules/rsa_test.go | 2 +- rules/sql.go | 2 +- rules/sql_test.go | 2 +- rules/subproc.go | 2 +- rules/subproc_test.go | 2 +- rules/tempfiles.go | 2 +- rules/tempfiles_test.go | 2 +- rules/templates.go | 2 +- rules/templates_test.go | 2 +- rules/tls.go | 2 +- rules/tls_test.go | 2 +- rules/unsafe.go | 2 +- rules/unsafe_test.go | 2 +- rules/utils_test.go | 2 +- rules/weakcrypto.go | 2 +- rules/weakcrypto_test.go | 2 +- 34 files changed, 37 insertions(+), 38 deletions(-) diff --git a/README.md b/README.md index 58f1f2f..f8df96e 100644 --- a/README.md +++ b/README.md @@ -12,8 +12,8 @@ You may obtain a copy of the License [here](http://www.apache.org/licenses/LICEN ### Project status -[![Build Status](https://travis-ci.org/HewlettPackard/gas.svg?branch=master)](https://travis-ci.org/HewlettPackard/gas) -[![GoDoc](https://godoc.org/github.com/HewlettPackard/gas?status.svg)](https://godoc.org/github.com/HewlettPackard/gas) +[![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) Gas is still in alpha and accepting feedback from early adopters. We do not consider it production ready at this time. diff --git a/main.go b/main.go index 048f0d3..2c0aa17 100644 --- a/main.go +++ b/main.go @@ -25,8 +25,8 @@ import ( "sort" "strings" - gas "github.com/HewlettPackard/gas/core" - "github.com/HewlettPackard/gas/output" + gas "github.com/GoASTScanner/gas/core" + "github.com/GoASTScanner/gas/output" ) // #nosec flag diff --git a/output/formatter.go b/output/formatter.go index 24c32cd..fb5ece6 100644 --- a/output/formatter.go +++ b/output/formatter.go @@ -21,7 +21,7 @@ import ( "strconv" "text/template" - gas "github.com/HewlettPackard/gas/core" + gas "github.com/GoASTScanner/gas/core" ) // The output format for reported issues diff --git a/rulelist.go b/rulelist.go index 0504d2f..c5f9670 100644 --- a/rulelist.go +++ b/rulelist.go @@ -15,11 +15,10 @@ package main import ( - "fmt" "go/ast" - gas "github.com/HewlettPackard/gas/core" - "github.com/HewlettPackard/gas/rules" + gas "github.com/GoASTScanner/gas/core" + "github.com/GoASTScanner/gas/rules" ) type RuleInfo struct { diff --git a/rules/bind.go b/rules/bind.go index f46285e..4363684 100644 --- a/rules/bind.go +++ b/rules/bind.go @@ -18,7 +18,7 @@ import ( "go/ast" "regexp" - gas "github.com/HewlettPackard/gas/core" + gas "github.com/GoASTScanner/gas/core" ) // Looks for net.Listen("0.0.0.0") or net.Listen(":8080") diff --git a/rules/bind_test.go b/rules/bind_test.go index a93a73f..16bc389 100644 --- a/rules/bind_test.go +++ b/rules/bind_test.go @@ -17,7 +17,7 @@ package rules import ( "testing" - gas "github.com/HewlettPackard/gas/core" + gas "github.com/GoASTScanner/gas/core" ) func TestBind0000(t *testing.T) { diff --git a/rules/blacklist.go b/rules/blacklist.go index 04dc5c3..3fd5e69 100644 --- a/rules/blacklist.go +++ b/rules/blacklist.go @@ -17,7 +17,7 @@ package rules import ( "go/ast" - gas "github.com/HewlettPackard/gas/core" + gas "github.com/GoASTScanner/gas/core" ) type BlacklistImport struct { diff --git a/rules/errors.go b/rules/errors.go index 2951731..8d74634 100644 --- a/rules/errors.go +++ b/rules/errors.go @@ -19,7 +19,7 @@ import ( "go/types" "reflect" - gas "github.com/HewlettPackard/gas/core" + gas "github.com/GoASTScanner/gas/core" ) type NoErrorCheck struct { diff --git a/rules/errors_test.go b/rules/errors_test.go index 70c1861..4ae502b 100644 --- a/rules/errors_test.go +++ b/rules/errors_test.go @@ -17,7 +17,7 @@ package rules import ( "testing" - gas "github.com/HewlettPackard/gas/core" + gas "github.com/GoASTScanner/gas/core" ) func TestErrorsMulti(t *testing.T) { diff --git a/rules/fileperms.go b/rules/fileperms.go index ea22e8b..6efbc33 100644 --- a/rules/fileperms.go +++ b/rules/fileperms.go @@ -19,7 +19,7 @@ import ( "go/ast" "regexp" - gas "github.com/HewlettPackard/gas/core" + gas "github.com/GoASTScanner/gas/core" ) type FilePermissions struct { diff --git a/rules/fileperms_test.go b/rules/fileperms_test.go index f70dbef..8e433b3 100644 --- a/rules/fileperms_test.go +++ b/rules/fileperms_test.go @@ -17,7 +17,7 @@ package rules import ( "testing" - gas "github.com/HewlettPackard/gas/core" + gas "github.com/GoASTScanner/gas/core" ) func TestChmod(t *testing.T) { diff --git a/rules/hardcoded_credentials.go b/rules/hardcoded_credentials.go index 47f9f84..679749a 100644 --- a/rules/hardcoded_credentials.go +++ b/rules/hardcoded_credentials.go @@ -18,7 +18,7 @@ import ( "go/ast" "regexp" - gas "github.com/HewlettPackard/gas/core" + gas "github.com/GoASTScanner/gas/core" ) type CredsAssign struct { diff --git a/rules/hardcoded_credentials_test.go b/rules/hardcoded_credentials_test.go index 46e2211..c34c331 100644 --- a/rules/hardcoded_credentials_test.go +++ b/rules/hardcoded_credentials_test.go @@ -17,7 +17,7 @@ package rules import ( "testing" - gas "github.com/HewlettPackard/gas/core" + gas "github.com/GoASTScanner/gas/core" ) func TestHardcoded(t *testing.T) { diff --git a/rules/httpoxy_test.go b/rules/httpoxy_test.go index 90f4074..758389f 100644 --- a/rules/httpoxy_test.go +++ b/rules/httpoxy_test.go @@ -17,7 +17,7 @@ package rules import ( "testing" - gas "github.com/HewlettPackard/gas/core" + gas "github.com/GoASTScanner/gas/core" ) func TestHttpoxy(t *testing.T) { diff --git a/rules/nosec_test.go b/rules/nosec_test.go index efbab8e..29c8fe6 100644 --- a/rules/nosec_test.go +++ b/rules/nosec_test.go @@ -17,7 +17,7 @@ package rules import ( "testing" - gas "github.com/HewlettPackard/gas/core" + gas "github.com/GoASTScanner/gas/core" ) func TestNosec(t *testing.T) { diff --git a/rules/rand.go b/rules/rand.go index 09cfbf4..6c5aa50 100644 --- a/rules/rand.go +++ b/rules/rand.go @@ -18,7 +18,7 @@ import ( "go/ast" "regexp" - gas "github.com/HewlettPackard/gas/core" + gas "github.com/GoASTScanner/gas/core" ) type WeakRand struct { diff --git a/rules/rand_test.go b/rules/rand_test.go index 93c1352..150003f 100644 --- a/rules/rand_test.go +++ b/rules/rand_test.go @@ -17,7 +17,7 @@ package rules import ( "testing" - gas "github.com/HewlettPackard/gas/core" + gas "github.com/GoASTScanner/gas/core" ) func TestRandOk(t *testing.T) { diff --git a/rules/rsa.go b/rules/rsa.go index 5a8d1d2..5872186 100644 --- a/rules/rsa.go +++ b/rules/rsa.go @@ -19,7 +19,7 @@ import ( "go/ast" "regexp" - gas "github.com/HewlettPackard/gas/core" + gas "github.com/GoASTScanner/gas/core" ) type WeakKeyStrength struct { diff --git a/rules/rsa_test.go b/rules/rsa_test.go index 9a814d7..9b0b47b 100644 --- a/rules/rsa_test.go +++ b/rules/rsa_test.go @@ -17,7 +17,7 @@ package rules import ( "testing" - gas "github.com/HewlettPackard/gas/core" + gas "github.com/GoASTScanner/gas/core" ) func TestRSAKeys(t *testing.T) { diff --git a/rules/sql.go b/rules/sql.go index 8b35317..3756c0b 100644 --- a/rules/sql.go +++ b/rules/sql.go @@ -18,7 +18,7 @@ import ( "go/ast" "regexp" - gas "github.com/HewlettPackard/gas/core" + gas "github.com/GoASTScanner/gas/core" ) type SqlStatement struct { diff --git a/rules/sql_test.go b/rules/sql_test.go index 174b829..911db10 100644 --- a/rules/sql_test.go +++ b/rules/sql_test.go @@ -17,7 +17,7 @@ package rules import ( "testing" - gas "github.com/HewlettPackard/gas/core" + gas "github.com/GoASTScanner/gas/core" ) func TestSQLInjectionViaConcatenation(t *testing.T) { diff --git a/rules/subproc.go b/rules/subproc.go index 4ca567b..991bbe2 100644 --- a/rules/subproc.go +++ b/rules/subproc.go @@ -19,7 +19,7 @@ import ( "regexp" "strings" - gas "github.com/HewlettPackard/gas/core" + gas "github.com/GoASTScanner/gas/core" ) type Subprocess struct { diff --git a/rules/subproc_test.go b/rules/subproc_test.go index f701653..6e9f0fc 100644 --- a/rules/subproc_test.go +++ b/rules/subproc_test.go @@ -17,7 +17,7 @@ package rules import ( "testing" - gas "github.com/HewlettPackard/gas/core" + gas "github.com/GoASTScanner/gas/core" ) func TestSubprocess(t *testing.T) { diff --git a/rules/tempfiles.go b/rules/tempfiles.go index cd0df25..7ca7570 100644 --- a/rules/tempfiles.go +++ b/rules/tempfiles.go @@ -18,7 +18,7 @@ import ( "go/ast" "regexp" - gas "github.com/HewlettPackard/gas/core" + gas "github.com/GoASTScanner/gas/core" ) type BadTempFile struct { diff --git a/rules/tempfiles_test.go b/rules/tempfiles_test.go index 25ae3d5..51709e8 100644 --- a/rules/tempfiles_test.go +++ b/rules/tempfiles_test.go @@ -17,7 +17,7 @@ package rules import ( "testing" - gas "github.com/HewlettPackard/gas/core" + gas "github.com/GoASTScanner/gas/core" ) func TestTempfiles(t *testing.T) { diff --git a/rules/templates.go b/rules/templates.go index ac537f2..6b06a63 100644 --- a/rules/templates.go +++ b/rules/templates.go @@ -18,7 +18,7 @@ import ( "go/ast" "regexp" - gas "github.com/HewlettPackard/gas/core" + gas "github.com/GoASTScanner/gas/core" ) type TemplateCheck struct { diff --git a/rules/templates_test.go b/rules/templates_test.go index 5bf788d..83dccf1 100644 --- a/rules/templates_test.go +++ b/rules/templates_test.go @@ -17,7 +17,7 @@ package rules import ( "testing" - gas "github.com/HewlettPackard/gas/core" + gas "github.com/GoASTScanner/gas/core" ) func TestTemplateCheckSafe(t *testing.T) { diff --git a/rules/tls.go b/rules/tls.go index ee398ba..301d3d9 100644 --- a/rules/tls.go +++ b/rules/tls.go @@ -20,7 +20,7 @@ import ( "reflect" "regexp" - gas "github.com/HewlettPackard/gas/core" + gas "github.com/GoASTScanner/gas/core" ) type InsecureConfigTLS struct { diff --git a/rules/tls_test.go b/rules/tls_test.go index bf9237e..1f59759 100644 --- a/rules/tls_test.go +++ b/rules/tls_test.go @@ -17,7 +17,7 @@ package rules import ( "testing" - gas "github.com/HewlettPackard/gas/core" + gas "github.com/GoASTScanner/gas/core" ) func TestInsecureSkipVerify(t *testing.T) { diff --git a/rules/unsafe.go b/rules/unsafe.go index d3d55c9..381f31f 100644 --- a/rules/unsafe.go +++ b/rules/unsafe.go @@ -18,7 +18,7 @@ import ( "go/ast" "regexp" - gas "github.com/HewlettPackard/gas/core" + gas "github.com/GoASTScanner/gas/core" ) type UsingUnsafe struct { diff --git a/rules/unsafe_test.go b/rules/unsafe_test.go index 64f6d44..f8d7787 100644 --- a/rules/unsafe_test.go +++ b/rules/unsafe_test.go @@ -17,7 +17,7 @@ package rules import ( "testing" - gas "github.com/HewlettPackard/gas/core" + gas "github.com/GoASTScanner/gas/core" ) func TestUnsafe(t *testing.T) { diff --git a/rules/utils_test.go b/rules/utils_test.go index a7eda4e..92f3ea3 100644 --- a/rules/utils_test.go +++ b/rules/utils_test.go @@ -18,7 +18,7 @@ import ( "strings" "testing" - gas "github.com/HewlettPackard/gas/core" + gas "github.com/GoASTScanner/gas/core" ) func gasTestRunner(source string, analyzer gas.Analyzer) []gas.Issue { diff --git a/rules/weakcrypto.go b/rules/weakcrypto.go index c0bc552..8bb919e 100644 --- a/rules/weakcrypto.go +++ b/rules/weakcrypto.go @@ -18,7 +18,7 @@ import ( "go/ast" "regexp" - gas "github.com/HewlettPackard/gas/core" + gas "github.com/GoASTScanner/gas/core" ) type UsesWeakCryptography struct { diff --git a/rules/weakcrypto_test.go b/rules/weakcrypto_test.go index 8169387..1305c33 100644 --- a/rules/weakcrypto_test.go +++ b/rules/weakcrypto_test.go @@ -17,7 +17,7 @@ package rules import ( "testing" - gas "github.com/HewlettPackard/gas/core" + gas "github.com/GoASTScanner/gas/core" ) func TestMD5(t *testing.T) {