From a41447eacd1f9bf02f8ff6967357abe399a7cdff Mon Sep 17 00:00:00 2001 From: Elizabeth Healy Date: Mon, 20 Oct 2025 13:16:58 -0400 Subject: [PATCH 1/6] add auth as github action bot --- .github/workflows/update-platform-branch.yaml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/update-platform-branch.yaml b/.github/workflows/update-platform-branch.yaml index fe6833d7..7b34bfd8 100644 --- a/.github/workflows/update-platform-branch.yaml +++ b/.github/workflows/update-platform-branch.yaml @@ -35,6 +35,14 @@ jobs: with: persist-credentials: true + - name: Set up GitHub CLI as Actions bot + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: | + gh auth setup-git + git config --global user.name "github-actions[bot]" + git config --global user.email "github-actions[bot]@users.noreply.github.com" + - name: Fetch latest semver tag for protocol/go id: fetch-latest-tag run: | From 794f6b70251fb590d8c47749f46843726df4e547 Mon Sep 17 00:00:00 2001 From: Elizabeth Healy Date: Mon, 20 Oct 2025 13:17:44 -0400 Subject: [PATCH 2/6] temp comment out to demo --- .github/workflows/update-platform-branch.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/update-platform-branch.yaml b/.github/workflows/update-platform-branch.yaml index 7b34bfd8..eda25638 100644 --- a/.github/workflows/update-platform-branch.yaml +++ b/.github/workflows/update-platform-branch.yaml @@ -18,8 +18,8 @@ on: inputs: tag: description: "The new tag or branch to update the platform.branch property to use for targeting the RPC protocol buffers." - required: true - default: "protocol/go/v0.3.0" + # required: true + # default: "protocol/go/v0.3.0" jobs: update-platform-branch: From beebad9a7e338de417e6d07a55ce8a83450cda89 Mon Sep 17 00:00:00 2001 From: Elizabeth Healy Date: Mon, 20 Oct 2025 13:24:32 -0400 Subject: [PATCH 3/6] try switching to gh cli for pr creation --- .github/workflows/update-platform-branch.yaml | 28 +++++++++++-------- 1 file changed, 16 insertions(+), 12 deletions(-) diff --git a/.github/workflows/update-platform-branch.yaml b/.github/workflows/update-platform-branch.yaml index eda25638..f46f2faf 100644 --- a/.github/workflows/update-platform-branch.yaml +++ b/.github/workflows/update-platform-branch.yaml @@ -112,17 +112,21 @@ jobs: - name: Create New PR if: steps.check-pr.outputs.EXISTING_PR == '' - uses: peter-evans/create-pull-request@v7.0.8 - with: - token: ${{ secrets.GITHUB_TOKEN }} - commit-message: "fix(sdk): Updates to proto version $LATEST_TAG" - branch: update-platform-branch - title: "fix(sdk): Updates to proto version $LATEST_TAG" - body: | - This PR updates the platform.branch property in all pom.xml files to the new tag or branch: $LATEST_TAG. + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: | + cat < pr_body.txt + This PR updates the platform.branch property in all pom.xml files to the new tag or branch: $LATEST_TAG. + + See the release: https://github.com/opentdf/platform/releases/tag/$LATEST_TAG - See the release: https://github.com/opentdf/platform/releases/tag/$LATEST_TAG + Release Notes: + $RELEASE_NOTES + EOF + gh pr create \ + --title "fix(sdk): Updates to proto version $LATEST_TAG" \ + --body-file pr_body.txt \ + --head update-platform-branch \ + --base main \ + --label "automated-update" - Release Notes: - $RELEASE_NOTES - labels: "automated-update" From 5fb36b4856d986e920ad59bd28326333ade0a5bc Mon Sep 17 00:00:00 2001 From: Elizabeth Healy Date: Mon, 20 Oct 2025 13:28:01 -0400 Subject: [PATCH 4/6] pull first --- .github/workflows/update-platform-branch.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/update-platform-branch.yaml b/.github/workflows/update-platform-branch.yaml index f46f2faf..a72b339c 100644 --- a/.github/workflows/update-platform-branch.yaml +++ b/.github/workflows/update-platform-branch.yaml @@ -99,6 +99,7 @@ jobs: if: steps.check-pr.outputs.EXISTING_PR == '' run: | git checkout -b update-platform-branch + git pull || true git add . git commit -m "fix(sdk): Updates to proto version $LATEST_TAG" git push origin update-platform-branch From 03d7c5729b575967abfd87ac32f8df2739c99dd4 Mon Sep 17 00:00:00 2001 From: Elizabeth Healy Date: Mon, 20 Oct 2025 13:30:01 -0400 Subject: [PATCH 5/6] remove pull and label --- .github/workflows/update-platform-branch.yaml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/update-platform-branch.yaml b/.github/workflows/update-platform-branch.yaml index a72b339c..780a2903 100644 --- a/.github/workflows/update-platform-branch.yaml +++ b/.github/workflows/update-platform-branch.yaml @@ -99,7 +99,6 @@ jobs: if: steps.check-pr.outputs.EXISTING_PR == '' run: | git checkout -b update-platform-branch - git pull || true git add . git commit -m "fix(sdk): Updates to proto version $LATEST_TAG" git push origin update-platform-branch @@ -129,5 +128,4 @@ jobs: --body-file pr_body.txt \ --head update-platform-branch \ --base main \ - --label "automated-update" From 890f76caf4ea9f6f8eea57928b7ca2dd429c08bb Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Mon, 20 Oct 2025 17:57:29 +0000 Subject: [PATCH 6/6] fix(sdk): Updates to proto version v0.13.0 --- examples/pom.xml | 2 +- sdk/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/pom.xml b/examples/pom.xml index 3bcd1e02..f09d90dd 100644 --- a/examples/pom.xml +++ b/examples/pom.xml @@ -17,7 +17,7 @@ UTF-8 11 - protocol/go/v0.3.0 + v0.13.0 diff --git a/sdk/pom.xml b/sdk/pom.xml index 1ced4176..8509350c 100644 --- a/sdk/pom.xml +++ b/sdk/pom.xml @@ -16,7 +16,7 @@ 2.1.0 0.7.2 4.12.0 - protocol/go/v0.11.0 + v0.13.0