Skip to content

build: prepare the 1.2.0 release - #70

Merged
uniqueg merged 12 commits into
devfrom
build/prepare-1.2.0
Nov 6, 2026
Merged

uniqueg merged 12 commits into
devfrom
build/prepare-1.2.0

Conversation

@uniqueg

@uniqueg uniqueg commented Nov 5, 2026 •

Copy link
Copy Markdown
Member

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.
  • Default service-info.yaml: version 1.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 tag v1.2.0rc1, CITATION.cff would need 1.2.0rc1.

Light lane (feather lane for the metadata): version metadata only.

Verified

Before tagging

🤖 Generated with Claude Code

Summary by Sourcery

Prepare the project metadata for the 1.2.0 release.

Build:

  • Set the project release version to 1.2.0 across the Maven project and service metadata.

Documentation:

  • Update citation metadata for the 1.2.0 release.

uniqueg and others added 3 commits November 5, 2026 05:38
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]>
@sourcery-ai

sourcery-ai Bot commented Nov 5, 2026 •

Copy link
Copy Markdown

Reviewer's Guide

Prepares 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

Change Details Files
Replaces legacy CI and publishing configuration with a consolidated, required CI workflow and automated dependency-update configuration.
  • Adds PR/push checks for title validation, workflow linting, Maven tests, Docker smoke tests, and image vulnerability scanning.
  • Adds a final gate that aggregates all CI job results.
  • Configures Dependabot for Maven, GitHub Actions, and Docker dependencies.
  • Removes the legacy Travis and separate Maven/Docker publishing workflows.
.github/workflows/ci.yml
.github/dependabot.yml
.github/workflows/docker-build-publish.yml
.github/workflows/maven-check.yml
.github/workflows/maven-publish.yml
.travis.yml
Modernizes the Docker build and documents the local build, test, and image-validation workflow.
  • Changes to a pinned multi-stage Temurin Java 8 build/runtime image.
  • Builds the application inside Docker and copies the generated jar into a slimmer runtime image.
  • Adds a Docker build context ignore file and updates the README CI badge and developer instructions.
Dockerfile
.dockerignore
README.md
Updates the Java dependency baseline and records narrowly scoped vulnerability exceptions for the Java 8/Spring Boot 2 stack.
  • Sets the project version to 1.2.0 and upgrades Spring Boot, Guava, OAuth, and selected managed/transitive dependencies.
  • Adds dependency management overrides for known vulnerable transitive libraries.
  • Adds expiring, package-scoped Trivy vulnerability exceptions with rationale.
pom.xml
.trivyignore.yaml
Adapts authentication error handling to the updated OAuth dependency API while preserving the existing response format.
  • Adds the generic OAuth exception type to the response translator.
  • Handles the translated response body through a wildcard response entity before converting it to OAuth2Exception.
src/main/java/uk/ac/ebi/tsc/tesk/config/security/CustomAuthenticationEntryPoint.java
Publishes the 1.2.0 release version in service metadata.
  • Changes the default service-info version from 1.0 to 1.2.0.
src/main/resources/service-info.yaml

Possibly linked issues


Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

@codecov

codecov Bot commented Nov 5, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 55.94%. Comparing base (bbc8818) to head (2f8a3cb).

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.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@uniqueg
uniqueg marked this pull request as ready for review November 5, 2026 05:07

@sourcery-ai sourcery-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

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


Sourcery is free for open source - if you like our reviews please consider sharing them ✨

Comment thread .trivyignore.yaml Resolved
Comment thread .github/workflows/ci.yml Resolved
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]>

@sourcery-ai sourcery-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Sourcery assessment

Approved.

@uniqueg
uniqueg merged commit c699412 into dev Nov 6, 2026
23 checks passed
@uniqueg
uniqueg deleted the build/prepare-1.2.0 branch November 6, 2026 05:12
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.

build: prepare the 1.2.0 release

1 participant