Skip to content

Commit ba45c22

Browse files
authored
[chore] Add repository check to tidy-dependencies workflow (#45219)
Adds a repository origin check to the tidy-dependencies.yml workflow condition to ensure it only runs on PRs from the main repository.
1 parent d5eaa17 commit ba45c22

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/tidy-dependencies.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
contents: write # required for pushing changes
2020
timeout-minutes: 30
2121
runs-on: ubuntu-24.04
22-
if: ${{ !contains(github.event.pull_request.labels.*.name, 'dependency-major-update') && (github.actor == 'renovate[bot]' || contains(github.event.pull_request.labels.*.name, 'renovatebot')) }}
22+
if: ${{ !contains(github.event.pull_request.labels.*.name, 'dependency-major-update') && (github.actor == 'renovate[bot]' || contains(github.event.pull_request.labels.*.name, 'renovatebot')) && github.event.pull_request.head.repo.fork == false }}
2323
steps:
2424
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6
2525
with:

0 commit comments

Comments
 (0)