Skip to content

Commit 85607c6

Browse files
committed
fix: pass GH_TOKEN environment variable to scripts for authentication
1 parent e7c37fe commit 85607c6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

updater/action.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,8 @@ runs:
170170
- name: Get target changelog
171171
if: ${{ ( steps.target.outputs.latestTag != steps.target.outputs.originalTag ) && ( steps.root.outputs.changed == 'false') }}
172172
shell: pwsh
173+
env:
174+
GH_TOKEN: ${{ inputs.api-token }}
173175
run: |
174176
$changelog = ${{ github.action_path }}/scripts/get-changelog.ps1 `
175177
-RepoUrl '${{ steps.target.outputs.url }}' `
@@ -229,6 +231,7 @@ runs:
229231
shell: pwsh
230232
env:
231233
DEPENDENCY_PATH: ${{ inputs.path }}
234+
GH_TOKEN: ${{ inputs.api-token }}
232235
run: ${{ github.action_path }}/scripts/update-dependency.ps1 -Path $env:DEPENDENCY_PATH -Tag '${{ steps.target.outputs.latestTag }}'
233236

234237
- name: Update Changelog
@@ -237,6 +240,7 @@ runs:
237240
env:
238241
DEPENDENCY_NAME: ${{ inputs.name }}
239242
CHANGELOG_SECTION: ${{ inputs.changelog-section }}
243+
GH_TOKEN: ${{ inputs.api-token }}
240244
run: |
241245
${{ github.action_path }}/scripts/update-changelog.ps1 `
242246
-Name $env:DEPENDENCY_NAME `

0 commit comments

Comments
 (0)