diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md index fb632bc..9a0f22f 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.md +++ b/.github/ISSUE_TEMPLATE/bug_report.md @@ -20,7 +20,7 @@ Not doing so may result in your bug not being addressed in a timely manner. Than **Anything else we need to know?**: **Environment**: -- Horusec version (use `horus version`): +- Horusec version (use `horusec version`): - Operating System: - Network plugin / Tool and version (if this is a network-related / tool bug): - Others: diff --git a/.github/ISSUE_TEMPLATE/support_request.md b/.github/ISSUE_TEMPLATE/support_request.md index 4d5fceb..a429dfc 100644 --- a/.github/ISSUE_TEMPLATE/support_request.md +++ b/.github/ISSUE_TEMPLATE/support_request.md @@ -20,7 +20,7 @@ assignees: '' **Anything else we need to know?**: **Environment**: -- Horusec version (use `horus version`): +- Horusec version (use `horusec version`): - Operating System: - Network plugin / Tool and version (if this is a network-related / tool bug): - Others: \ No newline at end of file diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md index 0741fa9..237fe64 100644 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -2,7 +2,7 @@ Customized from the template (https://github.com/docker/cli/blob/master/.github/PULL_REQUEST_TEMPLATE.md) Please make sure you've read and understood our contributing guidelines; -https://github.com/ZupIT/horus-engine/blob/master/CONTRIBUTING.md +https://github.com/ZupIT/horusec-engine/blob/master/CONTRIBUTING.md Please provide the following information: --> diff --git a/.github/workflows/horus-engine-pipeline.yml b/.github/workflows/horusec-engine-pipeline.yml similarity index 92% rename from .github/workflows/horus-engine-pipeline.yml rename to .github/workflows/horusec-engine-pipeline.yml index 803b2b9..5dce996 100644 --- a/.github/workflows/horus-engine-pipeline.yml +++ b/.github/workflows/horusec-engine-pipeline.yml @@ -1,4 +1,4 @@ -name: HorusEnginePipeline +name: HorusecEnginePipeline on: [push] @@ -25,7 +25,7 @@ jobs: echo "You can use the command: \`gofmt -w \$(gofmt -l \'find . -name \'*.go\' | grep -v vendor)\` to reformat code." exit 1 fi - echo "=) The project horus-cli it's OK!" + echo "=) The project horusec-cli it's OK!" - name: lint run: make lint - name: test diff --git a/.github/workflows/security-pipeline.yml b/.github/workflows/security-pipeline.yml index b9ce2d4..4b2ebff 100644 --- a/.github/workflows/security-pipeline.yml +++ b/.github/workflows/security-pipeline.yml @@ -3,14 +3,14 @@ name: SecurityPipeline on: [push] jobs: - horus-security: - name: horus-security + horusec-security: + name: horusec-security runs-on: ubuntu-latest steps: - name: Check out code into the Go module directory uses: actions/checkout@v2 - - name: Running Horus Security + - name: Running Horusec Security shell: bash run: | - curl -fsSL https://horus-assets.s3.amazonaws.com/install.sh | bash - horus start -p="./" + curl -fsSL https://horusec-cli.s3.amazonaws.com/install.sh | bash + horusec start -p="./" diff --git a/.gitignore b/.gitignore index 42c3c52..ec9ae07 100644 --- a/.gitignore +++ b/.gitignore @@ -8,4 +8,4 @@ tmp/ .aws/ *.pem *.srl -.horus/ +.horusec/ diff --git a/README.md b/README.md index 3c13805..cb93257 100644 --- a/README.md +++ b/README.md @@ -56,7 +56,7 @@ A simple analysis of a inmemory string: var exampleGoFile = `package version import ( - "github.com/ZupIT/horus/development-kit/pkg/utils/logger" + "github.com/ZupIT/horusec/development-kit/pkg/utils/logger" "github.com/spf13/cobra" ) @@ -74,8 +74,8 @@ func NewVersionCommand() IVersion { func (v *Version) CreateCobraCmd() *cobra.Command { return &cobra.Command{ Use: "version", - Short: "Actual version installed of the horus", - Example: "horus version", + Short: "Actual version installed of the horusec", + Example: "horusec version", RunE: func(cmd *cobra.Command, args []string) error { logger.LogPrint(cmd.Short + " is: ") return nil diff --git a/go.mod b/go.mod index b95d252..9fcfd26 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/ZupIT/horus-engine +module github.com/ZupIT/horusec-engine go 1.14 diff --git a/text/file_test.go b/text/file_test.go index 15b5c3d..c0b775f 100644 --- a/text/file_test.go +++ b/text/file_test.go @@ -15,10 +15,11 @@ package text import ( - "github.com/stretchr/testify/assert" "path/filepath" "regexp" "testing" + + "github.com/stretchr/testify/assert" ) func TestFindLineAndColumnWithAKotlinController(t *testing.T) { @@ -73,7 +74,7 @@ func TestFindLineAndColumnWithAGoFile(t *testing.T) { var exampleGoFile = `package version import ( - "github.com/ZupIT/horus/development-kit/pkg/utils/logger" + "github.com/ZupIT/horusec/development-kit/pkg/utils/logger" "github.com/spf13/cobra" ) @@ -91,8 +92,8 @@ func NewVersionCommand() IVersion { func (v *Version) CreateCobraCmd() *cobra.Command { return &cobra.Command{ Use: "version", - Short: "Actual version installed of the horus", - Example: "horus version", + Short: "Actual version installed of the horusec", + Example: "horusec version", RunE: func(cmd *cobra.Command, args []string) error { logger.LogPrint(cmd.Short + " is: ") return nil @@ -128,7 +129,7 @@ func TestExtractSampleWithAGoFile(t *testing.T) { var exampleGoFile = `package version import ( - "github.com/ZupIT/horus/development-kit/pkg/utils/logger" + "github.com/ZupIT/horusec/development-kit/pkg/utils/logger" "github.com/spf13/cobra" ) @@ -146,8 +147,8 @@ func NewVersionCommand() IVersion { func (v *Version) CreateCobraCmd() *cobra.Command { return &cobra.Command{ Use: "version", - Short: "Actual version installed of the horus", - Example: "horus version", + Short: "Actual version installed of the horusec", + Example: "horusec version", RunE: func(cmd *cobra.Command, args []string) error { logger.LogPrint(cmd.Short + " is: ") return nil diff --git a/text/rule.go b/text/rule.go index 9c2ab0b..7ff69ef 100644 --- a/text/rule.go +++ b/text/rule.go @@ -17,7 +17,7 @@ package text import ( "regexp" - "github.com/ZupIT/horus-engine" + engine "github.com/ZupIT/horusec-engine" ) type MatchType int diff --git a/text/unit.go b/text/unit.go index 16819b1..7a151fb 100644 --- a/text/unit.go +++ b/text/unit.go @@ -14,9 +14,7 @@ package text -import ( - "github.com/ZupIT/horus-engine" -) +import engine "github.com/ZupIT/horusec-engine" type TextUnit struct { Files []TextFile diff --git a/text/unit_test.go b/text/unit_test.go index 8a49261..14ab3fc 100644 --- a/text/unit_test.go +++ b/text/unit_test.go @@ -19,14 +19,14 @@ import ( "regexp" "testing" - "github.com/ZupIT/horus-engine" + engine "github.com/ZupIT/horusec-engine" ) func TestTextUnitEvalWithRegularMatch(t *testing.T) { var exampleGoFile = `package version import ( - "github.com/ZupIT/horus/development-kit/pkg/utils/logger" + "github.com/ZupIT/horusec/development-kit/pkg/utils/logger" "github.com/spf13/cobra" ) @@ -44,8 +44,8 @@ func NewVersionCommand() IVersion { func (v *Version) CreateCobraCmd() *cobra.Command { return &cobra.Command{ Use: "version", - Short: "Actual version installed of the horus", - Example: "horus version", + Short: "Actual version installed of the horusec", + Example: "horusec version", RunE: func(cmd *cobra.Command, args []string) error { logger.LogPrint(cmd.Short + " is: ") return nil @@ -121,7 +121,7 @@ func TestTextUnitEvalWithRegularMatchWithMultipleFiles(t *testing.T) { var examplePositiveGoFile = `package version import ( - "github.com/ZupIT/horus/development-kit/pkg/utils/logger" + "github.com/ZupIT/horusec/development-kit/pkg/utils/logger" "github.com/spf13/cobra" ) @@ -139,8 +139,8 @@ func NewVersionCommand() IVersion { func (v *Version) CreateCobraCmd() *cobra.Command { return &cobra.Command{ Use: "version", - Short: "Actual version installed of the horus", - Example: "horus version", + Short: "Actual version installed of the horusec", + Example: "horusec version", RunE: func(cmd *cobra.Command, args []string) error { logger.LogPrint(cmd.Short + " is: ") return nil