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

chore: build CI #3

Merged
merged 9 commits into from
Oct 4, 2024
Merged

chore: build CI #3

merged 9 commits into from
Oct 4, 2024

Conversation

Touyu-Pan
Copy link
Contributor

@Touyu-Pan Touyu-Pan commented Oct 3, 2024

Workflow

  • CI Integration:
    • Integrated MegaLinter into the CI workflows as a separate job.
    • Gradle Optimization:
      • Added caching to Gradle dependencies, reducing build times.
      • Optimized the Gradle build process by adding --no-daemon and enabling --build-cache.

Dockerfile

  • Switched the base image to openjdk:21-slim for the user creation support.

Spring Boot Dependency

  • Added Spring Boot Actuator to the project’s dependencies, enabling health checks.

Copy link

github-actions bot commented Oct 3, 2024

🦙 MegaLinter status: ❌ ERROR

Descriptor Linter Files Fixed Errors Elapsed time
✅ ACTION actionlint 2 0 0.02s
✅ COPYPASTE jscpd yes no 1.2s
✅ DOCKERFILE hadolint 1 0 0.06s
✅ JAVA checkstyle 2 0 1.55s
✅ REPOSITORY dustilock yes no 0.01s
✅ REPOSITORY gitleaks yes no 0.13s
✅ REPOSITORY git_diff yes no 0.0s
✅ REPOSITORY grype yes no 11.22s
✅ REPOSITORY secretlint yes no 0.69s
✅ REPOSITORY syft yes no 1.93s
❌ REPOSITORY trivy yes 1 6.34s
✅ REPOSITORY trivy-sbom yes no 1.13s
✅ REPOSITORY trufflehog yes no 4.1s
✅ SPELL lychee 2 0 0.03s
⚠️ YAML prettier 2 1 0.36s
✅ YAML v8r 2 0 3.35s
✅ YAML yamllint 2 0 0.29s

See detailed report in MegaLinter reports
Set VALIDATE_ALL_CODEBASE: true in mega-linter.yml to validate all sources, not only the diff

MegaLinter is graciously provided by OX Security

Copy link

github-actions bot commented Oct 4, 2024

🦙 MegaLinter status: ⚠️ WARNING

Descriptor Linter Files Fixed Errors Elapsed time
✅ ACTION actionlint 2 0 0.02s
✅ COPYPASTE jscpd yes no 1.4s
✅ DOCKERFILE hadolint 1 0 0.07s
✅ GROOVY npm-groovy-lint 1 0 9.26s
✅ JAVA checkstyle 2 0 2.66s
✅ REPOSITORY dustilock yes no 0.0s
✅ REPOSITORY gitleaks yes no 0.11s
✅ REPOSITORY git_diff yes no 0.01s
✅ REPOSITORY grype yes no 14.08s
✅ REPOSITORY secretlint yes no 0.73s
✅ REPOSITORY syft yes no 2.43s
✅ REPOSITORY trivy yes no 5.57s
✅ REPOSITORY trivy-sbom yes no 0.71s
✅ REPOSITORY trufflehog yes no 4.32s
✅ SPELL lychee 2 0 0.26s
⚠️ YAML prettier 2 1 0.71s
✅ YAML v8r 2 0 3.86s
✅ YAML yamllint 2 0 0.57s

See detailed report in MegaLinter reports
Set VALIDATE_ALL_CODEBASE: true in mega-linter.yml to validate all sources, not only the diff

MegaLinter is graciously provided by OX Security

@Touyu-Pan Touyu-Pan marked this pull request as ready for review October 4, 2024 16:14
@Touyu-Pan Touyu-Pan self-assigned this Oct 4, 2024
Copy link
Member

@YukinaMochizuki YukinaMochizuki left a comment

Choose a reason for hiding this comment

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

Thanks for making the changes as requested. Well done

@Touyu-Pan Touyu-Pan merged commit d0fcd49 into main Oct 4, 2024
2 checks passed
@YukinaMochizuki YukinaMochizuki deleted the chore/auto-docker-image-build branch October 13, 2024 08:50
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