ci: bootstrap CI + activate build matrix, OWASP and SBOM workflows (NOVA-SEMVER-19/20/21)#1
Merged
Conversation
…OVA-SEMVER-19/20/21) This repo had no CI workflow at all. Adds ci.yml invoking: - reusable-build-maven.yml - reusable-build-matrix.yml (Java 21+25) - reusable-owasp-check.yml (continue-on-error until NVD_API_KEY is configured) - reusable-sbom.yml Also fixes the distributionManagement URL: it still had the literal 'OWNER' placeholder instead of 'ahincho' (NOVA-SEMVER-00c fixed this for the 10 Gradle repos with maven-publish, but missed this Maven repo's distributionManagement block).
'continue-on-error' is not a supported keyword for a job that calls a reusable workflow via 'uses:' - it broke workflow file parsing entirely. Moved the actual fix to nova-devops (step-level, in the reusable workflow itself).
….0.0 Both pe.edu.nova.java:nova-spring-boot-bom and pe.edu.nova.java.starters:nova-spring-boot-starter are published at 1.0.0 in GitHub Packages (never at 0.1.0-SNAPSHOT). The stale SNAPSHOT reference made the parent POM unresolvable, failing the build/matrix/sbom CI jobs with 'Non-resolvable import POM'. Documented as bug C in docs/java/06-semantic-versioning-en-java.md §11.9.30.
nova-spring-boot-bom (imported via dependencyManagement) is published from the separate nova-bom repo, and nova-spring-boot-starter (a plain dependency) from nova-java-spring-boot-starter. GitHub Packages requires auth even for public reads, and each repo's Maven registry is scoped to that repo's own URL - Maven has no way to find either artifact without an explicit <repositories> entry pointing at the right repo. Both entries share the 'nova-packages-read' id since they use the same credentials (see nova-devops' nova-setup-java composite action, which writes the matching <server> entry in settings.xml from the new NOVA_PACKAGES_READ_TOKEN secret). This repo's own dependencyManagement/dependencies declarations are inherited by every child project via this parent POM, so this also fixes cross-repo resolution for any project generated from nova-java-spring-boot-archetype.
…g D) The previously published 1.0.0 POM carries a phantom nova-spring-boot-bom:1.0.1 dependency baked in during the brief window when the BOM was temporarily at 1.0.1 (see nova-docs §11.9.25) and was never republished after the revert. The starter has now been republished as 1.0.1 with a clean POM regenerated from the current build.gradle.kts (which pins nova-spring-boot-bom:1.0.0 directly).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This repo had no CI workflow at all. Adds ci.yml invoking reusable-build-maven, reusable-build-matrix (Java 21+25), reusable-owasp-check (continue-on-error until NVD_API_KEY is configured), and reusable-sbom.
Also fixes distributionManagement URL: had the literal 'OWNER' placeholder instead of 'ahincho' (NOVA-SEMVER-00c fixed this for the Gradle repos but missed this one).
Part of Sprint 4.