File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 }}
You can’t perform that action at this time.
0 commit comments