Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable GitHub Dependabot #21197

Merged
merged 1 commit into from
Jun 12, 2020
Merged

Enable GitHub Dependabot #21197

merged 1 commit into from
Jun 12, 2020

Conversation

bricelam
Copy link
Contributor

@bricelam bricelam commented Jun 9, 2020

The NuGet/MSBuild support is pretty primitive and requires us to inline versions.

This is enough to start getting PRs from Dependabot. We can iterate on the configuration as we go.

Once merged, you can view the logs and manually trigger checks using this page.

I've tested this on my fork.

@bricelam bricelam requested a review from a team June 9, 2020 22:22
@bricelam bricelam requested a review from dougbu as a code owner June 9, 2020 22:22
.github/dependabot.yml Outdated Show resolved Hide resolved
@bricelam bricelam merged commit 48f7e9f into dotnet:master Jun 12, 2020
@bricelam bricelam deleted the bot branch June 12, 2020 18:55
- dependency-name: NetTopologySuite*
- dependency-name: Newtonsoft.Json
- dependency-name: SQLitePCLRaw*
ignore:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Surprised an ignore list is needed when there's no overlap w/ the allow list. Is this due to another Dependabot restriction or oddity❔

Copy link
Contributor Author

@bricelam bricelam Jun 16, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not needed. Just here to remind us they're not being updated. (and why)

@@ -2,7 +2,7 @@
<Import Project="..\Directory.Build.props" />

<ItemGroup>
<PackageReference Include="BenchmarkDotNet" Version="$(BenchmarkDotNetVersion)" />
<PackageReference Include="BenchmarkDotNet" Version="0.12.0" />
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do the ignored dependencies need to have their versions inlined too❔

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We may want to automatically update them in the future. And, IMHO, the only value of Versions.props is so Maestro can update it.

@dougbu
Copy link
Member

dougbu commented Jun 12, 2020

Forgot to ask: The Dependabot security alerts work fine with all of the versions in eng/Versions.props. Did you find the need to inline the versions documented somewhere or through experimentation?

@bricelam
Copy link
Contributor Author

Through experimentation. I tried a few other patterns but the Dependabot jobs kept failing. I can't remember the exact error. I'm happy to tweak this if we want to standardize.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants