Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,25 @@ jobs:
with:
sonar-org: ahincho
sonar-project-key: ahincho_nova-starter
secrets: inherit

matrix:
if: github.event_name == 'pull_request'
uses: ahincho/nova-devops/.github/workflows/reusable-build-matrix.yml@main
with:
build-tool: gradle
secrets: inherit

owasp:
if: github.event_name == 'pull_request'
uses: ahincho/nova-devops/.github/workflows/reusable-owasp-check.yml@main
with:
build-tool: gradle
secrets: inherit

sbom:
if: github.event_name == 'pull_request'
uses: ahincho/nova-devops/.github/workflows/reusable-sbom.yml@main
with:
build-tool: gradle
secrets: inherit
10 changes: 10 additions & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ plugins {
checkstyle
id("net.nemerosa.versioning") version "4.0.1"
id("signing")
id("org.owasp.dependencycheck") version "12.2.2"
id("org.cyclonedx.bom") version "3.2.4"
}

versioning {
Expand Down Expand Up @@ -109,6 +111,14 @@ checkstyle {
sourceSets = listOf(project.sourceSets.main.get())
}

dependencyCheck {
// NVD_API_KEY / NOVA_OWASP_FAIL_ON_CVSS are injected by reusable-owasp-check.yml.
// Locally (no env vars set) this defaults to "never fail" (11.0, matches plugin default)
// and an empty NVD key (slower updates, acceptable for local dev).
failBuildOnCVSS = (System.getenv("NOVA_OWASP_FAIL_ON_CVSS") ?: "11").toFloat()
nvd.apiKey = System.getenv("NVD_API_KEY") ?: ""
}

publishing {
publications {
create<MavenPublication>("mavenJava") {
Expand Down
Loading