Beamfar

Deploy markers in GitHub Actions: tie outages to the release that caused them

When an outage alert arrives, the first question in chat is almost always “did someone just deploy?”. Without deploy markers on the monitoring timeline, the person on call has to check GitHub Actions, hosting dashboards, CMS update logs and chat history before deciding whether to roll back. Sending a small deploy marker from your GitHub Actions workflow puts the release, commit reference and actor directly onto the site’s monitoring timeline alongside DNS, certificate, redirect and SEO changes.

Why deploy markers cut triage time

External uptime checks tell you what broke: a 502 Bad Gateway, a TLS handshake error, a redirect loop or a missing checkout phrase. They do not know what your team pushed three minutes earlier.

Most production incidents follow a change — a code release, an environment variable edit, a reverse-proxy config tweak or a dependency update. When your deployment workflow posts a structured marker at the end of a release:

  • The incident alert carries context. Instead of opening four dashboards, the responder immediately sees that release v2.4.1 (a1b2c3d4e5f6) ran twelve minutes before two regions reported HTTP 500.
  • Rollbacks happen faster. If a broken deploy is clearly on the timeline right before errors started, reverting the commit is a clear first step rather than a guess.
  • Failed deploys leave a trail too. A workflow that fails halfway through a database migration or asset upload can still leave a production site half-updated. Recording a failed deploy marker lets responders see an incomplete rollout at a glance.
  • Silent SEO regressions get a timestamp. If a release accidentally ships a staging noindex tag or a bad robots.txt, seeing the release marker right next to the search-signal change in the timeline points straight to the pull request that introduced it. See Noindex after a deploy.

One important discipline applies to every monitoring tool: timing is circumstantial evidence, not proof. A site can go down ten minutes after a release because the hosting provider had a network outage, not because your commit had a bug. Treat a deploy marker as the highest-priority lead to verify against probe evidence (status codes, DNS answers, TLS errors and server logs), never as an automatic verdict.

Check it now. The free site check runs the monitoring’s own checks once on a public address: its answer, redirects, certificate, DNS, noindex, robots.txt, canonical and domain expiry. No account, and the address is not stored.

Design rules for safe CI deploy markers

Before adding any monitoring step to a production workflow, check four safety properties so the marker step never weakens security or blocks a release.

1. Use a least-privilege, site-bound key

Never drop an organisation-wide write API key into a repository secret just to post deploy timestamps. If a build runner or fork workflow ever leaked that token, an attacker could alter monitors, pause alerts or read data for unrelated client sites.

Use a key scoped strictly to posting change markers for one site (events:write). A key with events:write cannot read your site list, inspect other clients, change alert channels or touch billing. Store it as an encrypted repository or environment secret in GitHub Actions (for example BEAMFAR_DEPLOY_KEY) and pass it only through environment variables or action inputs, never printed to logs.

2. Keep the step deploy-safe by default

Monitoring should observe releases, not break them during a transient network hiccup. By default, a deploy marker step should emit a clear workflow warning if the monitoring API times out or returns a 5xx, while letting the deployment job complete cleanly (fail-on-error: "false"). Only turn on strict failure when your compliance process explicitly requires every release to register before traffic shifts.

3. Make every call idempotent on retries

GitHub Actions lets engineers re-run failed jobs or retry steps. If your deploy marker step sends a plain POST with no deduplication key, retrying a workflow creates duplicate release entries on the site timeline.

Pass an idempotency identifier derived from GitHub’s run metadata — specifically the run ID, attempt number and marker state (such as gha:<run_id>:<attempt>:<state>) — in both the Idempotency-Key header and the payload’s external_id. Re-running the same step then returns the existing marker (HTTP 200, created: false) instead of cluttering the timeline.

4. Enforce HTTPS and refuse redirects

When a CI step sends an Authorization: Bearer header, it should require https:// for any non-local host and refuse HTTP 3xx redirects. Following a redirect automatically risks forwarding a bearer token to an unintended host.

Set up GitHub Actions deploy markers in two minutes

You can record markers with the official composite action beamfar/github-action@v1 (zero third-party dependencies — Python standard library only) or with a plain curl request to POST https://app.beamfar.com/api/v1/change-markers.

Step 1: Create a site-bound key

  1. Open Integrations & API in Beamfar and select Deploy changes (or create a key with scope events:write under REST API).
  2. Choose the monitored site this repository deploys to.
  3. Copy the bfk_... secret (shown once) and store it in your GitHub repository under Settings -> Secrets and variables -> Actions as BEAMFAR_DEPLOY_KEY.
  4. Note the monitored site’s hostname (such as www.example.com) or its site_... ID.

Step 2: Add the action to .github/workflows/deploy.yml

Add the deploy marker right after your real deployment step, plus an optional if: failure() step so broken rollouts are recorded too:

name: Deploy Production

on:
  push:
    branches: [main]

