Skip to content

Commit a1ad9dd

Browse files
authored
fix: use CI user PAT to bypass branch protections (#86)
1 parent caedfe6 commit a1ad9dd

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

.github/actions/merge-main/action.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ description: Merges main into feature branches (*-main)
33
inputs:
44
exempt-branches:
55
description: Feature branches that are exempt from receiving merges from main (comma separated, no blank space)
6+
ci-user-pat:
7+
description: The CI user's personal access token to write to the repo
68

79
runs:
810
using: composite
@@ -11,6 +13,7 @@ runs:
1113
uses: actions/checkout@v4
1214
with:
1315
fetch-depth: 0
16+
token: ${{ inputs.ci-user-pat }}
1417

1518
- name: Set up Git
1619
shell: bash

.github/workflows/merge-main.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,5 @@ jobs:
1111
- name: Merge main
1212
uses: awslabs/aws-kotlin-repo-tools/.github/actions/merge-main@main
1313
with:
14+
ci-user-pat: ${{ secrets.CI_USER_PAT }}
1415
exempt-branches: # Add any if required

0 commit comments

Comments
 (0)