File tree Expand file tree Collapse file tree 1 file changed +15
-2
lines changed Expand file tree Collapse file tree 1 file changed +15
-2
lines changed Original file line number Diff line number Diff line change 12
12
check-parity-label :
13
13
runs-on : ubuntu-latest
14
14
if : github.event.action == 'labeled' && github.event.label.name == 'parity'
15
+ permissions :
16
+ contents : read
17
+ pull-requests : write
18
+ issues : write
15
19
steps :
16
20
- name : Check out repository code
17
21
uses : actions/checkout@v4
@@ -51,10 +55,19 @@ jobs:
51
55
52
56
console.log(`User ${context.actor} has ${permission.permission} access - proceeding with parity workflow`);
53
57
54
- - name : Create issue in TS SDK repository
58
+ - name : Generate GitHub App token
59
+ id : generate-token
60
+ uses : actions/create-github-app-token@v1
61
+ with :
62
+ app-id : ${{ secrets.PARITY_APP_ID }}
63
+ private-key : ${{ secrets.PARITY_APP_PRIVATE_KEY }}
64
+ owner : browserbase
65
+ repositories : stagehand
66
+
67
+ - name : Create issue in Python SDK repository
55
68
uses : actions/github-script@v7
56
69
with :
57
- github-token : ${{ secrets.TS_REPO_TOKEN }}
70
+ github-token : ${{ steps.generate-token.outputs.token }}
58
71
script : |
59
72
const { data: pullRequest } = await github.rest.pulls.get({
60
73
owner: context.repo.owner,
You can’t perform that action at this time.
0 commit comments