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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

馃摉 Ability to run static code analysis locally #7062

Open
4 tasks
jacobwoffenden opened this issue May 21, 2024 · 0 comments
Open
4 tasks

馃摉 Ability to run static code analysis locally #7062

jacobwoffenden opened this issue May 21, 2024 · 0 comments

Comments

@jacobwoffenden
Copy link
Member

jacobwoffenden commented May 21, 2024

User Story

As a customer of the Modernisation Platform
I want to be able to run static code analysis the same as it is in GitHub Actions
So that I can shorten the feedback loop of failing static code analysis warnings

Value / Purpose

Having the ability to run Checkov and Trivy locally with all the same parameters/flags that the GitHub Actions workflow uses would allow me as an engineer to remediate issues before having to wait for GitHub Actions to fail.

Useful Contacts

@jacobwoffenden

Additional Information

I've started this already (https://github.com/ministryofjustice/modernisation-platform-environments/blob/main/scripts/member-static-analysis.sh) but haven't yet put the effort into transpiling https://github.com/ministryofjustice/github-actions/tree/main/terraform-static-analysis parameters/flags

Proposal / Unknowns

Hypothesis

If we... [do a thing] Then... [this will happ]

Proposal

A proposal that is something testable, don't worry whether it works or not, it's a place for ideas.

Unknowns

Potential pitfalls that could cause the story to expand beyond its original scope. Ideally this section will remain blank.

Definition of Done

Example - [ ] Documentation has been written / updated

  • README has been updated
  • User docs have been updated
  • Another team member has reviewed
  • Tests are green
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: To Do
Development

No branches or pull requests

1 participant