From ce2415f4e028af30cb069b7451a2ceab89ed58e8 Mon Sep 17 00:00:00 2001 From: Andreas Braun Date: Tue, 8 Jul 2025 14:13:54 +0200 Subject: [PATCH 1/4] empty test commit From 12b59bc74b3fae859f3683fa932b6c03654d7221 Mon Sep 17 00:00:00 2001 From: Andreas Braun Date: Tue, 8 Jul 2025 14:29:26 +0200 Subject: [PATCH 2/4] Change YAML file to test commit workflow --- .../tests/valid-pass/assertNumberConnectionsCheckedOut.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/unified-test-format/tests/valid-pass/assertNumberConnectionsCheckedOut.yml b/source/unified-test-format/tests/valid-pass/assertNumberConnectionsCheckedOut.yml index 603552fc20..00030e52d8 100644 --- a/source/unified-test-format/tests/valid-pass/assertNumberConnectionsCheckedOut.yml +++ b/source/unified-test-format/tests/valid-pass/assertNumberConnectionsCheckedOut.yml @@ -14,4 +14,4 @@ tests: object: testRunner arguments: client: *client0 - connections: 0 + connections: 1 From d0b4a5d8068068395d1aca2bfd85e3899532dc21 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Tamarelle?= Date: Thu, 10 Jul 2025 10:06:13 +0200 Subject: [PATCH 3/4] Upgrade stefanzweifel/git-auto-commit-action https://github.com/stefanzweifel/git-auto-commit-action/blob/v6.0.1/README.md --- .github/workflows/unified-tests.yml | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/.github/workflows/unified-tests.yml b/.github/workflows/unified-tests.yml index cf3c651eb2..e664a09cac 100644 --- a/.github/workflows/unified-tests.yml +++ b/.github/workflows/unified-tests.yml @@ -37,8 +37,16 @@ jobs: runs-on: ubuntu-latest + permissions: + # Give the default GITHUB_TOKEN write permission to commit and push the + # added or changed files to the repository. + contents: write + steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 + with: + ref: ${{ github.head_ref }} + - name: Set up Python uses: actions/setup-python@v1 with: @@ -61,6 +69,6 @@ jobs: cd source && make -B - name: "Commit the changes" - uses: stefanzweifel/git-auto-commit-action@v5 + uses: stefanzweifel/git-auto-commit-action@v6 with: commit_message: "Update generated files" From d6412b64aeef1c3774a8d22de0498551a386ad1a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Tamarelle?= Date: Thu, 10 Jul 2025 10:28:16 +0200 Subject: [PATCH 4/4] Use pull_request_target https://github.com/stefanzweifel/git-auto-commit-action/blob/v6.0.1/README.md#workflow-should-run-in-base-repository --- .github/workflows/unified-tests.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/unified-tests.yml b/.github/workflows/unified-tests.yml index e664a09cac..23f6bf0d7c 100644 --- a/.github/workflows/unified-tests.yml +++ b/.github/workflows/unified-tests.yml @@ -3,7 +3,7 @@ name: Unified Tests on: push: branches: [master] - pull_request: ~ + pull_request_target: ~ jobs: schema-check: @@ -45,6 +45,7 @@ jobs: steps: - uses: actions/checkout@v4 with: + repository: ${{ github.event.pull_request.head.repo.full_name }} ref: ${{ github.head_ref }} - name: Set up Python