From 9e64e8b859a33fe0e4db8e78fd3084c028858a4f Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 24 Dec 2025 09:10:27 +0000 Subject: [PATCH 1/4] Initial plan From b7d29c388fdf9f08767ba3f560e9613d0685b1de Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 24 Dec 2025 09:13:53 +0000 Subject: [PATCH 2/4] Fix GitHub Actions permissions by adding token to checkout action Co-authored-by: phalt <490685+phalt@users.noreply.github.com> --- .github/workflows/test-openapi-directory.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/test-openapi-directory.yml b/.github/workflows/test-openapi-directory.yml index 8929d56..8c7bf16 100644 --- a/.github/workflows/test-openapi-directory.yml +++ b/.github/workflows/test-openapi-directory.yml @@ -17,6 +17,8 @@ jobs: #---------------------------------------------- - name: Check out repository uses: actions/checkout@v3 + with: + token: ${{ secrets.GITHUB_TOKEN }} - name: Set up python id: setup-python From 1cca5f7b14b556b85653291d3c6b1f0707e2a581 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 24 Dec 2025 09:15:20 +0000 Subject: [PATCH 3/4] Use PAT_TOKEN for pushing to protected branch with setup instructions Co-authored-by: phalt <490685+phalt@users.noreply.github.com> --- .github/workflows/test-openapi-directory.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test-openapi-directory.yml b/.github/workflows/test-openapi-directory.yml index 8c7bf16..3921396 100644 --- a/.github/workflows/test-openapi-directory.yml +++ b/.github/workflows/test-openapi-directory.yml @@ -1,6 +1,10 @@ name: Test OpenAPI Directory # Run weekly on Mondays at 00:00 UTC, and allow manual triggering +# +# Note: This workflow requires a PAT_TOKEN secret to be configured. +# The token needs to have permission to push to protected branches. +# See the setup instructions below for how to configure this. on: schedule: - cron: '0 0 * * 1' # Weekly on Mondays at midnight UTC @@ -15,10 +19,11 @@ jobs: #---------------------------------------------- # check-out repo and set-up python #---------------------------------------------- + # Uses PAT_TOKEN to allow pushing to protected branches - name: Check out repository uses: actions/checkout@v3 with: - token: ${{ secrets.GITHUB_TOKEN }} + token: ${{ secrets.PAT_TOKEN }} - name: Set up python id: setup-python From a66483c2a3287ca48440e9c36a37297e82fe23bc Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 24 Dec 2025 13:46:42 +0000 Subject: [PATCH 4/4] Skip commit step when not on main branch to allow testing on PRs Co-authored-by: phalt <490685+phalt@users.noreply.github.com> --- .github/workflows/test-openapi-directory.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test-openapi-directory.yml b/.github/workflows/test-openapi-directory.yml index 3921396..336f38e 100644 --- a/.github/workflows/test-openapi-directory.yml +++ b/.github/workflows/test-openapi-directory.yml @@ -80,9 +80,10 @@ jobs: echo "Extracted compatibility: ${PERCENTAGE}%" #---------------------------------------------- - # Commit and push the badge data + # Commit and push the badge data (only on main branch) #---------------------------------------------- - name: Commit compatibility data + if: github.ref == 'refs/heads/main' run: | git config --local user.email "github-actions[bot]@users.noreply.github.com" git config --local user.name "github-actions[bot]"