From a41447eacd1f9bf02f8ff6967357abe399a7cdff Mon Sep 17 00:00:00 2001
From: Elizabeth Healy <ehealy@virtru.com>
Date: Mon, 20 Oct 2025 13:16:58 -0400
Subject: [PATCH 1/9] 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 <ehealy@virtru.com>
Date: Mon, 20 Oct 2025 13:17:44 -0400
Subject: [PATCH 2/9] 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 <ehealy@virtru.com>
Date: Mon, 20 Oct 2025 13:24:32 -0400
Subject: [PATCH 3/9] 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 <<EOF > 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 <ehealy@virtru.com>
Date: Mon, 20 Oct 2025 13:28:01 -0400
Subject: [PATCH 4/9] 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 <ehealy@virtru.com>
Date: Mon, 20 Oct 2025 13:30:01 -0400
Subject: [PATCH 5/9] 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 a9605087e8f77faaf8cc29f39b1ff04347d5bea7 Mon Sep 17 00:00:00 2001
From: Elizabeth Healy <ehealy@virtru.com>
Date: Mon, 20 Oct 2025 14:04:35 -0400
Subject: [PATCH 6/9] include release notes

---
 .github/workflows/update-platform-branch.yaml | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/.github/workflows/update-platform-branch.yaml b/.github/workflows/update-platform-branch.yaml
index 780a2903..952ad2b3 100644
--- a/.github/workflows/update-platform-branch.yaml
+++ b/.github/workflows/update-platform-branch.yaml
@@ -115,10 +115,11 @@ jobs:
         env:
           GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
         run: |
+          RELEASE_NOTES=$(gh release view protocol/go/$LATEST_TAG --repo opentdf/platform --json body --jq '.body')
           cat <<EOF > 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/protocol%2Fgo%2F$LATEST_TAG
 
           Release Notes:
           $RELEASE_NOTES

From 9d9c2994ec913a3d81b3e02ef4500845316fd2e2 Mon Sep 17 00:00:00 2001
From: Elizabeth Healy <ehealy@virtru.com>
Date: Mon, 20 Oct 2025 14:08:24 -0400
Subject: [PATCH 7/9] try exit 0

---
 .github/workflows/update-platform-branch.yaml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/.github/workflows/update-platform-branch.yaml b/.github/workflows/update-platform-branch.yaml
index 952ad2b3..d2cd90f4 100644
--- a/.github/workflows/update-platform-branch.yaml
+++ b/.github/workflows/update-platform-branch.yaml
@@ -90,7 +90,7 @@ jobs:
           if [ -z "$CHANGED_FILES" ]; then
             echo "No changes detected in pom.xml files." | tee -a $GITHUB_STEP_SUMMARY
             find . -name "pom.xml.bak" -delete
-            exit 1
+            exit 0
           fi
           echo "The following pom.xml files were updated: $CHANGED_FILES"
           find . -name "pom.xml.bak" -delete

From 494db1e4ce9cb22efbeab2e209f2e6295bc171b9 Mon Sep 17 00:00:00 2001
From: Elizabeth Healy <ehealy@virtru.com>
Date: Mon, 20 Oct 2025 14:14:11 -0400
Subject: [PATCH 8/9] add check for no updates

---
 .github/workflows/update-platform-branch.yaml | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/.github/workflows/update-platform-branch.yaml b/.github/workflows/update-platform-branch.yaml
index d2cd90f4..11e972d7 100644
--- a/.github/workflows/update-platform-branch.yaml
+++ b/.github/workflows/update-platform-branch.yaml
@@ -84,19 +84,21 @@ jobs:
           git checkout update-platform-branch
 
       - name: Update platform.branch in pom.xml files
+        id: update-platform-branch
         run: |
           find . -name "pom.xml" -exec sed -i.bak "s|<platform.branch>.*</platform.branch>|<platform.branch>${LATEST_TAG}</platform.branch>|g" {} \;
           CHANGED_FILES=$(find . -name "pom.xml" -exec diff -u {} {}.bak \;)
           if [ -z "$CHANGED_FILES" ]; then
             echo "No changes detected in pom.xml files." | tee -a $GITHUB_STEP_SUMMARY
             find . -name "pom.xml.bak" -delete
+            echo "no_updates=true" >> $GITHUB_OUTPUT
             exit 0
           fi
           echo "The following pom.xml files were updated: $CHANGED_FILES"
           find . -name "pom.xml.bak" -delete
 
       - name: Create new branch
-        if: steps.check-pr.outputs.EXISTING_PR == ''
+        if: steps.check-pr.outputs.EXISTING_PR == '' && steps.update-platform-branch.outputs.no_updates != 'true'
         run: |
           git checkout -b update-platform-branch
           git add .
@@ -104,14 +106,14 @@ jobs:
           git push origin update-platform-branch
 
       - name: Update existing PR
-        if: steps.check-pr.outputs.EXISTING_PR != ''
+        if: steps.check-pr.outputs.EXISTING_PR != '' && steps.update-platform-branch.outputs.no_updates != 'true'
         run: |
           git add .
           git commit --amend --no-edit
           git push origin update-platform-branch --force
 
       - name: Create New PR
-        if: steps.check-pr.outputs.EXISTING_PR == ''
+        if: steps.check-pr.outputs.EXISTING_PR == '' && steps.update-platform-branch.outputs.no_updates != 'true'
         env:
           GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
         run: |

From bb9b89b7f7203d4cb7890e5ad255499a1e61493a Mon Sep 17 00:00:00 2001
From: "github-actions[bot]" <github-actions[bot]@users.noreply.github.com>
Date: Mon, 20 Oct 2025 18:15:18 +0000
Subject: [PATCH 9/9] 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 @@
   <properties>
     <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
     <maven.compiler.release>11</maven.compiler.release>
-    <platform.branch>protocol/go/v0.3.0</platform.branch>
+    <platform.branch>v0.13.0</platform.branch>
   </properties>
 
   <dependencyManagement>
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 @@
         <kotlin.version>2.1.0</kotlin.version>
         <connect.version>0.7.2</connect.version>
         <okhttp.version>4.12.0</okhttp.version>
-        <platform.branch>protocol/go/v0.11.0</platform.branch>
+        <platform.branch>v0.13.0</platform.branch>
     </properties>
     <dependencies>
         <!-- Logging Dependencies -->
