Skip to content

Commit 6e95291

Browse files
authored
fix: MEC-2423 fix token passing for release (#2417)
1 parent c523154 commit 6e95291

1 file changed

Lines changed: 11 additions & 1 deletion

File tree

.github/workflows/release.yaml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,10 @@ jobs:
3131
path: github-actions
3232
exportEnv: false
3333
secrets: |
34-
github/token/${{ github.event.repository.name }}-semantic-release token | GITHUB_TOKEN;
34+
secret/data/github/github_packages_write GITHUB_PACKAGES_WRITE_TOKEN | GITHUB_PACKAGES_WRITE_TOKEN;
35+
github/token/${{ github.event.repository.name }}-semantic-release token | GITHUB_TOKEN ;
36+
secret/data/github/automation-app-user GH_USER_NAME | GIT_COMMITTER_NAME ;
37+
secret/data/github/automation-app-user GH_USER_EMAIL | GIT_COMMITTER_EMAIL ;
3538
3639
- name: Get Automation Bot User ID
3740
id: get-user-id
@@ -95,6 +98,13 @@ jobs:
9598
fi
9699
env:
97100
GITHUB_TOKEN: ${{ steps.vault.outputs.GITHUB_TOKEN }}
101+
GH_TOKEN: ${{ steps.vault.outputs.GITHUB_TOKEN }}
102+
NPM_TOKEN: ${{ steps.vault.outputs.GITHUB_PACKAGES_WRITE_TOKEN }}
103+
NODE_AUTH_TOKEN: ${{ steps.vault.outputs.GITHUB_PACKAGES_WRITE_TOKEN }}
104+
GIT_AUTHOR_NAME: ${{ steps.vault.outputs.GIT_COMMITTER_NAME }}
105+
GIT_AUTHOR_EMAIL: ${{ steps.vault.outputs.GIT_COMMITTER_EMAIL }}
106+
GIT_COMMITTER_NAME: ${{ steps.vault.outputs.GIT_COMMITTER_NAME }}
107+
GIT_COMMITTER_EMAIL: ${{ steps.vault.outputs.GIT_COMMITTER_EMAIL }}
98108

99109
- name: Summary
100110
run: |

0 commit comments

Comments
 (0)