Skip to content

Commit 4b4277a

Browse files
committed
🐛 Remove duplicate SDK release git auth
Let actions/checkout own the persisted GitHub Authorization header for SDK release pushes. The release workflows only need to configure the commit author before pushing version and changelog commits.
1 parent f44ce46 commit 4b4277a

6 files changed

Lines changed: 6 additions & 12 deletions

.github/workflows/release-ember-client.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -183,11 +183,10 @@ jobs:
183183
PACK_FILE=$(npm pack --ignore-scripts)
184184
echo "file=$PACK_FILE" >> $GITHUB_OUTPUT
185185
186-
- name: Reconfigure git auth
186+
- name: Configure git identity
187187
run: |
188188
git config --local user.email "${{ secrets.GIT_USER_EMAIL }}"
189189
git config --local user.name "${{ secrets.GIT_USER_NAME }}"
190-
git config --local http.https://github.com/.extraheader "AUTHORIZATION: basic $(echo -n x-access-token:${{ secrets.RELEASE_PAT || secrets.GITHUB_TOKEN }} | base64)"
191190
192191
- name: Commit and push changes
193192
run: |

.github/workflows/release-ruby-client.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -173,11 +173,10 @@ jobs:
173173
exit 1
174174
fi
175175
176-
- name: Reconfigure git auth
176+
- name: Configure git identity
177177
run: |
178178
git config --local user.email "${{ secrets.GIT_USER_EMAIL }}"
179179
git config --local user.name "${{ secrets.GIT_USER_NAME }}"
180-
git config --local http.https://github.com/.extraheader "AUTHORIZATION: basic $(echo -n x-access-token:${{ secrets.RELEASE_PAT || secrets.GITHUB_TOKEN }} | base64)"
181180
182181
- name: Commit and push changes
183182
run: |

.github/workflows/release-static-site-client.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -194,11 +194,10 @@ jobs:
194194
PACK_FILE=$(npm pack --ignore-scripts)
195195
echo "file=$PACK_FILE" >> $GITHUB_OUTPUT
196196
197-
- name: Reconfigure git auth
197+
- name: Configure git identity
198198
run: |
199199
git config --local user.email "${{ secrets.GIT_USER_EMAIL }}"
200200
git config --local user.name "${{ secrets.GIT_USER_NAME }}"
201-
git config --local http.https://github.com/.extraheader "AUTHORIZATION: basic $(echo -n x-access-token:${{ secrets.RELEASE_PAT || secrets.GITHUB_TOKEN }} | base64)"
202201
203202
- name: Commit and push changes
204203
run: |

.github/workflows/release-storybook-client.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -178,11 +178,10 @@ jobs:
178178
PACK_FILE=$(npm pack --ignore-scripts)
179179
echo "file=$PACK_FILE" >> $GITHUB_OUTPUT
180180
181-
- name: Reconfigure git auth
181+
- name: Configure git identity
182182
run: |
183183
git config --local user.email "${{ secrets.GIT_USER_EMAIL }}"
184184
git config --local user.name "${{ secrets.GIT_USER_NAME }}"
185-
git config --local http.https://github.com/.extraheader "AUTHORIZATION: basic $(echo -n x-access-token:${{ secrets.RELEASE_PAT || secrets.GITHUB_TOKEN }} | base64)"
186185
187186
- name: Commit and push changes
188187
run: |

.github/workflows/release-swift-client.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -172,11 +172,10 @@ jobs:
172172
working-directory: ./clients/swift
173173
run: swift test
174174

175-
- name: Reconfigure git auth
175+
- name: Configure git identity
176176
run: |
177177
git config --local user.email "${{ secrets.GIT_USER_EMAIL }}"
178178
git config --local user.name "${{ secrets.GIT_USER_NAME }}"
179-
git config --local http.https://github.com/.extraheader "AUTHORIZATION: basic $(echo -n x-access-token:${{ secrets.RELEASE_PAT || secrets.GITHUB_TOKEN }} | base64)"
180179
181180
- name: Commit and push changes
182181
run: |

.github/workflows/release-vitest-client.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -174,11 +174,10 @@ jobs:
174174
PACK_FILE=$(npm pack --ignore-scripts)
175175
echo "file=$PACK_FILE" >> $GITHUB_OUTPUT
176176
177-
- name: Reconfigure git auth
177+
- name: Configure git identity
178178
run: |
179179
git config --local user.email "${{ secrets.GIT_USER_EMAIL }}"
180180
git config --local user.name "${{ secrets.GIT_USER_NAME }}"
181-
git config --local http.https://github.com/.extraheader "AUTHORIZATION: basic $(echo -n x-access-token:${{ secrets.RELEASE_PAT || secrets.GITHUB_TOKEN }} | base64)"
182181
183182
- name: Commit and push changes
184183
run: |

0 commit comments

Comments
 (0)