Skip to content

Commit 526b6dc

Browse files
authored
Update deploy.yml
1 parent 17010bd commit 526b6dc

1 file changed

Lines changed: 8 additions & 9 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -45,29 +45,28 @@ jobs:
4545
-H "Accept: application/vnd.github+json" \
4646
https://api.github.com/repos/${{ github.repository }}/issues/${{ github.event.pull_request.number }}/assignees \
4747
-d "{\"assignees\":[\"${{ github.actor }}\"]}"
48-
- name: list of teams reviewer via GitHub API
48+
- name: List teams via GitHub API
4949
env:
50-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
50+
ORG_PAT: ${{ secrets.PRODUCTION_REPO_ACCESS_TOKEN }}
5151
run: |
52-
curl -H "Authorization: token $GITHUB_TOKEN" \
52+
curl -H "Authorization: token $ORG_PAT" \
5353
-H "Accept: application/vnd.github+json" \
5454
https://api.github.com/orgs/Code-dot-mil/teams
5555
56-
57-
- name: check team reviewer via GitHub API
56+
- name: Check team reviewer via GitHub API
5857
env:
59-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
58+
ORG_PAT: ${{ secrets.PRODUCTION_REPO_ACCESS_TOKEN }}
6059
run: |
61-
curl -H "Authorization: token $GITHUB_TOKEN" \
60+
curl -H "Authorization: token $ORG_PAT" \
6261
-H "Accept: application/vnd.github+json" \
6362
https://api.github.com/orgs/Code-dot-mil/teams/ai4sdlc-reviewer
6463
6564
- name: Assign team reviewer via GitHub API
6665
env:
67-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
66+
ORG_PAT: ${{ secrets.ORG_PAT }}
6867
run: |
6968
curl -v -X POST \
70-
-H "Authorization: token $GITHUB_TOKEN" \
69+
-H "Authorization: token $PRODUCTION_REPO_ACCESS_TOKEN" \
7170
-H "Accept: application/vnd.github+json" \
7271
-H "Content-Type: application/json" \
7372
-d '{"team_reviewers":["ai4sdlc-reviewer"]}' \

0 commit comments

Comments
 (0)