PSMRI / AMRIT

AMRIT (Accessible Medical Records via Integrated Technologies) is a digital health platform initially developed by the Piramal Swasthya Management and Research Institute (PSMRI). All open-source community tickets and discussions are managed here.
GNU General Public License v3.0
0 stars 1 forks source link

[C4GT Community]: Configure GitHub Actions for Checkstyle code formatting and vulnerability scanning in AMRIT API repositories #2

Open drtechie opened 3 months ago

drtechie commented 3 months ago

Ticket Contents

Description

To maintain code quality and security for AMRIT API repositories, we need to set up GitHub Actions workflows that perform code formatting checks using Checkstyle and vulnerability scanning with OWASP Dependency-Check. These workflows should ensure that code formatting issues are detected for changed files in pull requests, and vulnerability scanning is conducted when pom.xml changes. Merging of pull requests should be restricted unless these checks pass.

What You Will Learn:

As an intern, you will:

Desired Skills:

Goals

Setup GitHub Actions for Checkstyle:

Setup GitHub Actions for OWASP Dependency-Check:

Expected Outcome

Fully functional GitHub Actions workflows that automatically check code formatting with Checkstyle and perform vulnerability scanning with OWASP Dependency-Check. These workflows will ensure that pull requests meet coding standards and are free of known vulnerabilities before merging.

Acceptance Criteria

Checkstyle Workflow:

OWASP Dependency-Check Workflow:

Implementation Details

https://github.com/checkstyle/checkstyle https://central.sonatype.com/artifact/org.owasp/dependency-check-maven/8.4.0/overview https://github.com/marketplace/actions/dependency-check https://github.com/marketplace?query=checkstyle

Mockups/Wireframes

NA

Product Name

AMRIT

Organisation Name

Piramal Swasthya Management Research Institute

Domain

Healthcare

Tech Skills Needed

CI/CD, Debugging, DevOps, Java, Security, Spring Boot

Mentor(s)

@drtechie

Complexity

Medium

Category

CI/CD, Documentation, Delpoyment

RAJEEVKUMAR9598 commented 3 months ago

can you assign a healthcare ml model fir c4gt?

Amrit02102004 commented 1 month ago

@RAJEEVKUMAR9598 Have you fixed the issue ? If possible I would like to try

RAJEEVKUMAR9598 commented 1 month ago

Today i will fix it

gupta-soham commented 1 month ago

@drtechie where is pom.xml located and isn't OWASP Dependency-Check a Java specific workflow? Should it trigger changes to package.json and yarn.lock instead?

drtechie commented 1 month ago

@gupta-soham this ticket is related to AMRIT API repositories. All of are API repos based on Spring Boot and Java. There is no relevance for npm package.json/yarn.lock here. pom.xml file is located in the root of the projects.