Skip to content

Commit 3c2bf86

Browse files
committed
Remove gh token for generation and conditionally pass it for evaluation
1 parent b17e2d6 commit 3c2bf86

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

changelog/submit/action.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ runs:
150150
if: steps.pr-data.outputs.proceed == 'true'
151151
shell: bash
152152
env:
153-
GITHUB_TOKEN: ${{ inputs.github-token }}
153+
GITHUB_TOKEN: ${{ steps.pr-data.outputs.is-fork != 'true' && inputs.github-token || '' }}
154154
CONFIG_FILE: ${{ steps.config.outputs.config-path || inputs.config }}
155155
REPO_OWNER: ${{ github.repository_owner }}
156156
REPO_NAME: ${{ github.event.repository.name }}
@@ -183,7 +183,6 @@ runs:
183183
if: steps.evaluate.outputs.should-generate == 'true'
184184
shell: bash
185185
env:
186-
GITHUB_TOKEN: ${{ inputs.github-token }}
187186
CONFIG_FILE: ${{ steps.config.outputs.config-path || inputs.config }}
188187
CHANGELOG_PR_NUMBER: ${{ steps.pr.outputs.number }}
189188
CHANGELOG_TITLE: ${{ steps.evaluate.outputs.title }}

0 commit comments

Comments
 (0)