Build from Gitea instead of GitHub; modules repinned
The Alpaq92 GitHub account is suspended. dredd-core now comes from the public Haski/dredd-core on Gitea (requirements, deploy_check, the push test), CI no longer authenticates to GitHub, and push.sh names the Gitea repositories. Every module is repinned to its commit that does the same (one commit on top of the previous pin, nothing else changes). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -43,17 +43,6 @@ jobs:
|
||||
-- EXISTS then no-ops, so the least-privilege migrator never needs extension rights.
|
||||
CREATE EXTENSION IF NOT EXISTS "pgcrypto";
|
||||
SQL
|
||||
- name: Authenticate to dredd-core
|
||||
# dredd-core is a PRIVATE repo, so the `git+https://` requirement cannot be fetched
|
||||
# anonymously — without this step `pip install` fails with a git auth prompt/404.
|
||||
# The rewrite injects the token for that ONE repo URL; every other GitHub URL is untouched,
|
||||
# and the secret stays out of the requirements file and the pip log.
|
||||
# Add the secret under Settings → Secrets and variables → Actions → DREDD_CORE_TOKEN
|
||||
# (a fine-grained PAT with read-only Contents access on Alpaq92/dredd-core).
|
||||
env:
|
||||
TOKEN: ${{ secrets.DREDD_CORE_TOKEN }}
|
||||
run: |
|
||||
git config --global url."https://x-access-token:${TOKEN}@github.com/Alpaq92/dredd-core".insteadOf "https://github.com/Alpaq92/dredd-core"
|
||||
- name: Install deps
|
||||
working-directory: backend
|
||||
run: pip install -r requirements-dev.txt
|
||||
@@ -165,11 +154,6 @@ jobs:
|
||||
- uses: actions/checkout@v5
|
||||
- uses: actions/setup-python@v6
|
||||
with: { python-version: "3.12" }
|
||||
- name: Authenticate to dredd-core
|
||||
env:
|
||||
TOKEN: ${{ secrets.DREDD_CORE_TOKEN }}
|
||||
run: |
|
||||
git config --global url."https://x-access-token:${TOKEN}@github.com/Alpaq92/dredd-core".insteadOf "https://github.com/Alpaq92/dredd-core"
|
||||
- name: Install deps
|
||||
working-directory: backend
|
||||
run: pip install -r requirements-dev.txt
|
||||
|
||||
@@ -56,7 +56,7 @@
|
||||
# v0.21.0 adds the counterparty register: the three shared tables the hub creates and grants in its
|
||||
# identity schema (`alembic/versions/0012_counterparties.py`, re-applied by `app.identity_grants`),
|
||||
# and the import door modules move their own counterparties in through. The hub holds no tier on them.
|
||||
dredd-core @ git+https://github.com/Alpaq92/dredd-core@v0.26.1
|
||||
dredd-core @ git+http://77.216.148.202:3000/Haski/dredd-core.git@v0.26.1
|
||||
|
||||
# Web framework
|
||||
fastapi==0.115.6
|
||||
|
||||
@@ -120,7 +120,7 @@ check("USER app" in dockerfile, "container runs as root",
|
||||
|
||||
# ── the image can install the private core ────────────────────────────────────
|
||||
requirements = read("backend/requirements.txt")
|
||||
if "git+https://github.com/Alpaq92/dredd-core" in requirements:
|
||||
if "dredd-core @ git+" in requirements:
|
||||
# Not `"git" in dockerfile` — the secret-mount RUN names github.com, so that could never fail.
|
||||
# Look for git as a package of an apt/apk install (comments dropped, `\` continuations joined as
|
||||
# BuildKit joins them: whitespace may follow the backslash, and blank lines inside are skipped).
|
||||
|
||||
@@ -359,7 +359,7 @@ class TestTheHalfDoneShapesOfOneAccountAreRefused:
|
||||
"""A module held on an older dredd-core (here Sygna on 0.18.1): its `managed check` has no
|
||||
--counterparties flag, and its revisions move nothing, so the preflight asks nothing of it."""
|
||||
reqs = rig / "modules" / "sygna" / "backend" / "requirements.txt"
|
||||
reqs.write_text("dredd-core @ git+https://github.com/Alpaq92/dredd-core@v0.18.1\n",
|
||||
reqs.write_text("dredd-core @ git+http://77.216.148.202:3000/Haski/dredd-core.git@v0.18.1\n",
|
||||
encoding="utf-8")
|
||||
try:
|
||||
done, trace = _push(rig, platform=True, trace="cp-old", settings={"atrium": {
|
||||
|
||||
+1
-1
Submodule deploy/modules/agora updated: e4ca1827da...7aa1881a72
+1
-1
Submodule deploy/modules/arbiter updated: d99906f637...fb82239769
+1
-1
Submodule deploy/modules/counsel updated: cd4dca0218...7b20554a84
+1
-1
Submodule deploy/modules/galena updated: 1dd6b4a724...1fa8b1a6ec
+1
-1
Submodule deploy/modules/insider updated: 3039f1675c...c577b77de3
+1
-1
Submodule deploy/modules/lexicon updated: d0cae403f4...02d746f376
+1
-1
Submodule deploy/modules/parafa updated: 97e927078e...59ea522f00
+1
-1
Submodule deploy/modules/scribe updated: 6d33e37d5c...ea3d57728f
+1
-1
Submodule deploy/modules/sygna updated: 4fee196c84...02bb267ebb
+1
-1
Submodule deploy/modules/workflow updated: 6f5a004cbe...a1a7d5c196
+11
-11
@@ -352,18 +352,18 @@ STRIP=${STRIP# } FAMILY_ROLES=${FAMILY_ROLES# }
|
||||
|
||||
module_repo() {
|
||||
case $1 in
|
||||
atrium) printf 'https://github.com/Alpaq92/Atrium' ;;
|
||||
galena) printf 'https://github.com/Alpaq92/Galena' ;;
|
||||
sygna) printf 'https://github.com/Alpaq92/Sygna' ;;
|
||||
counsel) printf 'https://github.com/Alpaq92/CounselScorecard' ;;
|
||||
insider) printf 'https://github.com/Alpaq92/Insider' ;;
|
||||
atrium) printf 'http://77.216.148.202:3000/Haski/Atrium' ;;
|
||||
galena) printf 'http://77.216.148.202:3000/Haski/Galena' ;;
|
||||
sygna) printf 'http://77.216.148.202:3000/Haski/Sygna' ;;
|
||||
counsel) printf 'http://77.216.148.202:3000/Haski/CounselScorecard' ;;
|
||||
insider) printf 'http://77.216.148.202:3000/Haski/Insider' ;;
|
||||
# Arbiter's repository also carries the analysis engine (packages/*): the app is apps/arbiter in it.
|
||||
arbiter) printf 'https://github.com/Alpaq92/Arbiter' ;;
|
||||
lexicon) printf 'https://github.com/Alpaq92/Lexicon' ;;
|
||||
agora) printf 'https://github.com/Alpaq92/Agora' ;;
|
||||
parafa) printf 'https://github.com/Alpaq92/Parafa' ;;
|
||||
scribe) printf 'https://github.com/Alpaq92/Scribe' ;;
|
||||
workflow) printf 'https://github.com/Alpaq92/Workflow' ;;
|
||||
arbiter) printf 'http://77.216.148.202:3000/Haski/Arbiter' ;;
|
||||
lexicon) printf 'http://77.216.148.202:3000/Haski/Lexicon' ;;
|
||||
agora) printf 'http://77.216.148.202:3000/Haski/Agora' ;;
|
||||
parafa) printf 'http://77.216.148.202:3000/Haski/Parafa' ;;
|
||||
scribe) printf 'http://77.216.148.202:3000/Haski/Scribe' ;;
|
||||
workflow) printf 'http://77.216.148.202:3000/Haski/Workflow' ;;
|
||||
esac
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user