From a9f1b6b822d8a5dc2d64a2f49ad3a5608bb05036 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 14 May 2026 23:33:30 +0000 Subject: [PATCH 1/2] Initial plan From d624824eab1b1a7eba1fa205a0e5b0b74a414f85 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 14 May 2026 23:39:29 +0000 Subject: [PATCH 2/2] fix: grant contents:write and use github.token in release workflows Agent-Logs-Url: https://github.com/OneSignal/OneSignal-WordPress-Plugin/sessions/38b59a20-677b-48e1-8b9d-52ecb928681a Co-authored-by: sherwinski <15919091+sherwinski@users.noreply.github.com> --- .github/workflows/release-v2.yml | 8 ++------ .github/workflows/release.yml | 8 ++------ 2 files changed, 4 insertions(+), 12 deletions(-) diff --git a/.github/workflows/release-v2.yml b/.github/workflows/release-v2.yml index a19dec6..4559830 100644 --- a/.github/workflows/release-v2.yml +++ b/.github/workflows/release-v2.yml @@ -9,7 +9,7 @@ on: type: string permissions: - contents: read + contents: write jobs: prep: @@ -17,8 +17,6 @@ jobs: with: version: ${{ inputs.version }} target_branch: v2 - secrets: - GH_PUSH_TOKEN: ${{ secrets.GH_PUSH_TOKEN }} bump: needs: prep @@ -27,7 +25,7 @@ jobs: - uses: actions/checkout@v5 with: ref: ${{ needs.prep.outputs.release_branch }} - token: ${{ secrets.GH_PUSH_TOKEN || github.token }} + token: ${{ github.token }} - uses: ./.github/actions/bump-version with: @@ -39,5 +37,3 @@ jobs: with: release_branch: ${{ needs.prep.outputs.release_branch }} target_branch: v2 - secrets: - GH_PUSH_TOKEN: ${{ secrets.GH_PUSH_TOKEN }} diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 0f7b239..44bd3e3 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -9,7 +9,7 @@ on: type: string permissions: - contents: read + contents: write jobs: prep: @@ -17,8 +17,6 @@ jobs: with: version: ${{ inputs.version }} target_branch: main - secrets: - GH_PUSH_TOKEN: ${{ secrets.GH_PUSH_TOKEN }} bump: needs: prep @@ -27,7 +25,7 @@ jobs: - uses: actions/checkout@v5 with: ref: ${{ needs.prep.outputs.release_branch }} - token: ${{ secrets.GH_PUSH_TOKEN || github.token }} + token: ${{ github.token }} - uses: ./.github/actions/bump-version with: @@ -39,5 +37,3 @@ jobs: with: release_branch: ${{ needs.prep.outputs.release_branch }} target_branch: main - secrets: - GH_PUSH_TOKEN: ${{ secrets.GH_PUSH_TOKEN }}