Skip to content

Add Dependabot Config#179

Open
wesrich wants to merge 3 commits intomasterfrom
add-dependabot-config
Open

Add Dependabot Config#179
wesrich wants to merge 3 commits intomasterfrom
add-dependabot-config

Conversation

@wesrich
Copy link
Contributor

@wesrich wesrich commented Feb 25, 2026

Why?

Add Dependabot Config so we can keep everyone up to date!

What Changed

  • Add Dependabot Config + Codeowners template
  • Move templates to their happy place
    • Attempt using symlink to prevent duplication
  • Verify symlinked files come over as expected

Pre-merge checklist

  • Update relevant READMEs
  • Run bin/bump_version or bin/bump_version --patch

Screenshots

CleanShot 2026-02-25 at 17 07 18@2x

@wesrich wesrich self-assigned this Feb 25, 2026
@wesrich wesrich requested a review from Braden-077 February 25, 2026 22:08
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR adds Dependabot configuration and CODEOWNERS template to help automate dependency updates. The implementation reorganizes the GitHub generator to use symlinked templates from the repository's .github directory, reducing duplication while adding new Dependabot and CODEOWNERS files.

Changes:

  • Added Dependabot configuration with support for both Bundler and npm ecosystems
  • Added CODEOWNERS template for automated PR reviewer assignment
  • Refactored GitHub generator to use symlinked templates from top-level .github directory
  • Bumped version from 0.26.0 to 0.27.0

Reviewed changes

Copilot reviewed 7 out of 11 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
lib/generators/rolemodel/github/github_generator.rb Simplified generator to use symlinked templates and added new method to install Dependabot/CODEOWNERS files
lib/generators/rolemodel/github/templates/dependabot.yml New Dependabot configuration supporting Bundler and npm with grouped update strategies
lib/generators/rolemodel/github/templates/CODEOWNERS New CODEOWNERS template with placeholder reviewers for dependency updates
lib/generators/rolemodel/github/templates/pull_request_template.md Moved PR template to templates directory
lib/generators/rolemodel/github/templates/instructions Symlink to repository's .github/instructions directory
spec/generators/rolemodel/github_generator_spec.rb Added tests verifying Dependabot and CODEOWNERS file generation
lib/rolemodel_rails/version.rb Version bump to 0.27.0
Gemfile.lock, example_rails7/Gemfile.lock, example_rails8/Gemfile.lock Updated lockfiles reflecting new version


updates:
- package-ecosystem: bundler
insecure-external-code-execution: allow
Copy link

Copilot AI Feb 25, 2026

Choose a reason for hiding this comment

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

Allowing insecure external code execution in Dependabot configuration poses a security risk. This setting permits execution of arbitrary code during dependency updates, which could be exploited if a malicious dependency is introduced. Consider removing this line unless there's a specific, documented requirement for it, and if needed, add a comment explaining why it's necessary.

Suggested change
insecure-external-code-execution: allow

Copilot uses AI. Check for mistakes.
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is required because of health-check and possibly this gem (rolemodel_rails).
As a counter suggestion:

Suggested change
insecure-external-code-execution: allow
# NOTE: Copilot will complain about this line, but it is needed,
# otherwise Dependabot cannot access internal RoleModel gems.
insecure-external-code-execution: allow

Copy link
Member

Choose a reason for hiding this comment

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

I'm fine with this for now, but I'd like you to explain this to me in detail sometime.

Maybe then we can put our heads together and see if something useful is knocked loose..

Copy link
Contributor

Choose a reason for hiding this comment

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

At some point it might be good to consider if our Health Check approach is worth just having almanac pull everything it needs for SHM.

@@ -0,0 +1 @@
../../../../../.github/instructions No newline at end of file
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is a symlink for the folder. See screenshot for proof that it works in the generator.

Copy link
Member

Choose a reason for hiding this comment

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

nope, don't believe you.

Refactor GH Generator a bit
@wesrich wesrich force-pushed the add-dependabot-config branch from db07069 to 9212f1a Compare February 25, 2026 22:09
@wesrich wesrich requested a review from mark-kraemer February 25, 2026 22:16
Copy link
Member

@OutlawAndy OutlawAndy left a comment

Choose a reason for hiding this comment

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

Nice work @wesrich, thanks!

Left a suggestion about emphasizing the note about updating the CODEOWNERS file.


updates:
- package-ecosystem: bundler
insecure-external-code-execution: allow
Copy link
Member

Choose a reason for hiding this comment

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

I'm fine with this for now, but I'd like you to explain this to me in detail sometime.

Maybe then we can put our heads together and see if something useful is knocked loose..

day: monday
# Ignore specific dependencies or update types which may cause issues. For example:
# ignore:
# - dependency-name: 'some-package'
Copy link
Member

Choose a reason for hiding this comment

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

if our private dependencies are ignored by default, does that remove the need for the scary "allow bad stuff" config above to be removed?

@@ -0,0 +1 @@
../../../../../.github/instructions No newline at end of file
Copy link
Member

Choose a reason for hiding this comment

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

nope, don't believe you.

wesrich and others added 2 commits February 26, 2026 08:36
Co-authored-by: Andy Cohen <outlawandy@gmail.com>
Co-authored-by: Andy Cohen <outlawandy@gmail.com>
Copy link
Contributor

Choose a reason for hiding this comment

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

I think there was an open PR for this. I assume we're pulling from there for this?


updates:
- package-ecosystem: bundler
insecure-external-code-execution: allow
Copy link
Contributor

Choose a reason for hiding this comment

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

At some point it might be good to consider if our Health Check approach is worth just having almanac pull everything it needs for SHM.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

4 participants