Which secret source is used by Dependabot-triggered workflows? #163952
-
Select Topic AreaQuestion BodyI'm looking for official documentation (or confirmation) about which secret source is used in GitHub Actions workflows triggered by Dependabot (i.e., when Based on my testing, it seems that the secret source varies depending on the event type:
Is this behavior documented anywhere? And is there a canonical way to predict or control which secret source is used for a given workflow/event combination? Thanks in advance! |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 1 reply
-
Secrets in GitHub Actions Workflows Triggered by DependabotWhen workflows are triggered by Summary of Behavior by Event Type
Can You Control Which Secret Source Is Used?
Official Documentation References
Important Notes
HOPE IT HELPS :) |
Beta Was this translation helpful? Give feedback.
-
|
The secret source used by Dependabot-triggered workflows in GitHub Actions depends on the event type:
To control the secret source, you can:
The official GitHub documentation covers these details in the following articles: |
Beta Was this translation helpful? Give feedback.
-
|
🕒 Discussion Activity Reminder 🕒 This Discussion has been labeled as dormant by an automated system for having no activity in the last 60 days. Please consider one the following actions: 1️⃣ Close as Out of Date: If the topic is no longer relevant, close the Discussion as 2️⃣ Provide More Information: Share additional details or context — or let the community know if you've found a solution on your own. 3️⃣ Mark a Reply as Answer: If your question has been answered by a reply, mark the most helpful reply as the solution. Note: This dormant notification will only apply to Discussions with the Thank you for helping bring this Discussion to a resolution! 💬 |
Beta Was this translation helpful? Give feedback.
-
AnswerGitHub doesn’t have a single centralized official doc that explicitly lists which secret source is used for Dependabot-triggered workflows, but the behavior you’ve observed is correct and aligns with the security model.
Documentation references
Key takeawayThere’s no single canonical doc that outlines the exact matrix of
If you need predictable behavior, explicitly design workflows around these rules and use |
Beta Was this translation helpful? Give feedback.
Answer
GitHub doesn’t have a single centralized official doc that explicitly lists which secret source is used for Dependabot-triggered workflows, but the behavior you’ve observed is correct and aligns with the security model.
push (from Dependabot)
Secrets come from the Dependabot secret store (configured under your repository → Settings → Security → Dependabot → Secrets).
This is intentional to limit scope, since Dependabot runs on your behalf.
pull_request_target
Secrets come from the Actions secret store (configured under repository → Settings → Secrets and variables → Actions).
This workflow has read/write permissions against the base repository, so normal GitHub Actions secrets …