@@ -9,10 +9,14 @@ inputs:
99 changelog_author :
1010 description : Git-format author/committer to use for pull request commits
1111 default : Conda Bot <18747875+conda-bot@users.noreply.github.com>
12- token :
13- description : >-
14- GitHub token to fork repository and create changelog PR
15- (`contents: write` and `pull-request: write` for fine-grained PAT; `repo` for classic PAT).
12+ fork-token :
13+ description : ' GitHub token to fork repository (`???: write`).'
14+ default : ${{ github.token }}
15+ branch-token :
16+ description : ' GitHub token to checkout and create the release branch (`contents: write`).'
17+ default : ${{ github.token }}
18+ pr-token :
19+ description : ' GitHub token to create the changelog PR (`pull-request: write`).'
1620 default : ${{ github.token }}
1721runs :
1822 using : composite
2125 uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
2226 with :
2327 fetch-depth : 0
24- token : ${{ inputs.token }}
28+ token : ${{ inputs.branch- token }}
2529
2630 - name : Create Branch
2731 shell : bash
@@ -64,13 +68,14 @@ runs:
6468 shell : bash
6569 run : echo FORK=$(gh repo fork --clone=false --default-branch-only 2>&1 | awk '{print $1}') >> $GITHUB_ENV
6670 env :
67- GH_TOKEN : ${{ inputs.token }}
71+ GH_TOKEN : ${{ inputs.fork- token }}
6872
6973 - name : Create PR
7074 uses : peter-evans/create-pull-request@5e914681df9dc83aa4e4905692ca88beb2f9e91f # v7.0.5
7175 with :
7276 push-to-fork : ${{ env.FORK }}
73- token : ${{ inputs.token }}
77+ token : ${{ inputs.pr-token }}
78+ branch-token : ${{ inputs.fork-token}}
7479 branch : changelog-${{ inputs.version }}
7580 base : ${{ inputs.branch }}
7681 delete-branch : true
0 commit comments