Skip to content

Commit 79106c0

Browse files
prateek1497Prateek Awasthi
andauthored
feat: token name updated (#1652)
Co-authored-by: Prateek Awasthi <prateekawast@adobe.com>
1 parent 126abfa commit 79106c0

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.circleci/ci/ci.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ module.exports = class CI {
189189

190190
async postCommentToGitHubFromCI(commentText){
191191

192-
const {CIRCLE_PROJECT_USERNAME, CIRCLE_PROJECT_REPONAME, CIRCLE_PULL_REQUEST, ADOBE_BOT_GITHUB_TOKEN } = process.env
192+
const {CIRCLE_PROJECT_USERNAME, CIRCLE_PROJECT_REPONAME, CIRCLE_PULL_REQUEST, GITHUB_TOKEN } = process.env
193193
if(!CIRCLE_PULL_REQUEST) // its not a PULL request
194194
return
195195
const prNumber = CIRCLE_PULL_REQUEST.split('/').pop();
@@ -200,7 +200,7 @@ module.exports = class CI {
200200
const options = {
201201
method: 'POST',
202202
headers: {
203-
'Authorization': `Bearer ${ADOBE_BOT_GITHUB_TOKEN}`,
203+
'Authorization': `Bearer ${GITHUB_TOKEN}`,
204204
'User-Agent': 'CircleCI'
205205
}
206206
};

.github/workflows/sync-pr.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,4 +45,4 @@ jobs:
4545
git rebase ${{ steps.validate.outputs.base_ref }}
4646
git push --force origin ${{ steps.validate.outputs.head_ref }}
4747
env:
48-
ADOBE_BOT_GITHUB_TOKEN: ${{ secrets.ADOBE_BOT_GITHUB_TOKEN }}
48+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)