Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/trivy #504

Merged
merged 27 commits into from
Aug 5, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
05242f7
fix data-races when running analysis (#477)
matheusalcantarazup Jun 9, 2021
9022104
improvement on Swift rules description (#479)
matheusalcantarazup Jun 14, 2021
08e9360
feature/dependency-check (#478)
nathanmartinszup Jun 16, 2021
8ccd1a8
Feature/dotnet cli (#480)
nathanmartinszup Jun 21, 2021
ec7ef10
[skip ci] Update versioning file
wiliansilvazup Jun 22, 2021
93fa2a5
avoid time.Sleep to log analysis timeout status (#482)
matheusalcantarazup Jun 28, 2021
e8603f8
Feature/nancy (#483)
nathanmartinszup Jun 28, 2021
752c8ea
Add set log file to global command
iancardosozup Jul 13, 2021
123e597
Add set log file to global command
iancardosozup Jul 13, 2021
3cf4c42
remove ctrl v error
iancardosozup Jul 13, 2021
dcf4549
refactor cyclomatic function
iancardosozup Jul 13, 2021
2606461
Fixing lint errors
nathanmartinszup Jul 13, 2021
f920311
fix tests
iancardosozup Jul 14, 2021
e617c7a
Add LogOutput Tests
iancardosozup Jul 15, 2021
88aaea2
Fix tests
iancardosozup Jul 15, 2021
c411940
altering fileName creation to use filepath.Join
iancardosozup Jul 15, 2021
beefcac
removing comments from tests
iancardosozup Jul 15, 2021
ddab958
Change logpath flage name to log-file-path and refactor on logSetOutput
iancardosozup Jul 19, 2021
a28b915
Adding more tests and system call interface
iancardosozup Jul 20, 2021
969b08c
Save work
iancardosozup Jul 20, 2021
a20f9fd
fix viper config
iancardosozup Jul 21, 2021
4c0683c
Add trivy as new tool to generic analyzers
iancardosozup Aug 2, 2021
dcb7b14
Merge remote-tracking branch 'origin/develop' into feature/trivy
iancardosozup Aug 3, 2021
328b15b
Att gomod and add setSystemCall
iancardosozup Aug 3, 2021
fa99cc1
Add license to trivy files
iancardosozup Aug 3, 2021
f4f1e35
Fix tools to ignore from merge commit error
iancardosozup Aug 3, 2021
f7d055f
Merge branch 'develop' of github.com:ZupIT/horusec into feature/trivy
wiliansilvazup Aug 5, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion cmd/app/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ func init() {

_ = rootCmd.PersistentFlags().String("log-level", configs.GetLogLevel(), "Set verbose level of the CLI. Log Level enable is: \"panic\",\"fatal\",\"error\",\"warn\",\"info\",\"debug\",\"trace\"")
_ = rootCmd.PersistentFlags().String("config-file-path", configs.GetConfigFilePath(), "Path of the file horusec-config.json to setup content of horusec")

_ = rootCmd.PersistentFlags().StringP("log-file-path", "l", configs.GetLogFilePath(), `set user defined log file path instead of default`)
rootCmd.AddCommand(version.NewVersionCommand().CreateCobraCmd())
rootCmd.AddCommand(startCmd.CreateStartCommand())
rootCmd.AddCommand(generateCmd.CreateCobraCmd())
Expand Down
3 changes: 3 additions & 0 deletions cmd/app/start/start.go
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,9 @@ func (s *Start) setConfig(startCmd *cobra.Command) {
s.configs = s.configs.NewConfigsFromViper().NormalizeConfigs()
s.configs = s.configs.NewConfigsFromEnvironments().NormalizeConfigs()
s.configs = s.configs.NewConfigsFromCobraAndLoadsCmdStartFlags(startCmd).NormalizeConfigs()
if err := s.configs.SetLogOutput(os.Stdout); err != nil {
logger.LogErrorWithLevel(messages.MsgErrorSettingLogFile, err)
}
}

func (s *Start) runE(cmd *cobra.Command, _ []string) error {
Expand Down
Loading