Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/auto-merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
contents: write
id-token: write
runs-on: ubuntu-latest
if: github.actor == 'dependabot[bot]'
if: github.event.pull_request.user.login == 'dependabot[bot]' && github.repository == github.event.pull_request.head.repo.full_name
Copy link

Copilot AI Jan 9, 2026

Choose a reason for hiding this comment

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

The condition github.event.pull_request.head.repo.full_name can be null for forked PRs in certain GitHub configurations, which could cause the workflow to fail or behave unexpectedly. Consider adding a null check or using a safer comparison pattern.

Suggested change
if: github.event.pull_request.user.login == 'dependabot[bot]' && github.repository == github.event.pull_request.head.repo.full_name
if: github.event.pull_request.user.login == 'dependabot[bot]' && github.event.pull_request.head.repo != null && github.repository == github.event.pull_request.head.repo.full_name

Copilot uses AI. Check for mistakes.
steps:
- name: Fetch Dependabot metadata
id: dependabot-metadata
Expand Down