jobs:
  deploy:
    runs-on: ubuntu-latest
    steps:
      - name: Checkout repository
        uses: actions/checkout@v4

      - name: Deploy application
        run: ./scripts/deploy.sh

      - name: Report deploy to Beamfar
        uses: beamfar/github-action@v1
        with:
          api-key: ${{ secrets.BEAMFAR_DEPLOY_KEY }}
          site-id: "www.example.com"

      - name: Report failed deploy to Beamfar
        if: failure()
        uses: beamfar/github-action@v1
        with:
          api-key: ${{ secrets.BEAMFAR_DEPLOY_KEY }}
          site-id: "www.example.com"
          state: "failed"

When title, ref, actor and external-id are omitted, the action fills them automatically from GITHUB_REF_NAME, GITHUB_SHA (short 12-character SHA or tag name), GITHUB_WORKFLOW, GITHUB_ACTOR, GITHUB_RUN_ID and GITHUB_RUN_ATTEMPT.

Optional fields for clearer timelines

InputDefaultWhen to set it explicitly
kinddeployUse release for tagged versions, config for infrastructure or CDN rule updates, or plugin_update / theme_update / core_update for automated CMS pipelines
statesucceededSet started before a long migration and succeeded or failed after
titleAuto from branch, SHA, workflowPass a short human summary such as "Checkout tax fix (v2.4.1)"
urlNoneOptional HTTPS release-notes link on the monitored site’s own domain (off-domain URLs are ignored)
fail-on-errorfalseSet "true" only if you want a failed marker call to fail the job

Alternative: plain curl for non-GitHub pipelines

If you deploy from GitLab CI, Bitbucket Pipelines, CircleCI or a shell script, post directly to the REST API with the same site-bound events:write key:

curl -fsS -X POST https://app.beamfar.com/api/v1/change-markers \
  -H "Authorization: Bearer ${BEAMFAR_DEPLOY_KEY}" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: deploy-${CI_PIPELINE_ID}-succeeded" \
  -d '{
    "site": "www.example.com",
    "kind": "deploy",
    "state": "succeeded",
    "title": "Production release v2.4.1",
    "ref": "v2.4.1",
    "external_id": "deploy-'"${CI_PIPELINE_ID}"'-succeeded"
  }'

Pairing deploy markers with triage and AI assistants

Once deploy markers are flowing, combine them with your incident checklist:

  1. Read the probe evidence first (HTTP status, TLS handshake, DNS record, two-region confirmation). See Website down: a first-15-minutes triage checklist.
  2. Check the timeline window around the failure. Look at whether a deploy marker, DNS record change, certificate renewal or redirect change landed in the hour before the first failed probe.
  3. Query it from your editor or terminal. If you connect Claude Code, Cursor or VS Code to the Beamfar MCP server, the read-only what_changed and explain_incident tools include your GitHub Actions deploy markers automatically. See Connect an AI assistant to website monitoring with MCP.

How Beamfar helps

Deploy markers and site-bound events:write keys are included on every Beamfar plan, including Free (within the plan’s monthly API request quota, starting at 3,000 requests a month on Free). Every recorded marker appears on the site’s What changed timeline, on the Changed just before line of incident alerts when an outage opens shortly after a deploy, and inside Why this happened explanations alongside DNS, certificate, redirect and SEO changes. On plans with security scans, a succeeded deploy marker can also queue a post-deploy check subject to cooldowns. You can inspect the public action source at github.com/beamfar/github-action, read the REST API documentation or run a free site check first.

Questions

Does a deploy marker key give GitHub Actions write access to my account?

No. An events:write key is bound to one monitored site and can only record change markers for that site. It cannot list other sites, read organisation data, alter alert channels, change monitors or touch billing.

Will a temporary API timeout break my GitHub Actions deployment?

Not by default. The fail-on-error input defaults to false, so a network error logs a GitHub Actions warning and exits zero without blocking your release.

Do deploy markers work on the Free plan?

Yes. The REST API, site-bound events:write keys and the GitHub Action work on every plan, Free included, counted against the organisation’s monthly API request quota (3,000 requests a month on Free).

Does a deploy marker prove that the deploy caused the outage?

No. Timing alone is circumstantial evidence. Always compare the marker timestamp against the two-region probe evidence, HTTP status codes, DNS answers and application logs before rolling back.

Sources

Read on . Standards and vendor pages change; confirm the current text before you rely on it.

Terms used in this guide

  • Uptime monitoringUptime monitoring requests a website from outside at intervals and alerts when it fails to answer. What it measures, what it misses and how it is confirmed.
  • IncidentAn incident is a period in which a monitored site is confirmed to be failing, from first confirmation to recovery. What an incident record should hold.
  • HTTP status codeAn HTTP status code is the three-digit number that opens a server’s response: 2xx success, 3xx redirect, 4xx client error, 5xx server error.
  • NoindexNoindex is a robots directive, in a meta tag or a header, telling search engines not to keep a page in their index. How Google reads it.

Try it on your own sites.

Add your sites: checking starts as soon as you do.

No card for the Free plan.