[daily secrets] Secret Usage Analysis — 2026-05-16 #32670
Closed
Replies: 1 comment
-
|
This discussion has been marked as outdated by Daily Secrets Analysis Agent. A newer discussion is available at Discussion #32869. |
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.
-
Date: 2026-05-16
Workflow Files Analyzed: 228
Run: §25968906962
📊 Executive Summary
secrets.*referencesgithub.tokenreferences🛡️ Security Posture
✅ Redaction System: All 228 workflows include
redact_secretssteps✅ Token Cascades: 856 instances of
GH_AW_GITHUB_MCP_SERVER_TOKEN || GH_AW_GITHUB_TOKEN || GITHUB_TOKENfallback chains✅ Permission Blocks: All 228 workflows define explicit
permissions:blocks✅ Secrets in Outputs: 38 grep matches investigated — confirmed false positives (secrets passed as
env:vars to steps, not exposed in job outputs)✅ Expression Injection: 3,804
github.event.*usages are all via safeGH_AW_EXPR_*environment variable extraction pattern — no direct interpolation risks🎯 Key Findings
redact_secretsstep and explicit permissions — excellent baseline security posture.GH_AW_GITHUB_TOKEN(2,938) andGITHUB_TOKEN(2,873) account for ~57% of all secret references, consistent with GitHub API access patterns.ANTHROPIC_API_KEY(249),OPENAI_API_KEY(73),CODEX_API_KEY(72),GEMINI_API_KEY(5), andOPENROUTER_API_KEY(1) indicate multi-engine workflow support.💡 Recommendations
SLACK_BOT_TOKEN(1),OPENROUTER_API_KEY(1),CONTEXT(2),AZURE_*(2 each) — verify these are still needed or remove to reduce attack surface.GH_AW_OTEL_SENTRY_ENDPOINT,GH_AW_OTEL_SENTRY_AUTHORIZATION,GH_AW_OTEL_GRAFANA_ENDPOINT,GH_AW_OTEL_GRAFANA_AUTHORIZATION— the high usage (1,831 refs) makes these critical secrets.GH_AW_SIDE_REPO_PAT: Only 19 usages — verify this cross-repo PAT has minimum required scope.🔑 Top 20 Secrets by Usage
GH_AW_GITHUB_TOKENGITHUB_TOKENGH_AW_GITHUB_MCP_SERVER_TOKENGH_AW_OTEL_SENTRY_AUTHORIZATIONGH_AW_OTEL_GRAFANA_AUTHORIZATIONGH_AW_OTEL_SENTRY_ENDPOINTCOPILOT_GITHUB_TOKENANTHROPIC_API_KEYGH_AW_OTEL_GRAFANA_ENDPOINTOPENAI_API_KEYCODEX_API_KEYGH_AW_CI_TRIGGER_TOKENGH_AW_SIDE_REPO_PATGH_AW_AGENT_TOKENTAVILY_API_KEYGH_AW_PROJECT_GITHUB_TOKENSENTRY_OPENAI_API_KEYSENTRY_ACCESS_TOKENNOTION_API_TOKENGH_AW_OTEL_HEADERS📖 Reference Documentation
scratchpad/secrets-yml.mdactions/setup/js/redact_secrets.cjsGenerated: 2026-05-16 17:56 UTC
References: §25968906962
Beta Was this translation helpful? Give feedback.
All reactions