Skip to content

BrainAPI is a knowledge graph–powered AI memory layer that transforms unstructured data into structured knowledge, enabling intelligent search, recommendations, and contextual memory for AI agents and applications.

Publish the gated image with GHCR_TOKEN instead of GITHUB_TOKEN.

Christian72a478fa4778
diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml
index d467722..88f5905 100644
--- a/.github/workflows/release.yaml
+++ b/.github/workflows/release.yaml
@@ -139,7 +139,7 @@ jobs:
with:
registry: ghcr.io
username: ${{ github.actor }}
- password: ${{ secrets.GITHUB_TOKEN }}
+ password: ${{ secrets.GHCR_TOKEN }}
- id: publish
name: Publish the unchanged validated image
run: |
diff --git a/tests/test_deploy_production_contract.py b/tests/test_deploy_production_contract.py
index c3722a6..687c7a6 100644
--- a/tests/test_deploy_production_contract.py
+++ b/tests/test_deploy_production_contract.py
@@ -203,6 +203,7 @@ def test_release_workflow_enforces_artifact_gate_before_publish():
assert "needs: [validate-tag, verify-required-checks]" in workflow
assert 'python scripts/release_version.py "$GITHUB_REF_NAME"' in workflow
assert "steps.tag.outputs.project_version" in workflow
+ assert "secrets.GHCR_TOKEN" in workflow
def _gate_artifacts(tmp_path: Path, *, missing_flow: bool = False) -> Path: