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 58f1f2fe35..f8df96ef1c 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 048f0d3a90..2c0aa17878 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 24c32cd508..fb5ece69a7 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 0504d2f4d0..c5f9670166 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 f46285e5d3..436368455d 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 a93a73fc66..16bc389900 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 04dc5c3220..3fd5e69d42 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 2951731b14..8d746349ce 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 70c186118f..4ae502b06b 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 ea22e8ba21..6efbc335ac 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 f70dbef253..8e433b3889 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 47f9f842c8..679749a206 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 46e2211e44..c34c33190c 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 90f4074c8f..758389f17e 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 efbab8e1e5..29c8fe6516 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 09cfbf4f21..6c5aa50d46 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 93c1352f7d..150003fc91 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 5a8d1d28f1..5872186205 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 9a814d7875..9b0b47b6ca 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 8b35317310..3756c0ba8f 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 174b82952d..911db1093c 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 4ca567b169..991bbe2242 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 f701653bb3..6e9f0fc5e5 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 cd0df25326..7ca7570283 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 25ae3d5749..51709e8fbb 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 ac537f2143..6b06a63761 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 5bf788d69e..83dccf1f38 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 ee398ba484..301d3d9a7a 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 bf9237eae6..1f597599c5 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 d3d55c973d..381f31fa92 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 64f6d44a6b..f8d7787833 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 a7eda4e11d..92f3ea30f9 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 c0bc552b65..8bb919e8bb 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 81693879aa..1305c33c68 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) {