mirror of
https://github.com/securego/gosec.git
synced 2024-11-05 19:45:51 +00:00
Updated imports to new repository location.
This commit is contained in:
parent
b8ce40e193
commit
74b6633ee0
34 changed files with 37 additions and 38 deletions
|
@ -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.
|
||||
|
|
4
main.go
4
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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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")
|
||||
|
|
|
@ -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) {
|
||||
|
|
|
@ -17,7 +17,7 @@ package rules
|
|||
import (
|
||||
"go/ast"
|
||||
|
||||
gas "github.com/HewlettPackard/gas/core"
|
||||
gas "github.com/GoASTScanner/gas/core"
|
||||
)
|
||||
|
||||
type BlacklistImport struct {
|
||||
|
|
|
@ -19,7 +19,7 @@ import (
|
|||
"go/types"
|
||||
"reflect"
|
||||
|
||||
gas "github.com/HewlettPackard/gas/core"
|
||||
gas "github.com/GoASTScanner/gas/core"
|
||||
)
|
||||
|
||||
type NoErrorCheck struct {
|
||||
|
|
|
@ -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) {
|
||||
|
|
|
@ -19,7 +19,7 @@ import (
|
|||
"go/ast"
|
||||
"regexp"
|
||||
|
||||
gas "github.com/HewlettPackard/gas/core"
|
||||
gas "github.com/GoASTScanner/gas/core"
|
||||
)
|
||||
|
||||
type FilePermissions struct {
|
||||
|
|
|
@ -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) {
|
||||
|
|
|
@ -18,7 +18,7 @@ import (
|
|||
"go/ast"
|
||||
"regexp"
|
||||
|
||||
gas "github.com/HewlettPackard/gas/core"
|
||||
gas "github.com/GoASTScanner/gas/core"
|
||||
)
|
||||
|
||||
type CredsAssign struct {
|
||||
|
|
|
@ -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) {
|
||||
|
|
|
@ -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) {
|
||||
|
|
|
@ -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) {
|
||||
|
|
|
@ -18,7 +18,7 @@ import (
|
|||
"go/ast"
|
||||
"regexp"
|
||||
|
||||
gas "github.com/HewlettPackard/gas/core"
|
||||
gas "github.com/GoASTScanner/gas/core"
|
||||
)
|
||||
|
||||
type WeakRand struct {
|
||||
|
|
|
@ -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) {
|
||||
|
|
|
@ -19,7 +19,7 @@ import (
|
|||
"go/ast"
|
||||
"regexp"
|
||||
|
||||
gas "github.com/HewlettPackard/gas/core"
|
||||
gas "github.com/GoASTScanner/gas/core"
|
||||
)
|
||||
|
||||
type WeakKeyStrength struct {
|
||||
|
|
|
@ -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) {
|
||||
|
|
|
@ -18,7 +18,7 @@ import (
|
|||
"go/ast"
|
||||
"regexp"
|
||||
|
||||
gas "github.com/HewlettPackard/gas/core"
|
||||
gas "github.com/GoASTScanner/gas/core"
|
||||
)
|
||||
|
||||
type SqlStatement struct {
|
||||
|
|
|
@ -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) {
|
||||
|
|
|
@ -19,7 +19,7 @@ import (
|
|||
"regexp"
|
||||
"strings"
|
||||
|
||||
gas "github.com/HewlettPackard/gas/core"
|
||||
gas "github.com/GoASTScanner/gas/core"
|
||||
)
|
||||
|
||||
type Subprocess struct {
|
||||
|
|
|
@ -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) {
|
||||
|
|
|
@ -18,7 +18,7 @@ import (
|
|||
"go/ast"
|
||||
"regexp"
|
||||
|
||||
gas "github.com/HewlettPackard/gas/core"
|
||||
gas "github.com/GoASTScanner/gas/core"
|
||||
)
|
||||
|
||||
type BadTempFile struct {
|
||||
|
|
|
@ -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) {
|
||||
|
|
|
@ -18,7 +18,7 @@ import (
|
|||
"go/ast"
|
||||
"regexp"
|
||||
|
||||
gas "github.com/HewlettPackard/gas/core"
|
||||
gas "github.com/GoASTScanner/gas/core"
|
||||
)
|
||||
|
||||
type TemplateCheck struct {
|
||||
|
|
|
@ -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) {
|
||||
|
|
|
@ -20,7 +20,7 @@ import (
|
|||
"reflect"
|
||||
"regexp"
|
||||
|
||||
gas "github.com/HewlettPackard/gas/core"
|
||||
gas "github.com/GoASTScanner/gas/core"
|
||||
)
|
||||
|
||||
type InsecureConfigTLS struct {
|
||||
|
|
|
@ -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) {
|
||||
|
|
|
@ -18,7 +18,7 @@ import (
|
|||
"go/ast"
|
||||
"regexp"
|
||||
|
||||
gas "github.com/HewlettPackard/gas/core"
|
||||
gas "github.com/GoASTScanner/gas/core"
|
||||
)
|
||||
|
||||
type UsingUnsafe struct {
|
||||
|
|
|
@ -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) {
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -18,7 +18,7 @@ import (
|
|||
"go/ast"
|
||||
"regexp"
|
||||
|
||||
gas "github.com/HewlettPackard/gas/core"
|
||||
gas "github.com/GoASTScanner/gas/core"
|
||||
)
|
||||
|
||||
type UsesWeakCryptography struct {
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue