[daily secrets] π Secrets Analysis Report β 2026-07-18 #46466
Closed
Replies: 1 comment
-
|
This discussion has been marked as outdated by Daily Secrets Analysis Agent. A newer discussion is available at Discussion #46634. |
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-07-18
Workflow Files Analyzed: 258
Run: Β§29654770275
π Executive Summary
secrets.*referencesgithub.tokenreferencesπ‘οΈ Security Posture
β Redaction System: 258/258 workflows (100%) have
β οΈ Template expressions: 4,620
redact_secretsstepsβ Token Cascades: 929 instances of fallback chains (
GH_AW_GITHUB_MCP_SERVER_TOKEN || GH_AW_GITHUB_TOKEN || GITHUB_TOKEN)β Permission Blocks: 258/258 workflows (100%) have explicit
permissions:definitionsβ Secrets in job outputs: 33 matches were OTEL header constructs (expected pattern β not raw secret leakage)
github.event.*references outsideenv:blocks (standard compiled pattern β verify no raw user input is unsanitized)π― Key Findings
redact_secretsstep and an explicitpermissions:block β the security baseline is uniformly applied.secrets.cjs(258 hits) is a grep artifact fromredact_secrets.cjsfile paths β not a real secret. Actual unique secret count is 40.GITHUB_TOKEN(4,272) +GH_AW_GITHUB_TOKEN(3,654) account for ~96% of all GitHub-token references, with the 3-tier cascade (GH_AW_GITHUB_MCP_SERVER_TOKEN || GH_AW_GITHUB_TOKEN || GITHUB_TOKEN) appearing 929 times β healthy fallback pattern.GH_AW_OTEL_*secrets.π‘ Recommendations
secrets.cjsmatch (fromrequire(...redact_secrets.cjs)) should be excluded from grep patterns β usegrep -P "secrets\.[A-Z]"to restrict to uppercase secret names.github.event.*outside env: While the 4,620 occurrences follow the standard compiled template pattern (contextual expressions inGH_AW_EXPR_*env vars), a periodic review should confirm no rawgithub.event.values flow unfiltered into shell commands.CONTEXTsecret (2 usages): This generic name is opaque β validate it is still needed and rename to something descriptive.AZURE_CLIENT_ID,AZURE_CLIENT_SECRET,AZURE_TENANT_ID) appear only in 2 workflows each β confirm these are intentionally scoped and not overlooked.π Top 15 Secrets by Usage
GITHUB_TOKENGH_AW_GITHUB_TOKENGH_AW_GITHUB_MCP_SERVER_TOKENCOPILOT_GITHUB_TOKENGH_AW_OTEL_SENTRY_AUTHORIZATIONGH_AW_OTEL_SENTRY_ENDPOINTGH_AW_OTEL_GRAFANA_AUTHORIZATIONGH_AW_OTEL_GRAFANA_ENDPOINTANTHROPIC_API_KEYOPENAI_API_KEYCODEX_API_KEYGH_AW_CI_TRIGGER_TOKENGH_AW_SIDE_REPO_PATGH_AW_AGENT_TOKENTAVILY_API_KEYπ Full Secret Inventory (40 secrets)
GitHub Tokens (6):
GITHUB_TOKEN,GH_AW_GITHUB_TOKEN,GH_AW_GITHUB_MCP_SERVER_TOKEN,COPILOT_GITHUB_TOKEN,GH_AW_PROJECT_GITHUB_TOKEN,GH_AW_SIDE_REPO_PATAI Providers (7):
ANTHROPIC_API_KEY,OPENAI_API_KEY,CODEX_API_KEY,GEMINI_API_KEY,OPENROUTER_API_KEY,SENTRY_OPENAI_API_KEY,FOUNDRY_API_KEY/FOUNDRY_OPENAI_ENDPOINTObservability (13):
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,DD_API_KEY,DD_APPLICATION_KEY,DD_APP_KEY,DD_SITE,GRAFANA_SERVICE_ACCOUNT_TOKEN,GRAFANA_URL,SENTRY_ACCESS_TOKENCloud/Infrastructure (3):
AZURE_CLIENT_ID,AZURE_CLIENT_SECRET,AZURE_TENANT_IDOther (9):
GH_AW_CI_TRIGGER_TOKEN,GH_AW_AGENT_TOKEN,AWI_MAINTENANCE_TOKEN,TAVILY_API_KEY,BRAVE_API_KEY,SLACK_BOT_TOKEN,NOTION_API_TOKEN,ANTIGRAVITY_API_KEY,CONTEXTπ Reference Documentation
scratchpad/secrets-yml.mdactions/setup/js/redact_secrets.cjsGenerated: 2026-07-18 17:55 UTC
Workflow: Β§29654770275
Beta Was this translation helpful? Give feedback.
All reactions