[daily secrets] π Daily Secrets Analysis Report β 2026-06-25 #41505
Closed
Replies: 1 comment
-
|
This discussion has been marked as outdated by Daily Secrets Analysis Agent. A newer discussion is available at Discussion #41775. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
π Daily Secrets Analysis Report
Date: 2026-06-25
Workflow Files Analyzed: 251
Run: Β§28191350999
π Executive Summary
secrets.*referencesgithub.tokenreferencesDistribution by category:
π‘οΈ Security Posture: β EXCELLENT
permissions:blocksgithub.event.*All
github.event.*expressions are properly sandboxed into environment variables (theGH_AW_EXPR_*pattern), preventing template injection. Embedded Handlebars-style conditionals in prompt text use safe sentinel substitution (__GH_AW_EXPR_*__), not live expression evaluation.π― Key Findings
Uniform security baseline across all 251 workflows β Every compiled workflow applies the same hardened pattern: explicit least-privilege permissions, redaction middleware, and token cascade. This reflects the compiler enforcing policy rather than individual workflow authors.
GitHub auth dominates (64.5% of refs) β The 3-tier token cascade (
secrets.GH_AW_GITHUB_MCP_SERVER_TOKEN || secrets.GH_AW_GITHUB_TOKEN || secrets.GITHUB_TOKEN) is applied in every workflow, generating ~9 references per workflow just for auth. This is expected and intentional.Dual Datadog integration paths detected β
mcp-inspector.lock.ymlandsmoke-otel-backends.lock.ymluse native Datadog SDK secrets (DD_API_KEY,DD_APPLICATION_KEY,DD_SITE) alongside the standardGH_AW_OTEL_DATADOG_*OTEL bridge used by the broader fleet. This is a minor consistency anomaly worth tracking.CONTEXT7_API_KEYis a third-party service key β Used only inmcp-inspector.lock.yml. The grep patternsecrets\.[A-Z_]*extracts this asCONTEXT(stops at7). The full name isCONTEXT7_API_KEY, representing an external API integration specific to that workflow.Observability coverage is broad β Sentry and Grafana OTEL secrets appear across ~232+ workflow invocations each, indicating near-universal observability instrumentation.
π‘ Recommendations
Consolidate Datadog integration β Decide between native DD SDK (
DD_*) and the OTEL bridge (GH_AW_OTEL_DATADOG_*). Having both paths in the fleet increases the secret surface. If migrating to OTEL, retire theDD_*secrets from the 2 outlier workflows.Review
CONTEXT7_API_KEYscoping β Single-workflow secrets are acceptable, but ensuremcp-inspectorhas appropriate permissions scoping and the secret is rotated on the same schedule as other API keys.Monitor AI/LLM key sprawl β Currently 38% of workflows (76/251) use at least one AI/LLM key, with multiple provider keys (
ANTHROPIC_API_KEY,OPENAI_API_KEY,CODEX_API_KEY,GEMINI_API_KEY,FOUNDRY_API_KEY,OPENROUTER_API_KEY) active. As the workflow fleet grows, periodically audit for unused AI provider keys.π Top 10 Secrets by Reference Count
secrets.GITHUB_TOKENsecrets.GH_AW_GITHUB_TOKENgithub.tokensecrets.GH_AW_GITHUB_MCP_SERVER_TOKENsecrets.GH_AW_OTEL_SENTRY_AUTHORIZATIONsecrets.GH_AW_OTEL_SENTRY_ENDPOINTsecrets.GH_AW_OTEL_GRAFANA_AUTHORIZATIONsecrets.COPILOT_GITHUB_TOKENsecrets.GH_AW_OTEL_GRAFANA_ENDPOINTsecrets.ANTHROPIC_API_KEYπ€ AI/LLM Provider Coverage
ANTHROPIC_API_KEYOPENAI_API_KEYCODEX_API_KEYTAVILY_API_KEYSENTRY_OPENAI_API_KEYGEMINI_API_KEYFOUNDRY_API_KEYBRAVE_API_KEYANTIGRAVITY_API_KEYOPENROUTER_API_KEYAnthropic dominates at 229 references across 59 workflows.
π Token Cascade Architecture
All 251 workflows implement the 3-tier token cascade pattern for MCP server auth:
This provides graceful fallback across token types, ensuring workflows can operate with any combination of available secrets. The pattern is compiler-enforced.
π Reference Documentation
scratchpad/secrets-yml.mdactions/setup/js/redact_secrets.cjsGH_AW_GITHUB_MCP_SERVER_TOKENusage in any.lock.ymlGenerated: 2026-06-25T18:24:57Z
Workflow Run: Β§28191350999
Beta Was this translation helpful? Give feedback.
All reactions