Conversation
Dependabot PRs don't have access to repository secrets for security reasons. Since the SSH key isn't needed for CI tasks (all dependencies are public), skip the ssh-agent step when the actor is dependabot[bot].
Contributor
Reviewer's guide (collapsed on small PRs)Reviewer's GuideConditionally skip SSH agent setup in the CI workflow when the workflow is triggered by Dependabot, to avoid using unavailable repository secrets while keeping existing behavior for all other actors. Sequence diagram for CI run with conditional SSH agent setupsequenceDiagram
actor GitHub_Actor
participant GitHub_Actions as GitHub_Actions_Workflow
participant Checkout_Step
participant SSH_Agent_Step
participant Secrets as Repo_Secrets
participant Dependency_Repos as PyPI_and_conda_forge
GitHub_Actor->>GitHub_Actions: Trigger ci.yml
GitHub_Actions->>Checkout_Step: Run actions_checkout_v6
Checkout_Step-->>GitHub_Actions: Code checked out
GitHub_Actions->>GitHub_Actions: Evaluate condition github.actor != dependabot_bot
alt Actor is not dependabot_bot
GitHub_Actions->>SSH_Agent_Step: Run webfactory_ssh_agent
SSH_Agent_Step->>Secrets: Request SSH_PRIVATE_KEY
Secrets-->>SSH_Agent_Step: ssh_private_key
SSH_Agent_Step-->>GitHub_Actions: SSH agent configured
else Actor is dependabot_bot
GitHub_Actions-->>GitHub_Actions: Skip SSH_Agent_Step
end
GitHub_Actions->>Dependency_Repos: Install dependencies
Dependency_Repos-->>GitHub_Actions: Packages
GitHub_Actions-->>GitHub_Actor: CI job complete
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #138 +/- ##
=======================================
Coverage 63.04% 63.04%
=======================================
Files 9 9
Lines 1840 1840
=======================================
Hits 1160 1160
Misses 680 680 🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Test plan
🤖 Generated with Claude Code
Summary by Sourcery
CI: