Dependabot
Secrets
We use environment variables and secrets pretty heavily. Dependabot only gets to use these when responding to a pull_request_target
event -- it's not a thing during pull_request
. This is relevant, because some of our integration tests need to talk to a deployment environment.
Performing any automation on untrusted code is risky, and that's one way to describe what happens when we run tests on Dependabot pull requests. We use strictly separated environments to keep risk at an acceptable level.
Automerge
This workflow sets up Dependabot pull requests for auto-merging via squash commit.
Note that it runs on pull_request_target
. As with secrets, we use this event so that Dependabot qualifies for the necessary permissions.
Ruby repositories
Note that BUNDLE_ENTERPRISE__CONTRIBSYS__COM
is defined as a Dependabot secret, at the organization level.
Note also that registries
doesn't explicitly include rubygems.org. Don't love that, but rubygems.org appears to be included in practice anyway, so here we are.
Posting this largely so that anyone searching for Sidekiq Pro or Enterprise and Dependabot has something to find. :)
Last updated