[daily secrets] Secret Usage Analysis — 2026-06-28 #42114
Closed
Replies: 1 comment
-
|
This discussion has been marked as outdated by Daily Secrets Analysis Agent. A newer discussion is available at Discussion #42320. |
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-28
Workflow Files Analyzed: 257
Run: §28330964736
📊 Executive Summary
secrets.*referencesgithub.tokenreferences🛡️ Security Posture
✅ Universal Redaction: 100% of workflows include
redact_secretssteps — no unmasked leakage risk✅ Universal Permissions: 100% of workflows define explicit
permissions:blocks — least-privilege enforced✅ Token Cascades: 926 instances of the 3-tier fallback chain (
GH_AW_GITHUB_MCP_SERVER_TOKEN→GH_AW_GITHUB_TOKEN→GITHUB_TOKEN) — resilient token resolution✅ No Secrets in Outputs: Confirmed no job-level
outputs:expose secret values✅ No Template Injection: Apparent
github.event.*patterns in YAML are Handlebars templates within agent system prompts, not GitHub Actions expressions — no injection risk🎯 Key Findings
GitHub auth tokens dominate (~60% of all refs): Across 9 distinct GitHub tokens,
secrets.GITHUB_TOKEN(4,227 lines) andsecrets.GH_AW_GITHUB_TOKEN(3,320 lines) together account for the vast majority of all secret references — expected for an agentic workflow platform.Multi-provider AI key coverage: 7 distinct AI providers are configured — GitHub Copilot leads at 179 workflows, Anthropic/Claude at 62 workflows, with OpenAI, Codex, Gemini, Foundry, and OpenRouter also present, demonstrating strong provider resilience.
Observability secrets are well-structured: 1,966+ references across Sentry, Grafana, and Datadog form a dedicated OTEL tier with
GH_AW_OTEL_*prefix convention — clean separation from core auth tokens.Secret naming conventions are consistent: The
GH_AW_OTEL_*prefix for observability,GH_AW_*for workflow-specific secrets, and provider-name suffixes (_API_KEY,_TOKEN) show a mature naming taxonomy across all 39 secrets.💡 Recommendations
Audit low-use secrets: Several secrets appear in very few workflows —
AWI_MAINTENANCE_TOKEN(3 refs),GH_AW_PROJECT_GITHUB_TOKEN(7 refs),FOUNDRY_API_KEY(3 refs),AZURE_*(2 refs each),CONTEXT(2 refs). Confirm these are still needed or consider removal.Review
CONTEXTsecret: Only 2 occurrences ofsecrets.CONTEXT— unusual name; verify this is not a miscategorized variable or leftover from an older workflow.Consolidate Datadog entries:
DD_API_KEY,DD_APP_KEY, andDD_APPLICATION_KEYappear to overlap in purpose (8–10 refs each). Confirm these are intentionally distinct or consolidate to reduce secret sprawl.🔑 Top 15 Secrets by Line Count
GITHUB_TOKENGH_AW_GITHUB_TOKENGH_AW_GITHUB_MCP_SERVER_TOKENGH_AW_OTEL_SENTRY_AUTHORIZATIONGH_AW_OTEL_SENTRY_ENDPOINTGH_AW_OTEL_GRAFANA_AUTHORIZATIONCOPILOT_GITHUB_TOKENANTHROPIC_API_KEYGH_AW_OTEL_GRAFANA_ENDPOINTOPENAI_API_KEYCODEX_API_KEYGH_AW_CI_TRIGGER_TOKENSENTRY_ACCESS_TOKENDD_APP_KEYDD_APPLICATION_KEY🗂️ Secret Inventory by Category (39 total)
GitHub Auth (9 secrets)
GITHUB_TOKEN·GH_AW_GITHUB_TOKEN·GH_AW_GITHUB_MCP_SERVER_TOKEN·COPILOT_GITHUB_TOKEN·GH_AW_CI_TRIGGER_TOKEN·GH_AW_SIDE_REPO_PAT·GH_AW_AGENT_TOKEN·GH_AW_PROJECT_GITHUB_TOKEN·AWI_MAINTENANCE_TOKENAI Provider Keys (8 secrets)
ANTHROPIC_API_KEY·OPENAI_API_KEY·CODEX_API_KEY·GEMINI_API_KEY·FOUNDRY_API_KEY·FOUNDRY_OPENAI_ENDPOINT·OPENROUTER_API_KEY·ANTIGRAVITY_API_KEYObservability / OTEL (14 secrets)
GH_AW_OTEL_SENTRY_AUTHORIZATION·GH_AW_OTEL_SENTRY_ENDPOINT·GH_AW_OTEL_GRAFANA_AUTHORIZATION·GH_AW_OTEL_GRAFANA_ENDPOINT·GH_AW_OTEL_DATADOG_API_KEY·GH_AW_OTEL_DATADOG_ENDPOINT·SENTRY_ACCESS_TOKEN·SENTRY_OPENAI_API_KEY·DD_API_KEY·DD_APP_KEY·DD_APPLICATION_KEY·DD_SITE·GRAFANA_SERVICE_ACCOUNT_TOKEN·GRAFANA_URLThird-party APIs (4 secrets)
TAVILY_API_KEY·NOTION_API_TOKEN·BRAVE_API_KEY·SLACK_BOT_TOKENCloud / Identity (3 secrets)
AZURE_CLIENT_ID·AZURE_CLIENT_SECRET·AZURE_TENANT_IDInternal / Other (1 secret)
CONTEXT🤖 AI Provider Workflow Coverage
COPILOT_GITHUB_TOKENANTHROPIC_API_KEYOPENAI_API_KEYCODEX_API_KEYGEMINI_API_KEYFOUNDRY_API_KEYOPENROUTER_API_KEY📖 Reference Documentation
scratchpad/secrets-yml.mdactions/setup/js/redact_secrets.cjsGenerated: 2026-06-28 17:59 UTC
Workflow: §28330964736
Beta Was this translation helpful? Give feedback.
All reactions