Repository navigation
build: prepare the 1.2.0 release - #70
Conversation
Add ci.yml as in the org's other repositories (PR title, lint, test, smoke test, image scan, gate). The scan only reports until the dependency update. The base image of the Dockerfile no longer exists; build from source on Temurin 8 instead (not Alpine: TLS handshakes fail there on Java 8). Add a .dockerignore. Remove the old workflows, which can't run any more and would publish over the tag of the last release on every push to master, and Travis. Closes #59 Co-Authored-By: Claude Opus 5.5 <[email protected]>
Move to the last releases of the Spring Boot 2.7 line, and pin the transitive dependencies the scan flags. spring-security-oauth2 2.5 makes its exception translator generic, which the entry point adapts to. What is fixed only in Spring Boot 3 goes to .trivyignore.yaml, each entry with its reason and expiry date. The scan in CI now fails on fixable critical and high findings. Closes #60 Co-Authored-By: Claude Opus 5.5 <[email protected]>
Set the version in pom.xml, which the release workflow compares with the tag, and in the default service-info.yaml. Closes #63 Co-Authored-By: Claude Opus 5.5 <[email protected]>
Reviewer's GuidePrepares the 1.2.0 release by updating project and service metadata, refreshing the Java dependency baseline, adapting authentication code for the upgraded OAuth library, and replacing legacy CI/publishing automation with a pinned, gated workflow that builds, tests, smoke-tests, and scans the Docker image. File-Level Changes
Possibly linked issues
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## dev #70 +/- ##
=======================================
Coverage 55.94% 55.94%
=======================================
Files 64 64
Lines 2152 2152
Branches 234 234
=======================================
Hits 1204 1204
Misses 807 807
Partials 141 141 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
Hey - I've found 2 issues
Prompt for AI Agents
Please address the comments from this code review:
## Individual Comments
### Comment 1
<location path=".trivyignore.yaml" line_range="54-56" />
<code_context>
+ purls: ["pkg:maven/org.springframework/[email protected]"]
+ statement: Concerns JavaScriptUtils; the app doesn't use it
+ expired_at: 2027-01-31
+ - id: CVE-2026-41842
+ purls: ["pkg:maven/org.springframework/[email protected]"]
+ statement: Denial of service when resolving static resources, of which the app only has the Swagger UI (public, also with the auth profile); no code execution or data access
+ expired_at: 2027-01-31
+ - id: CVE-2026-47884
</code_context>
<issue_to_address>
**Public Swagger can take API offline**
When an unauthenticated attacker sends a request that triggers CVE-2026-41842, spring MVC's vulnerable static-resource handling remains reachable through the public Swagger UI paths, so a crafted request can cause denial of service and take the API offline.
Upgrade to a fixed Spring Framework version, or disable or protect the affected public static-resource endpoints until an upgrade is possible.
</issue_to_address>
### Comment 2
<location path=".github/workflows/ci.yml" line_range="12" />
<code_context>
+
+name: CI
+on:
+ push:
+ branches: [master]
+ pull_request:
</code_context>
<issue_to_address>
**Release tags are not checked**
When a release is made by creating a version tag, a release tag does not trigger this workflow because its only push trigger is limited to `master`; there is no remaining repository workflow to compare the tag with `pom.xml` or publish the release, so the stated release check never runs.
Add or retain a release workflow that runs for version tags, validates the tag against `pom.xml`, and performs the intended release actions.
</issue_to_address>Linked issues
#63 build: prepare the 1.2.0 release · 2 of 2 met
| # | Requirement | Status | Notes |
|---|---|---|---|
| 1 | Set pom.xml version to 1.2.0 | ✅ Met | pom.xml now declares version 1.2.0. |
| 2 | Set the version in the default service-info.yaml | ✅ Met | The default service-info.yaml now declares version 1.2.0. |
Sourcery assessment
Needs a human reviewer. 2 findings to address first, the security scan did not finish, and the OAuth and Spring Security upgrades, together with the changed authentication exception handling, could alter how authentication failures are processed. Reverting restores the old behavior, but any access mistakenly allowed while this version is deployed cannot be undone.
Blocking findings: .trivyignore.yaml:56, .github/workflows/ci.yml:12
Code owners as in the org's other repositories, and citation metadata as in foca and cloud-registry. Authors by lines committed, counting the pending 1.2.0 pull requests; merge-only contributors are left out. No version until the release-prep pull request sets it, and no DOI until Zenodo has one for this repository. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Restore the files of #67 to their state on `dev`, so that this pull request no longer depends on #67, which waits for a decision. Co-Authored-By: Claude Opus 5.5 <[email protected]>
# Conflicts: # .github/dependabot.yml # README.md
…build/prepare-1.2.0
Co-Authored-By: Claude Opus 5.5 <[email protected]>
# Conflicts: # CITATION.cff
Summary
Closes #63. Part of #72. Based on
dev(#64 merged); independent of #67. Merge last, right before tagging.pom.xml:1.2.0, which the release workflow (ci: fix image tags and notify Pubgrade on release #68) compares with the tag.service-info.yaml: version1.2.0.CITATION.cff:version: "1.2.0",date-released: "2026-11-06", which the release workflow also checks. If the tag is pushed on another day, update the date here first. For a rehearsal tagv1.2.0rc1,CITATION.cffwould need1.2.0rc1.Light lane (feather lane for the metadata): version metadata only.
Verified
./mvnw clean verifyon JDK 8 passes; the jar istesk-1.2.0.jar, which theDockerfilepicks up by pattern.dev(with ci: fix image tags and notify Pubgrade on release #68, feat: make service-info public, configurable #69, chore: add CODEOWNERS and CITATION.cff #75) merged in; CI on this PR: see the checks.Before tagging
🤖 Generated with Claude Code
Summary by Sourcery
Prepare the project metadata for the 1.2.0 release.
Build:
Documentation: