Create small dependency update pull requests by manager.
Generate the workflows
After configuring manager targets, generate the recommended split workflows:
codependence init actions
Codependence creates stable files for Node, Python, Go, Rust, Docker, and
infrastructure targets. It reads exact versions from common project metadata and
reports any missing version:
codependence init actions --version uv=0.8.0
Use --target for one area, --post-update-command 'go=task go:tidy' for a
repository-specific lockfile command, --schedule 'go=30 7 * * 5' for a custom
cron, and --force only when replacing an existing generated workflow.
Schedule keys are node, python, go, rust, docker, and
infrastructure.
Target one manager
Manager targets come from the root .codependencerc. Versioned targets require
an exact tool version.
- uses: yowainwright/codependence@add92453b85ffafb511988545fc153ba25b04792 # v1.1.1
with:
targets: bun
version: 1.3.14
- Load the action — The commit SHA pins this step to the v1.1.1 release.
- Target Bun — This run selects the Bun targets from the repository policy. Other managers can run on their own schedules.
- Pin the runtime — The runner uses Bun 1.3.14 for this job. The action version is set separately on the uses line.
Use separate scheduled workflows for bun, go, uv, docker,
github-actions, and helm. Each manager set has a stable branch, so reruns
update one existing pull request instead of opening duplicates. Docker updates
use update-dependencies/docker.
Pull request mode
name: Update Go dependencies
on:
schedule:
- cron: "0 9 * * 2"
workflow_dispatch:
jobs:
update:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
with:
persist-credentials: false
- uses: yowainwright/codependence@add92453b85ffafb511988545fc153ba25b04792 # v1.1.1
with:
targets: go
version: 1.24.5
pull-request: true
token: ${{ secrets.CODEPENDENCE_TOKEN }}
post-update-command: go mod tidy
The required post-update-command should regenerate the selected manager's
lockfiles. Normal pull request checks should run the full validation suite.
Fine-grained PAT screens
No GitHub App is required. Create a fine-grained personal access token in
GitHub's personal access token settings.
Token screen
- Set Resource owner to the repository owner.
- Set Repository access to Only select repositories.
- Select the repository that will run Codependence.
Permissions screen
Under Repository permissions, set:
- Contents to Read and write.
- Pull requests to Read and write.
- Workflows to Read and write only when updating workflow files.
Repository secret screen
Open Settings → Secrets and variables → Actions, create a repository secret
named CODEPENDENCE_TOKEN, and paste the token value.
Lockfiles
Lockfile enforcement defaults to true. Codependence fails before editing any
selected target when a required lockfile is missing. Set lockfile: false to
explicitly allow a manifest-only pull request. Docker, GitHub Actions, and Helm
targets do not require lockfiles or tool versions.
Combined updates
Combining managers intentionally creates one pull request. When more than one
selected manager needs a tool version, provide manager=version pairs.
with:
targets: |
bun
go
version: |
bun=1.3.14
go=1.24.5
Python targets also accept pip, pipenv, poetry, and conda, with exact tool versions. Pip, Pipenv, and Poetry are installed in an isolated environment; Conda uses a pinned setup-miniconda action. Pip and Conda targets need lockfile: false or an explicit custom lockfile. CLI onboarding generates the appropriate lockfile policy.