Open-source AI Security Operations Center: alert fusion, LLM-agent triage, MITRE ATT&CK investigation, and a replayable decision ledger for every agent step. Self-hostable, runs with no API keys, MIT licensed. Ships an MCP server for Claude, Cursor and Continue.
Python agentic-aiai-securityalert-triageblue-teamcybersecuritydetection-engineeringincident-responselanggraphllm-agentsmcpmitre-attackmodel-context-protocolpurple-teamsecurity-operationsself-hostedsiemsoarsocthreat-detectionthreat-intelligence
ci(deploy): skip Fly deploy when the demo app is not provisioned (#524)
Beenu Arora86f80911e8f7
diff --git a/.github/workflows/deploy-api.yml b/.github/workflows/deploy-api.ymlindex 407aba269..7eb93d8f6 100644--- a/.github/workflows/deploy-api.yml+++ b/.github/workflows/deploy-api.yml@@ -34,7 +34,28 @@ jobs:- name: Install flyctluses: superfly/flyctl-actions/setup-flyctl@ed8efb33836e8b2096c7fd3ba1c8afe303ebbff1 # master+ # Deploy only when the demo app is actually provisioned. The public Fly+ # demo can be torn down / re-provisioned out-of-band; when the app is+ # absent (or no token is configured) a hard `flyctl deploy` fails the run+ # with "app not found" and turns main red for an infra state that isn't a+ # code problem. Gate the remaining steps instead — deploy auto-resumes as+ # soon as the app exists again.+ - name: Check Fly app provisioned+ id: flycheck+ run: |+ set -uo pipefail+ if [ -z "${FLY_API_TOKEN:-}" ]; then+ echo "::warning title=deploy-api::FLY_API_TOKEN not set — skipping deploy (demo not provisioned)."+ echo "deploy=false" >> "$GITHUB_OUTPUT"+ elif ! flyctl status --app aisoc-demo-api >/dev/null 2>&1; then+ echo "::warning title=deploy-api::Fly app 'aisoc-demo-api' not found — skipping deploy. Recreate it (flyctl apps create aisoc-demo-api) or refresh FLY_API_TOKEN to auto-resume deploys."+ echo "deploy=false" >> "$GITHUB_OUTPUT"+ else+ echo "deploy=true" >> "$GITHUB_OUTPUT"+ fi+- name: Set up Python+ if: steps.flycheck.outputs.deploy == 'true'uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0with:python-version: "3.11"@@ -44,6 +65,7 @@ jobs:# that dir is invisible to the image. /api/v1/marketplace returns 503# without index.json present at /app/marketplace/index.json in the image.- name: Stage marketplace/index.json into services/api+ if: steps.flycheck.outputs.deploy == 'true'run: |python3 -m pip install --quiet pyyamlpython3 scripts/build_marketplace.py@@ -57,6 +79,7 @@ jobs:# absolute path to the fly.toml so flyctl still finds it. This mirrors# the deploy_app() helper in infra/fly/fly-demo-deploy.sh.- name: Deploy to Fly (context=services/api)+ if: steps.flycheck.outputs.deploy == 'true'working-directory: services/apirun: |flyctl deploy \diff --git a/.github/workflows/deploy-web.yml b/.github/workflows/deploy-web.ymlindex a5923a950..7abee24b5 100644--- a/.github/workflows/deploy-web.yml+++ b/.github/workflows/deploy-web.yml@@ -35,6 +35,21 @@ jobs:- name: Deploy to Flyrun: |+ set -uo pipefail+ # Deploy only when the demo app is actually provisioned. The public+ # Fly demo can be torn down / re-provisioned out-of-band; when the+ # app is absent (or no token is configured) a hard `flyctl deploy`+ # fails the run with "app not found" and turns main red for an+ # infra state that isn't a code problem. Skip cleanly instead — the+ # deploy auto-resumes as soon as the app exists again.+ if [ -z "${FLY_API_TOKEN:-}" ]; then+ echo "::warning title=deploy-web::FLY_API_TOKEN not set — skipping deploy (demo not provisioned)."+ exit 0+ fi+ if ! flyctl status --app aisoc-demo-web >/dev/null 2>&1; then+ echo "::warning title=deploy-web::Fly app 'aisoc-demo-web' not found — skipping deploy. Recreate it (flyctl apps create aisoc-demo-web) or refresh FLY_API_TOKEN to auto-resume deploys."+ exit 0+ fiflyctl deploy \--remote-only \--dockerfile apps/web/Dockerfile \