Skip to content

Feature/setup gitleaks#5

Closed
duongtronghoa6a-debug wants to merge 8 commits into
mainfrom
feature/setup-gitleaks
Closed

Feature/setup gitleaks#5
duongtronghoa6a-debug wants to merge 8 commits into
mainfrom
feature/setup-gitleaks

Conversation

@duongtronghoa6a-debug

Copy link
Copy Markdown
Collaborator

No description provided.

Copilot AI review requested due to automatic review settings May 1, 2026 06:17

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

This PR introduces PR-time secret scanning via Gitleaks and extends the CI pipeline to generate/upload JaCoCo coverage artifacts and produce a consolidated test/coverage summary, alongside some project workflow documentation and Maven wrapper additions for specific modules.

Changes:

  • Add a pull_request Gitleaks workflow targeting main and dev.
  • Extend .github/workflows/ci-pipeline.yml with coverage detection, JaCoCo report generation, threshold enforcement, artifacts, and a “Test Summary” job.
  • Add JaCoCo Maven plugin configuration to the root pom.xml, plus module-local mvnw scripts and internal planning/checklist docs.

Reviewed changes

Copilot reviewed 6 out of 8 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
pom.xml Adds JaCoCo plugin under <build><plugins> (currently duplicating existing pluginManagement config).
mock-secret.txt Adds a mock credential-like string intended to test Gitleaks.
cart/mvnw Adds Maven wrapper shell script for the cart module.
backoffice-bff/mvnw Adds Maven wrapper shell script for the backoffice-bff module.
WORK_ASSIGNMENT.md Adds internal team assignment/coverage tracking notes.
WORKLOAD_CHECKLIST.md Adds internal CI/CD progress checklist.
.github/workflows/gitleaks.yml New PR-triggered Gitleaks workflow.
.github/workflows/ci-pipeline.yml Adds checks permission, coverage reporting/enforcement steps, artifacts, and a test-summary job; updates CI gate dependencies.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread pom.xml
Comment on lines +424 to +446
<version>${jacoco-maven-plugin.version}</version>
<executions>
<execution>
<goals>
<goal>prepare-agent</goal>
</goals>
</execution>
<execution>
<id>report</id>
<phase>verify</phase>
<goals>
<goal>report</goal>
</goals>
</execution>
</executions>
<configuration>
<excludes>
<exclude>com/yas/**/*Application.class</exclude>
<exclude>com/yas/**/config/**</exclude>
<exclude>com/yas/**/exception/**</exclude>
<exclude>com/yas/**/constants/**</exclude>
</excludes>
</configuration>
Comment thread mock-secret.txt
Comment on lines +1 to +2
# Dòng này cố tình chứa secret giả để test Gitleaks trong quá trình làm đồ án
AWS_ACCESS_KEY_ID=AKIAIOSFODNN7EXAMPLE
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: gitleaks/gitleaks-action@v2
Comment on lines 425 to 429
runs-on: ubuntu-latest
needs: [detect-changes, test, build]
needs: [detect-changes, test, build, test-summary]
if: always()
steps:
- name: Evaluate results
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