From f776ba06176abc7a59f649f2caacfe7ab19ba952 Mon Sep 17 00:00:00 2001 From: Zhihe Li Date: Mon, 28 Jul 2025 13:50:35 -0400 Subject: [PATCH] Fix auto commit of copyright headers (#2948) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * fix: 🐛 Fix copyright header updates failing in CI --- .github/workflows/copyright-validate.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/copyright-validate.yaml b/.github/workflows/copyright-validate.yaml index 374111f44..494c03cfc 100644 --- a/.github/workflows/copyright-validate.yaml +++ b/.github/workflows/copyright-validate.yaml @@ -7,6 +7,10 @@ jobs: contents: write steps: - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 + # Ref and repository aren't normally needed, this is a workaround for a bug in auto commit + with: + ref: ${{ github.event.pull_request.head.ref }} + repository: ${{ github.event.pull_request.head.repo.full_name }} - uses: hashicorp/setup-copywrite@32638da2d4e81d56a0764aa1547882fc4d209636 # v1.1.3 - name: Add missing Copyright Headers run: copywrite headers