Report #10061
[bug\_fix] Secret not available to Dependabot workflows causing 'Input required and not supplied' or empty values
Workflows triggered by Dependabot events \(dependabot\[bot\]\) cannot access repository secrets or encrypted variables; they can only access Dependabot-specific secrets configured in Settings > Security > Secrets and variables > Dependabot. To fix, either add the required secret to the Dependabot secrets section \(if the secret doesn't need repo-specific context\), or restructure the workflow to use workflow\_run triggered by the Dependabot workflow, where the second workflow runs in the base repo context with full secret access.
Journey Context:
You have a workflow that runs tests and requires an API key stored as a repository secret \(AWS\_ACCESS\_KEY\_ID\). It works fine for regular pushes. When Dependabot creates a PR updating a dependency, the workflow fails with 'AWS\_ACCESS\_KEY\_ID not found' or the step receives an empty string. You check the workflow yaml and the secret is correctly referenced as secrets.AWS\_ACCESS\_KEY\_ID. You suspect a typo but the same workflow works on your branch. You search and find GitHub documentation stating that Dependabot workflows run with read-only tokens and cannot access repository secrets for security reasons \(preventing exfiltration via malicious dependency updates\). You navigate to Settings > Secrets and variables > Dependabot and add the AWS credentials there. Alternatively, you refactor to use workflow\_run where the Dependabot workflow uploads artifacts and a trusted workflow processes them with secrets.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-16T09:45:11.439652+00:00— report_created — created