Repository navigation
chore: use the service contact address - #435
Merged
Merged
Conversation
Use [email protected], named as ELIXIR On-Cloud, as the contact in the package metadata and the access control API specification, instead of the personal address. Alexander Kanitz stays listed as author by name. Replace the custom and deprecated `maintainer` image labels with OCI annotations (`org.opencontainers.image.*`) in the FOCA image and the example images. The workflows add no labels, so the Dockerfiles keep all static values; the example images set their own, as they would otherwise inherit those of the FOCA image. Add a test that no tracked file has e-mail addresses other than the service address, the GA4GH address of the vendored specification and example addresses. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Reviewer's GuideUpdates project, API, and container metadata to use the ELIXIR On-Cloud service contact, migrates Docker labels to OCI annotations with explicit metadata for derived images, and adds a tracked-file scan to prevent personal email addresses from returning. Flow diagram for repository email address validationflowchart TD
Files[Tracked repository files] --> Scan[tests/test_repository.py]
Scan --> Allowed{Allowed address?}
Allowed -->|Service or documented example address| Pass[Pass]
Allowed -->|Personal address| Fail[Fail]
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 #435 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 27 27
Lines 2869 2869
=========================================
Hits 2869 2869
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
uniqueg
marked this pull request as ready for review
October 23, 2026 11:41
There was a problem hiding this comment.
Hey - I've found 1 issue
Prompt for AI Agents
Please address the comments from this code review:
## Individual Comments
### Comment 1
<location path="tests/test_repository.py" line_range="10" />
<code_context>
+ROOT = Path(__file__).resolve().parents[1]
+
+# E-mail addresses, with a domain name of valid labels
+EMAIL = re.compile(
+ r"[\w.%+-]+@((?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z]{2,})",
+ re.IGNORECASE,
</code_context>
<issue_to_address>
**Internationalized contacts evade scan**
When a tracked file contains an email address with an internationalized domain, `EMAIL` excludes non-ASCII domain labels, so `finditer` skips valid addresses such as `person@bücher.example.org` and the repository test passes while a personal address remains tracked.
Use a detector that recognizes internationalized domains (for example, normalize domain labels with IDNA) before applying the address allowlist.
</issue_to_address>Sourcery assessment
Approval pending. 1 finding to address first.
Blocking findings: tests/test_repository.py:10
Also find e-mail addresses whose domain names have non-ASCII labels, so that internationalized addresses don't evade the repository check. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This was referenced Oct 23, 2026
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.
Summary
pyproject.tomlauthors and maintainers and ininfo.contactof the access control API specification. Alexander Kanitz stays listed as author by name (pyproject.toml, without e-mail;CITATION.cffas before).org.opencontainers.image.title,description,url,source,documentation,licenses,authors,vendor) replace the customsoftware.*labels and the deprecatedmaintainerandmaintainer.organisationlabels indocker/Dockerfileand the example Dockerfiles. The workflows add no labels (nodocker/metadata-action), so no value is lost. The example images set all of their own, as they would otherwise inherit those of the FOCA image.tests/test_repository.pychecks that no tracked file has e-mail addresses other than the service address, the GA4GH address of the vendored service-info specification and example addresses (example.orgetc.), like the existing check ofCITATION.cff; it also finds addresses with internationalized domain names (Sourcery).Light lane: metadata, image labels and a self-contained repository test only, no logic; the reviewer subagents were skipped and I reviewed the diff myself.
Verification
pytest tests/test_repository.py: fails ondev(6 lines with the personal address), passes on this branchpytest tests/test_repository.py tests/test_citation.py tests/test_version.py tests/utils: 382 passedruff check,ruff format --check,mypy,ast-grep scan,pre-commit runon the changed files: passOpen questions
None.
Closes #434
🤖 Generated with Claude Code