Skip to content

Commit

Permalink
feat(dependabot): Add dependabot config 🤖
Browse files Browse the repository at this point in the history
  • Loading branch information
bengreenier committed Oct 29, 2021
1 parent 9a8ccb5 commit 49f01a2
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 6 deletions.
13 changes: 7 additions & 6 deletions README.md
Expand Up @@ -6,9 +6,10 @@ Templates for creating rust projects with a GitHub-managed lifecycle with cargo-

What you get:

- PR build validation
- Automated Release PR generation using [release-please](https://github.com/googleapis/release-please)
- Automated crates.io publishing (after merging a Release PR)
- PR build validation.
- Automated Release PR generation using [release-please](https://github.com/googleapis/release-please).
- Automated crates.io publishing (after merging a Release PR).
- [Dependabot](https://docs.github.com/en/code-security/supply-chain-security/keeping-your-dependencies-updated-automatically/about-dependabot-version-updates) daily scans and automated dependency update PR generation.

## Quickstart

Expand All @@ -18,9 +19,9 @@ What you get:

For publishing to crates.io:

- Create an API access token [here](https://crates.io/me)
- Add it as a [GitHub repository secret](https://docs.github.com/en/actions/security-guides/encrypted-secrets#creating-encrypted-secrets-for-a-repository) named `CARGO_REGISTRY_TOKEN`
- `.github/release.yml` will use this secret when publishing a release
- Create an API access token [here](https://crates.io/me).
- Add it as a [GitHub repository secret](https://docs.github.com/en/actions/security-guides/encrypted-secrets#creating-encrypted-secrets-for-a-repository) named `CARGO_REGISTRY_TOKEN`.
- `.github/release.yml` will use this secret when publishing a release.

### single-crate

Expand Down
11 changes: 11 additions & 0 deletions single-crate/.github/dependabot.yml
@@ -0,0 +1,11 @@
# Basic dependabot.yml file with rust (cargo) configuration.

version: 2
updates:
# Enable version updates for cargo (crates.io)
- package-ecosystem: "cargo"
# Look for `Cargo.toml` and `lock` files in the `root` directory
directory: "/"
# Check the registry for updates every day (weekdays)
schedule:
interval: "daily"

0 comments on commit 49f01a2

Please sign in to comment.