Skip to content

Commit 2cf1c7f

Browse files
committed
pass secret with instead of
1 parent c711cf7 commit 2cf1c7f

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

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

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@ 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
86

97
runs:
108
using: composite
@@ -13,7 +11,7 @@ runs:
1311
uses: actions/checkout@v4
1412
with:
1513
fetch-depth: 0
16-
token: ${{ inputs.ci-user-pat }}
14+
token: ${{ secrets.CI_USER_PAT }}
1715

1816
- name: Set up Git
1917
shell: bash

.github/workflows/merge-main.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,15 @@ on:
33
push:
44
branches: [ main ]
55
workflow_dispatch:
6+
pull_request:
67

78
jobs:
89
merge:
910
runs-on: ubuntu-latest
1011
steps:
1112
- name: Merge main
12-
uses: awslabs/aws-kotlin-repo-tools/.github/actions/merge-main@main
13+
uses: awslabs/aws-kotlin-repo-tools/.github/actions/merge-main@fix-auto-merge-credentials
1314
with:
14-
ci-user-pat: ${{ secrets.CI_USER_PAT }}
15-
exempt-branches: # Add any if required
15+
exempt-branches: # Add any if required
16+
secrets:
17+
CI_USER_PAT: ${{ secrets.CI_USER_PAT }}

0 commit comments

Comments
 (0)