Skip to content

Add repo-config auto-migration workflow#56

Merged
llucax merged 1 commit intofrequenz-floss:v0.x.xfrom
llucax:repo-config-auto-migrate-v0.16.0
Mar 23, 2026
Merged

Add repo-config auto-migration workflow#56
llucax merged 1 commit intofrequenz-floss:v0.x.xfrom
llucax:repo-config-auto-migrate-v0.16.0

Conversation

@llucax
Copy link
Copy Markdown
Contributor

@llucax llucax commented Mar 23, 2026

Summary

  • sync repo-config-migration.yaml with the exact frequenz-repo-config-python v0.16.0 template
  • fix Dependabot grouping for frequenz-repo-config and mkdocstrings
  • prepare repo-config Dependabot PRs to use the migration workflow correctly

Sync the repo-config migration workflow from v0.16.0 and update
Dependabot grouping for repo-config and mkdocstrings.

This lets repo-config Dependabot PRs use the migration workflow
correctly by matching the expected template and avoiding wildcard issues
with optional dependencies.

Signed-off-by: Leandro Lucarella <[email protected]>
@llucax llucax requested review from a team as code owners March 23, 2026 14:10
@llucax llucax enabled auto-merge March 23, 2026 14:10
@github-actions github-actions bot added the part:tooling Affects the development tooling (CI, deployment, dependency management, etc.) label Mar 23, 2026
Copy link
Copy Markdown

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

Adds a GitHub Actions workflow intended to automatically run repo-config migrations for Dependabot “repo-config” grouped PRs, and adjusts Dependabot grouping/exclusions to align with the upstream frequenz-repo-config-python template.

Changes:

  • Add .github/workflows/repo-config-migration.yaml to perform automated repo-config migrations on Dependabot PRs.
  • Update .github/dependabot.yml grouping/exclusion patterns for frequenz-repo-config and mkdocstrings (including extras).

Reviewed changes

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

File Description
.github/workflows/repo-config-migration.yaml Introduces a migration workflow for Dependabot repo-config group PRs using pull_request_target and an app token.
.github/dependabot.yml Refines grouping/exclusion patterns so repo-config and mkdocstrings updates are grouped and handled as intended.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

# don't need to actually run the job, having the job present as Skipped is
# enough.
if: |
github.event_name == 'pull_request_target' &&
Copy link

Copilot AI Mar 23, 2026

Choose a reason for hiding this comment

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

The job is running on pull_request_target with repo write permissions and access to secrets, but the job-level if: condition does not enforce github.actor == 'dependabot[bot]'. That means any PR author can set a matching title and trigger the workflow with elevated permissions. Add an explicit actor (and/or PR author) check to the if: condition (or gate the sensitive steps) to match the security expectations documented in the header comment.

Suggested change
github.event_name == 'pull_request_target' &&
github.event_name == 'pull_request_target' &&
github.actor == 'dependabot[bot]' &&

Copilot uses AI. Check for mistakes.
Comment on lines +3 to +4
# The companion auto-dependabot workflow skips repo-config group PRs so
# they're handled exclusively by the migration workflow.
Copy link

Copilot AI Mar 23, 2026

Choose a reason for hiding this comment

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

The header comment mentions a “companion auto-dependabot workflow” skipping repo-config group PRs, but there is no such workflow in this repository. Either add the referenced companion workflow or update the comment to point to the actual mechanism in this repo that ensures repo-config group PRs are handled exclusively by this migration workflow.

Suggested change
# The companion auto-dependabot workflow skips repo-config group PRs so
# they're handled exclusively by the migration workflow.
# Repo-config group Dependabot PRs are handled exclusively by this
# migration workflow: the job below is gated on the PR title containing
# "the repo-config group", so only those PRs are processed.

Copilot uses AI. Check for mistakes.
@llucax llucax added this pull request to the merge queue Mar 23, 2026
Merged via the queue into frequenz-floss:v0.x.x with commit d8302e3 Mar 23, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

part:tooling Affects the development tooling (CI, deployment, dependency management, etc.)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants