[daily secrets] Daily Secrets Analysis — 2026-04-21 #27704
Closed
Replies: 1 comment
-
|
This discussion has been marked as outdated by Daily Secrets Analysis Agent. A newer discussion is available at Discussion #27911. |
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-04-21
Workflow Files Analyzed: 197
Run: §24749494581
📊 Executive Summary
secrets.*references (total lines)github.tokenreferencesAll 197 compiled workflows use secrets — consistent with the architecture where every agent workflow requires at minimum a GitHub token.
🛡️ Security Posture
redact_secrets)permissions:blocksoutputs:blocksAll three baseline security controls are fully deployed across 100% of workflow files. No secrets are leaked through job outputs — secrets only appear in
env:blocks where they are consumed directly by steps.🔑 Token Architecture
The token fallback chain (
GH_AW_GITHUB_MCP_SERVER_TOKEN || GH_AW_GITHUB_TOKEN || GITHUB_TOKEN) is used in all 197 workflows, providing a consistent least-privilege escalation path:secrets.GH_AW_GITHUB_MCP_SERVER_TOKEN— dedicated MCP server token (narrowest scope)secrets.GH_AW_GITHUB_TOKEN— general purpose PATsecrets.GITHUB_TOKEN— built-in workflow token (fallback)🤖 Engine Distribution (by Secret Usage)
COPILOT_GITHUB_TOKEN(316 refs)ANTHROPIC_API_KEY(224 refs)OPENAI_API_KEY+CODEX_API_KEY(60 refs each)GEMINI_API_KEY(4 refs)🔑 Top 10 Secrets by Usage
GITHUB_TOKENGH_AW_GITHUB_TOKENGH_AW_GITHUB_MCP_SERVER_TOKENCOPILOT_GITHUB_TOKENANTHROPIC_API_KEYGH_AW_OTEL_ENDPOINTOPENAI_API_KEYCODEX_API_KEYGH_AW_OTEL_HEADERSGH_AW_CI_TRIGGER_TOKEN📋 Full Secret Inventory (30 unique types)
GITHUB_TOKENGH_AW_GITHUB_TOKENGH_AW_GITHUB_MCP_SERVER_TOKENCOPILOT_GITHUB_TOKENANTHROPIC_API_KEYGH_AW_OTEL_ENDPOINTOPENAI_API_KEYCODEX_API_KEYGH_AW_OTEL_HEADERSGH_AW_CI_TRIGGER_TOKENGH_AW_SIDE_REPO_PATGH_AW_AGENT_TOKENTAVILY_API_KEYGH_AW_PROJECT_GITHUB_TOKENNOTION_API_TOKENGEMINI_API_KEYBRAVE_API_KEYDD_SITEDD_APPLICATION_KEYDD_API_KEYSENTRY_OPENAI_API_KEYSENTRY_API_KEYSENTRY_ACCESS_TOKENCONTEXTAZURE_TENANT_IDAZURE_CLIENT_SECRETAZURE_CLIENT_IDSLACK_BOT_TOKENGH_AW_PLUGINS_TOKEN🔍 Security Checks Detail
Template Expression Usage
github.event.*expressions appear extensively throughout workflow files (2,477 occurrences outside env blocks). These are used in:if:conditions (safe — GitHub Actions evaluates these securely)concurrency.groupexpressions (safe — event IDs are not user-controlled secret content)env:variable assignments mapping event metadata to environment variables (expected pattern)This is the standard gh-aw compiled workflow pattern and does not represent template injection risk — event properties like
issue.number,comment.id, andpull_request.numberare integer IDs, not user-controlled text.Secrets in Job Outputs
0 secrets found in job output definitions. Secrets are only passed via
env:blocks to steps that consume them. This is the correct pattern — secrets are never forwarded as job outputs where they could be read by downstream jobs in unexpected ways.Observability Secrets (OTEL/Datadog/Sentry)
GH_AW_OTEL_ENDPOINT/GH_AW_OTEL_HEADERSfor OpenTelemetry tracingmcp-inspector) uses Datadog (DD_API_KEY, DD_APPLICATION_KEY, DD_SITE)daily-otel-instrumentation-advisor,mcp-inspector)📖 Reference Documentation
scratchpad/secrets-yml.mdactions/setup/js/redact_secrets.cjs🎯 Key Findings
GITHUB_TOKEN+GH_AW_GITHUB_TOKENaccount for ~57% of all secret references (4,929 / 8,713 total if counting token-cascade lines), reflecting the GitHub-centric architecture.ANTHROPIC_API_KEY,OPENAI_API_KEY, etc.) are scoped to the specific workflows that need them, not broadly applied.💡 Recommendations
GH_AW_OTEL_ENDPOINTandGH_AW_OTEL_HEADERSshould be part of the default token cascade pattern.GH_AW_SIDE_REPO_PATusage — 19 occurrences of cross-repo PAT usage; verify all are necessary and have minimal scopes.Generated: 2026-04-21T22:24:05Z
Workflow: daily-secrets
Beta Was this translation helpful? Give feedback.
All reactions