Repository navigation
fix(sources): stop trusting Codeberg in the default allowlist - #658
Merged
Merged
Conversation
Codeberg is no host for ConductionNL any more, so the default trusted-source allowlist holds only github:ConductionNL/*. A Codeberg pattern an admin stored stays trusted, as "A retired forge keeps what was stored under it" requires. The codeberg-is-no-release-source change now modifies "Trusted-source allowlist [MVP]" to match, and task 2.2 is done. Assisted-by: ClaudeCode:claude-opus-5-5
Contributor
Quality Report — ConductionNL/versioniq @
|
| Check | PHP | Vue | Security | License | Tests |
|---|---|---|---|---|---|
| lint | ✅ | ||||
| phpcs | ✅ | ||||
| phpmd | ✅ | ||||
| psalm | ✅ | ||||
| phpstan | ✅ | ||||
| phpmetrics | ✅ | ||||
| eslint | ✅ | ||||
| stylelint | ✅ | ||||
| build | ✅ | ||||
| composer | ✅ | ✅ 32/32 | |||
| npm | ✅ | ✅ 302/302 | |||
| app:check-code | ⏭️ | ||||
| info.xml | ✅ | ||||
| REUSE | ❌ | ||||
| lockfile sync | ✅ | ||||
| PHPUnit | ✅ 1321/1321 · 25 skipped (8 legs) | ||||
| Newman | ⏭️ | ||||
| Playwright | ⏭️ deferred: E2E runs locally and on the promotion path only. This pull request targets development, so the suite is asked once per promotion into beta and main rather than once per push per open pull request. Run it locally with npx playwright test, or from the Actions tab on a branch with no open pull request into development. |
||||
| Hydra gates | ✅ |
Quality workflow — 2026-11-14 09:46 UTC
Download the full PDF report from the workflow artifacts.
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.
Task 2.2 of
codeberg-is-no-release-source. Codeberg is no longer a host for ConductionNL (GitHub only, decision 392), so the default allowlist drops it.What changes
TrustedSourceList::DEFAULT_PATTERNSis now['github:ConductionNL/*']. Acodeberg:pattern that an admin stored stays trusted, as "A retired forge keeps what was stored under it" requires.TrustedSourceListTest: the old test that the default trusts Codeberg is replaced bytestDefaultTrustsGithubOnly(it fails on the old default) and bytestStoredCodebergPatternStillTrusted.Upgrade effect (in the proposal): one kind of install loses trust: one that never set its allowlist and bound an app to Codeberg. A new
codeberg:pattern is refused, so the admin rebinds the app to GitHub, or to codeberg.org as the self-hosted Forgejo host with aforgejo:pattern.Not in this PR: task 2.1 (move the e2e fixtures off Codeberg, and bind/trusted-sources refusal tests).
Verified locally
hydra/scripts/diff-check.sh: green, 0 NEW findings. phpstan has 2 inherited findings. phpcs was skipped by the diff check (vendor/bin/phpcsis missing in this repo; cs:check ran php-cs-fixer below).COMPOSER_PROCESS_TIMEOUT=0 composer check:strict(lint, cs:check, psalm): ALL CHECKS PASSED.phpunit -c tests/phpunit-unit-only.xml: 1346 tests OK, 2 skipped.openspec validate codeberg-is-no-release-source --strict: valid.AI disclosure: prepared with Claude Code (claude-opus-5-5). A person has to review it before it merges.
🤖 Generated with Claude Code