Skip to content

πŸ™Œ OpenHands: AI-Driven Development

Fix issue #5080: [Bug]: lint-fix.yml github action doesn't work on a branch not from this repo (#5081)

OpenHandsf7652bd55889
diff --git a/.github/workflows/lint-fix.yml b/.github/workflows/lint-fix.yml
index 78fdef9afc..e3021b887c 100644
--- a/.github/workflows/lint-fix.yml
+++ b/.github/workflows/lint-fix.yml
@@ -16,6 +16,7 @@ jobs:
- uses: actions/checkout@v4
with:
ref: ${{ github.head_ref }}
+ repository: ${{ github.event.pull_request.head.repo.full_name }}
fetch-depth: 0
token: ${{ secrets.GITHUB_TOKEN }}