Skip to content

Add auto-depenabot workflow - #122

Merged
llucax merged 1 commit into
frequenz-floss:v1.x.xfrom
llucax:auto-repo-config
Feb 16, 2026
Merged

Add auto-depenabot workflow#122
llucax merged 1 commit into
frequenz-floss:v1.x.xfrom
llucax:auto-repo-config

Conversation

@llucax

@llucax llucax commented Feb 16, 2026

Copy link
Copy Markdown
Contributor

This workflow uses the new GitHub App for gettingt the credentials.

This workflow uses the new GitHub App for gettingt the credentials.

Signed-off-by: Leandro Lucarella <luca-frequenz@llucax.com>
Copilot AI review requested due to automatic review settings February 16, 2026 12:51
@llucax
llucax requested a review from a team as a code owner February 16, 2026 12:51
@llucax
llucax requested a review from simonvoelcker February 16, 2026 12:51
@github-actions github-actions Bot added the part:tooling Affects the development tooling (CI, deployment, dependency management, etc.) label Feb 16, 2026
@llucax

llucax commented Feb 16, 2026

Copy link
Copy Markdown
Contributor Author

This is a test for frequenz-floss/frequenz-repo-config-python#508.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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 approve and merge Dependabot pull requests using a GitHub App token.

Changes:

  • Introduce .github/workflows/auto-dependabot.yaml workflow to generate a GitHub App installation token.
  • Use frequenz-floss/dependabot-auto-approve to auto-approve and auto-merge Dependabot PRs and apply a label.

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

name: Auto-merge Dependabot PR

on:
pull_request:

Copilot AI Feb 16, 2026

Copy link

Choose a reason for hiding this comment

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

This workflow is triggered on pull_request, but Dependabot-triggered workflows do not receive repository secrets. As a result, secrets.FREQUENZ_AUTO_DEPENDABOT_APP_* will be unavailable and the GitHub App token generation step will fail. Use pull_request_target (and keep the workflow from checking out/running PR code) so secrets are accessible in the base repo context, similar to .github/workflows/labeler.yml.

Suggested change
pull_request:
pull_request_target:
types:
- opened
- synchronize
- reopened

Copilot uses AI. Check for mistakes.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

This is actually a fair point, and I think we need to use pull_request_target in here as suggested. This workflow is not checking-out code, so it should be safe to use pull_request_target as we do in the labeler workflow as copilot suggests. I will submit a fix.

Comment thread .github/workflows/auto-dependabot.yaml

@Marenz Marenz left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Would the real ubuntu-slim, please stand up, please stand up

@llucax
llucax added this pull request to the merge queue Feb 16, 2026
Merged via the queue into frequenz-floss:v1.x.x with commit 7bcb7e4 Feb 16, 2026
12 checks passed
@llucax
llucax deleted the auto-repo-config branch February 16, 2026 12:57
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