-
Notifications
You must be signed in to change notification settings - Fork 270
Add Dependabot for Automatic Updates
kellyyangsong edited this page Dec 20, 2023
·
1 revision
Dependabot helps manage your dependencies in three different ways:
- Dependabot alerts—inform you about vulnerabilities in the dependencies that you use in your repository.
- Dependabot security updates—automatically raise pull requests to update the dependencies you use that have known security vulnerabilities.
- Dependabot version updates—automatically raise pull requests to keep your dependencies up-to-date.
Dependabot Version Updates are what we will focus on to remain up to date on Identity Web Releases.
- On GitHub.com, navigate to the main page of the repository.
- Under your repository name, click Settings. If you cannot see the "Settings" tab, select the ••• dropdown menu, then click Settings.
- In the "Security" section of the sidebar, click Code security and analysis.
- Under "Code security and analysis", to the right of Dependabot alerts, click Enable for Dependabot version updates.
- On the next page, an editor will be open to add dependabot.yml to the .github folder of your repo. Add the following to the YAML file:
version: 2
updates:
- package-ecosystem: "nuget"
directory: "/"
schedule:
interval: "daily"
allow:
- dependency-name: "Microsoft.Identity*"
labels:
- "dependabot"
- "dependencies"
- Click Commit Changes to add dependabot to your repo. Now Dependabot can automatically raise pull requests to keep Identity Web up-to-date.