diff --git a/.github/workflows/unified-tests.yml b/.github/workflows/unified-tests.yml index cf3c651eb2..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: @@ -37,8 +37,17 @@ 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: + repository: ${{ github.event.pull_request.head.repo.full_name }} + ref: ${{ github.head_ref }} + - name: Set up Python uses: actions/setup-python@v1 with: @@ -61,6 +70,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" 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