Repository navigation
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]>
Reviewer's GuideAdds a non-publishing GitHub Actions CI pipeline with a required Flow diagram for the CI gate pipelineflowchart TD
Trigger[PR or push to master] --> Title[PR title]
Trigger --> Lint[Lint]
Trigger --> Test[Test]
Trigger --> Smoke[Smoke test]
Trigger --> Scan[Scan image]
Title --> Gate[CI passed]
Lint --> Gate
Test --> Gate
Smoke --> Gate
Scan --> Gate
File-Level Changes
Possibly linked issues
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
|
You are seeing this message because GitHub Code Scanning has recently been set up for this repository, or this pull request contains the workflow file for the Code Scanning tool. What Enabling Code Scanning Means:
For more information about GitHub Code Scanning, check out the documentation. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## dev #64 +/- ##
======================================
Coverage ? 55.90%
======================================
Files ? 64
Lines ? 2150
Branches ? 233
======================================
Hits ? 1202
Misses ? 807
Partials ? 141 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
Hey - I've reviewed your changes and they look great!
Linked issues
#59 ci: add CI with a gate job · 5 of 5 met
| # | Requirement | Status | Notes |
|---|---|---|---|
| 1 | Add CI with PR title, lint, unit and integration tests, image smoke test, image scan, and the passed / CI passed gate. |
✅ Met | The workflow defines all six jobs; the gate requires the other jobs and allows the intended title-job skips. |
| 2 | Add a Dockerfile that builds with an existing base image and a .dockerignore. |
✅ Met | The Dockerfile builds from source on Temurin 8, and .dockerignore limits the build context while excluding common secret files. |
| 3 | Configure Dependabot for Maven, GitHub Actions, and Docker. | ✅ Met | All three ecosystems are configured in .github/dependabot.yml. |
| 4 | Remove the obsolete workflows and Travis configuration, and stop publishing images from pushes to master. |
✅ Met | The old workflows and .travis.yml are deleted; the replacement CI workflow publishes nothing. |
| 5 | Document how to build and test the project in the README. | ✅ Met | The README documents ./mvnw clean verify and building the image with Docker. |
Sourcery assessment
Approved.
Align CI with the branching model of the org's other repositories (`dev` + `main`): run on pull requests and pushes to `dev`; on pushes, push the image by digest in the environment `dev-images`, scan exactly that digest, then attest, sign and tag it `dev` and `sha-<commit>`, as cloud-registry does. Add the weekly scan of `latest` (`scan.yml`), let Dependabot target `dev`, and fail pushes on Codecov upload errors. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Publish only on pushes to this repository, or to forks that set `DOCKERHUB_ORG` (`PUBLISH`, as in proTES and foca): other runs scan a local build, upload nothing to code scanning and don't fail on Codecov upload errors, and the gate allows the skipped publishing jobs. Name the environment and secrets publishing needs in the README, and fix comments from the review. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
There was a problem hiding this comment.
Linked issues
#59 ci: add CI with a gate job · 4 of 5 met
| # | Requirement | Status | Notes |
|---|---|---|---|
| 1 | Add CI for PR titles, lint, unit and integration tests, image smoke tests, image scans, and a CI gate. | ✅ Met | The workflow defines these jobs and the CI passed gate. |
| 2 | Use a buildable Docker base image and add a .dockerignore. |
✅ Met | The Dockerfile builds from source with Temurin 8, and .dockerignore limits the build context and excludes secret files. |
| 3 | Configure Dependabot for Maven, GitHub Actions, and Docker. | ✅ Met | All three ecosystems are configured in .github/dependabot.yml. |
| 4 | Remove the obsolete workflows and Travis, and remove master image publishing pending a tag-triggered release workflow. | 🟡 Partly met | The old workflows and Travis are removed, and there is no master publishing, but the new workflow publishes images on pushes to dev. |
| 5 | Document how to build and test. | ✅ Met | The README documents ./mvnw clean verify and docker build. |
Sourcery withdrew this approval because the latest commits introduced blocking findings.
Summary
Closes #59. Part of #72.
ci.yml/CI, as in the organisation's other repositories (cloud-registry, proTES):PR title,Lint,Test(JUnit unit and integration tests, JaCoCo coverage to Codecov),Smoke test,Scan image, and the gateCI passed. Runs on pull requests and pushes todev. The scan only reports until build: update dependencies flagged by the scan #60.dev(fork-safePUBLISHpattern of proTES and foca):Push imagepushes the image by digest in the environmentdev-images(secretsDOCKERHUB_LOGIN,DOCKERHUB_TOKEN; variableDOCKERHUB_ORG, defaultelixircloud),Scan imagescans exactly that digest, andPublish imageattests, signs (Sigstore) and tags itdevandsha-<commit>. Forks withoutDOCKERHUB_ORGrun the checks only.Lintchecks that the copies of the publish condition match.scan.yml/Scan: weekly scan oflatest(today the 1.1.0 image, so it reports that image's findings until 1.2.0 is out).Dockerfile: the base imageopenjdk:8-jdk-alpineno longer exists, so the image couldn't be built. It now builds from source on Temurin 8. Not on Alpine: there, TLS handshakes of Java 8 fail. Adds a.dockerignore.docker-build-publish.yml,maven-publish.yml,maven-check.ymland.travis.yml. Their actions are too old to run. Until ci: fix image tags and notify Pubgrade on release #61 a tag publishes nothing.dev; README section on building and testing.Verified
./mvnw clean verifyon JDK 8: 104 unit and 38 integration tests pass.docker build ., then the smoke test's requests by hand:noauthandauthprofiles answer as the job expects.yq); the publish-condition check passes locally. actionlint runs in CI (Lint); it could not run locally (Docker denied in the sandbox).Needs before the first push to
devdev-imageslimited to branchdev, with the org secretsDOCKERHUB_LOGIN/DOCKERHUB_TOKENreaching it, andCODECOV_TOKEN(pushes fail on Codecov upload errors, as in the other repositories).Declined review findings
Smoke testandScan image: two builds cost minutes; the jobs stay apart so that the scan runs on its own.USERin the image: the chart's security context and OpenShift set the user, and a fixed one needs testing on those. In ci: complete the setup of the org's other repos #65.cloudbuild.yamlstays: it still works, and I can't tell who uses it (ci: complete the setup of the org's other repos #65).service-info'sartifact: the running app answersteswhile the YAML saysTES; the smoke test compares case-insensitively.publishof an older push can be cancelled by a newer one (one pending job per concurrency group), failing that run's gate: inherited from the shared pattern of all repositories; to fix there, not here.release.yml, which comes with ci: fix image tags and notify Pubgrade on release #68 right after this PR.🤖 Generated with Claude Code