From 7dc56fecb9a15eac57b248ad62107fa530258cf3 Mon Sep 17 00:00:00 2001 From: Stephan Merker Date: Fri, 17 Jul 2026 16:44:12 +0200 Subject: [PATCH] Add --repo to gh commands - needed because workflow doesn't checkout the sources --- .github/workflows/dependabot-auto-merge.yml | 2 +- .github/workflows/fork-integration-trigger.yml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/dependabot-auto-merge.yml b/.github/workflows/dependabot-auto-merge.yml index 4da70a2..118bc0a 100644 --- a/.github/workflows/dependabot-auto-merge.yml +++ b/.github/workflows/dependabot-auto-merge.yml @@ -15,4 +15,4 @@ jobs: if: github.actor == 'dependabot[bot]' steps: - name: Enable auto-merge - run: gh pr merge --auto --rebase "${{ github.event.pull_request.number }}" + run: gh pr merge --auto --rebase --repo "${{ github.repository }}" "${{ github.event.pull_request.number }}" diff --git a/.github/workflows/fork-integration-trigger.yml b/.github/workflows/fork-integration-trigger.yml index 0046ce6..b555d61 100644 --- a/.github/workflows/fork-integration-trigger.yml +++ b/.github/workflows/fork-integration-trigger.yml @@ -29,7 +29,7 @@ jobs: - name: Get PR head SHA and check for fork id: pr run: | - pr=$(gh pr view ${{ github.event.issue.number }} --json headRefOid,isCrossRepository) + pr=$(gh pr view ${{ github.event.issue.number }} --repo "$GITHUB_REPOSITORY" --json headRefOid,isCrossRepository) read -r ref is_fork < <(echo "$pr" | jq -r '[.headRefOid, (.isCrossRepository | tostring)] | @tsv') if [[ "$is_fork" == "false" ]]; then echo "This command is only needed for fork PRs. Integration tests run automatically for PRs from this repository." @@ -46,6 +46,6 @@ jobs: - name: Trigger integration tests run: | for workflow in s3-integration.yml gcs-integration.yml alioss-integration.yml azurebs-integration.yml dav-integration.yml; do - gh workflow run "$workflow" --ref ${{ github.event.repository.default_branch }} -f pr_ref=${{ steps.pr.outputs.ref }} & + gh workflow run "$workflow" --repo "$GITHUB_REPOSITORY" --ref ${{ github.event.repository.default_branch }} -f pr_ref=${{ steps.pr.outputs.ref }} & done wait