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

People/davidgamba/rmd 23648 add reports to workflow #54

Merged

Conversation

DavidGamba
Copy link

@DavidGamba DavidGamba commented Feb 21, 2018

@tonytvo please review.

When the Veracode Results are ready, running the workflow task will retrieve the last build's report.

  • It will print a summary of all Open flaws by CWEID counts.
  • It will print a summary of all New flaws.
  • It will optionally fail the build if there are New flaws.

@DavidGamba DavidGamba requested a review from tonytvo February 22, 2018 06:23
@DavidGamba DavidGamba changed the title [WIP] People/davidgamba/rmd 23648 add reports to workflow People/davidgamba/rmd 23648 add reports to workflow Feb 22, 2018
// Get the last build ID
build_id = VeracodeBuildList.getLatestBuildID(buildList)
log.info("Latest build_id: " + build_id)
newFlaws = printReportSummaryAndCheckForNewFlaws(veracodeAPI, outputDir, build_id)
Copy link

Choose a reason for hiding this comment

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

sounds like this function is doing 2 things .... we could break this to printReportSummary

and later down, we could try to use isNewFlaws?

Copy link

@tonytvo tonytvo left a comment

Choose a reason for hiding this comment

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

other than breaking the printSummary function into smaller function, it looks good to me.

Although, the workflow function start to get big as it involves with too many business logic .... it seems like we might want to make it smaller and easier to test that function.....

@DavidGamba DavidGamba merged commit 5602934 into master Feb 22, 2018
@DavidGamba DavidGamba deleted the people/davidgamba/rmd-23648-Add-reports-to-workflow branch February 22, 2018 17:56
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.

2 participants