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

feat(scanner): add keppel scanner #151

Merged
merged 8 commits into from
Aug 22, 2024
Merged

feat(scanner): add keppel scanner #151

merged 8 commits into from
Aug 22, 2024

Conversation

MR2011
Copy link
Collaborator

@MR2011 MR2011 commented Aug 19, 2024

No description provided.

@MR2011 MR2011 requested a review from drochow as a code owner August 19, 2024 15:08
wg.Wait()
}

func ProcessAccount(account models.Account, keppelScanner *scanner.Scanner, keppelProcessor *processor.Processor, wg *sync.WaitGroup) error {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We might consider refactoring this function into smaller ones (processRepositories, processManifests etc.) as it's already huge with lots of for-loops.

Copy link
Collaborator

@drochow drochow left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The "ProcessAccount" Method is irritating me as we use the "processor", "scanner" semantic for distinguishing the two parts of the scanner and here "Process" is used for the central logic part

log.SetOutput(os.Stdout)

// Only log the warning severity or above.
log.SetLevel(log.DebugLevel)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not from ENV?

scanner/keppel/processor/processor.go Outdated Show resolved Hide resolved
@@ -1,3 +1,35 @@
module github.com/cloudoperators/heureka/scanners/keppel
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there a policy when to use github.com and when to use github.wdf.sap.com (like here: https://github.com/cloudoperators/heureka/blob/scanner_nvd/scanner/nvd/go.mod#L1) ?

Copy link
Collaborator

@dorneanu dorneanu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me.

Copy link
Collaborator

@drochow drochow left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me for PoC

@drochow drochow merged commit 946402c into main Aug 22, 2024
4 checks passed
@drochow drochow deleted the scanner_keppel branch August 22, 2024 14:36
dorneanu pushed a commit that referenced this pull request Aug 26, 2024
* feat(scanner): init keppel scanner
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants