Skip to content

ci: use oz run-cloud with release-docs environment for Grafana token access#217

Open
dannyneira wants to merge 1 commit into
mainfrom
danny/inject-grafana-token
Open

ci: use oz run-cloud with release-docs environment for Grafana token access#217
dannyneira wants to merge 1 commit into
mainfrom
danny/inject-grafana-token

Conversation

@dannyneira

Copy link
Copy Markdown
Member

Summary

Replaces oz-agent-action (local agent run) with a direct oz agent run-cloud call using environment K5KStCm5aYvhfBJb8cHol6, which has DOCS_AGENT_GRAFANA_TOKEN configured. This is the least-privilege approach — the token lives only in the dedicated Oz environment, not in team secrets or GitHub secrets.

Changes

  • Removes dependency on oz-agent-action@v1 (which only supports local runs with no environment support)
  • Installs the stable oz CLI directly from releases.warp.dev
  • Pre-computes the correct command flags (--pr-draft vs --pr-auto-merge, oncall schedule flags) in the prompt so the agent executes cleanly
  • Runs oz agent run-cloud --environment K5KStCm5aYvhfBJb8cHol6 --skill warpdotdev/docs:release_updates

Why run-cloud vs local

oz agent run-cloud supports --environment which injects environment-scoped secrets (including DOCS_AGENT_GRAFANA_TOKEN). The oz agent run (local) used by oz-agent-action does not support environments.

Co-Authored-By: Oz oz-agent@warp.dev

@cla-bot cla-bot Bot added the cla-signed label Jun 12, 2026
@vercel

vercel Bot commented Jun 12, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
docs Ready Ready Preview, Comment Jun 12, 2026 9:49pm

Request Review

oz-for-oss[bot]

This comment was marked as outdated.

…access

Replace oz-agent-action (local run) with oz agent run-cloud using
environment K5KStCm5aYvhfBJb8cHol6, which has DOCS_AGENT_GRAFANA_TOKEN
configured. This is the least-privilege approach: the token lives only
in the dedicated Oz environment, not in team secrets or GitHub secrets.

- Installs oz stable CLI from releases.warp.dev
- Builds the prompt with correct flags pre-computed (pr-draft vs pr-auto-merge,
  oncall flags) so the agent executes the right command directly
- Runs oz agent run-cloud with the environment and release_updates skill

Co-Authored-By: Oz <oz-agent@warp.dev>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant