@@ -28,14 +28,15 @@ jobs:
2828 setupRcBranch :
2929 name : Set up a Release Candidate Branch
3030 runs-on : ubuntu-latest
31+ permissions :
32+ contents : write
3133
3234 steps :
3335 - name : Sync code
3436 uses : actions/checkout@v4
3537 with :
3638 ref : ${{ inputs.commitId }}
37- # Use RELEASE_CANDIDATE_BRANCH_CREATION_PAT to ensure workflow triggering works
38- token : ${{ secrets.RELEASE_CANDIDATE_BRANCH_CREATION_PAT }}
39+ token : ${{ secrets.GITHUB_TOKEN }}
3940 persist-credentials : true
4041
4142 - name : Setup Node.js
@@ -109,15 +110,8 @@ jobs:
109110 env :
110111 BRANCH_NAME : ${{ steps.release-branch.outputs.BRANCH_NAME }}
111112 RELEASE_VERSION : ${{ steps.release-version.outputs.RELEASE_VERSION }}
112- # We use the toolkit-automation account, basically something that
113- # isn't the default GitHub Token, because you cannot chain actions with that.
114- # In our case, after pushing a commit (below), we want create-agent-standalone.yml
115- # to start automatically.
116- REPO_PAT : ${{ secrets.RELEASE_CANDIDATE_BRANCH_CREATION_PAT }}
117113 run : |
118114 git config --global user.email "<>"
119115 git config --global user.name "aws-toolkit-automation"
120- # Configure git to use the PAT token for authentication
121- git remote set-url origin "https://x-access-token:${REPO_PAT}@github.com/${{ github.repository }}.git"
122- git commit -m "chore: bump agentic version: $RELEASE_VERSION"
116+ git commit --no-verify -m "chore: bump agentic version: $RELEASE_VERSION"
123117 git push --set-upstream origin "$BRANCH_NAME"
0 commit comments