diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..a0b611e --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,40 @@ +name: CI/CD Pipeline + +on: + pull_request: + branches: + - main + types: + - opened + - synchronize + - reopened + push: + branches: + - main + +jobs: + build: + if: github.event_name == 'pull_request' + uses: ahincho/nova-devops/.github/workflows/reusable-build-maven.yml@main + secrets: inherit + + matrix: + if: github.event_name == 'pull_request' + uses: ahincho/nova-devops/.github/workflows/reusable-build-matrix.yml@main + with: + build-tool: maven + secrets: inherit + + owasp: + if: github.event_name == 'pull_request' + uses: ahincho/nova-devops/.github/workflows/reusable-owasp-check.yml@main + with: + build-tool: maven + secrets: inherit + + sbom: + if: github.event_name == 'pull_request' + uses: ahincho/nova-devops/.github/workflows/reusable-sbom.yml@main + with: + build-tool: maven + secrets: inherit diff --git a/pom.xml b/pom.xml index 09a1888..4af075d 100644 --- a/pom.xml +++ b/pom.xml @@ -25,7 +25,7 @@ github - https://maven.pkg.github.com/OWNER/nova-spring-boot-archetype + https://maven.pkg.github.com/ahincho/nova-java-spring-boot-archetype