From a7c56122fbabe62204bfcbb2246e6c079eedc887 Mon Sep 17 00:00:00 2001 From: Ivan Kuznetsov Date: Fri, 31 Jul 2026 20:20:57 +0100 Subject: [PATCH] fix(screenote): configure protected integration endpoint --- .github/workflows/agent-platforms.yml | 1 + tests/test_screenote_cli_contract.py | 8 ++++++++ 2 files changed, 9 insertions(+) diff --git a/.github/workflows/agent-platforms.yml b/.github/workflows/agent-platforms.yml index e96cc4a..0c8ef7a 100644 --- a/.github/workflows/agent-platforms.yml +++ b/.github/workflows/agent-platforms.yml @@ -82,6 +82,7 @@ jobs: runs-on: ubuntu-latest environment: screenote-integration env: + SCREENOTE_BASE_URL: "https://screenote.ai" SCREENOTE_TOKEN: ${{ secrets.SCREENOTE_TOKEN }} SCREENOTE_PROJECT: ${{ secrets.SCREENOTE_PROJECT }} SCREENOTE_TEST_PAGE_ID: ${{ secrets.SCREENOTE_TEST_PAGE_ID }} diff --git a/tests/test_screenote_cli_contract.py b/tests/test_screenote_cli_contract.py index 1cb8a36..9b31797 100644 --- a/tests/test_screenote_cli_contract.py +++ b/tests/test_screenote_cli_contract.py @@ -25,6 +25,7 @@ PLUGIN_ROOT = REPO_ROOT / "plugins/screenote" LAUNCHER = PLUGIN_ROOT / "scripts/screenote-cli.sh" SHIPPED_FLOW = PLUGIN_ROOT / "scripts/screenote_flow.py" +AGENT_PLATFORMS_WORKFLOW = REPO_ROOT / ".github/workflows/agent-platforms.yml" FIXTURE_ROOT = REPO_ROOT / "tests/fixtures/screenote-cli" SCENARIOS = FIXTURE_ROOT / "scenarios" APPROVED = {tuple(command.split()) for command in WORKFLOW_CONTRACT["commands"]} @@ -48,6 +49,13 @@ class ScreenoteCliContractTests(unittest.TestCase): + def test_protected_integration_configures_the_trusted_production_endpoint(self): + workflow = AGENT_PLATFORMS_WORKFLOW.read_text(encoding="utf-8") + screenote_job = workflow.split("\n screenote-live:\n", 1)[1] + job_configuration = screenote_job.split("\n steps:\n", 1)[0] + + self.assertIn('SCREENOTE_BASE_URL: "https://screenote.ai"', job_configuration) + def _run(self, arguments): temporary = tempfile.TemporaryDirectory() self.addCleanup(temporary.cleanup)