File tree Expand file tree Collapse file tree 2 files changed +32
-2
lines changed Expand file tree Collapse file tree 2 files changed +32
-2
lines changed Original file line number Diff line number Diff line change @@ -91,6 +91,21 @@ functions:
9191 type : system
9292 params :
9393 directory : src
94+
95+ checkout_writeable :
96+ - command : github.generate_token
97+ params :
98+ expansion_name : generated_github_token
99+ owner : mongodb-js
100+ repo : mongosh
101+ permissions :
102+ contents : write
103+ - command : git.get_project
104+ type : system
105+ params :
106+ directory : src
107+ token : ${generated_github_token}
108+
94109 compile_ts :
95110 - command : expansions.write
96111 type : system
@@ -9690,7 +9705,7 @@ tasks:
96909705 - name : compile_ts
96919706 variant : linux_compile
96929707 commands :
9693- - func : checkout
9708+ - func : checkout_writeable
96949709 - func : install
96959710 vars :
96969711 node_js_version : " 20.18.3"
Original file line number Diff line number Diff line change @@ -100,6 +100,21 @@ functions:
100100 type: system
101101 params:
102102 directory: src
103+
104+ checkout_writeable:
105+ - command: github.generate_token
106+ params:
107+ expansion_name: generated_github_token
108+ owner: mongodb-js
109+ repo: mongosh
110+ permissions:
111+ contents: write
112+ - command: git.get_project
113+ type: system
114+ params:
115+ directory: src
116+ token: ${generated_github_token}
117+
103118 compile_ts:
104119 - command: expansions.write
105120 type: system
@@ -1467,7 +1482,7 @@ tasks:
14671482 - name: compile_ts
14681483 variant: linux_compile
14691484 commands:
1470- - func: checkout
1485+ - func: checkout_writeable
14711486 - func: install
14721487 vars:
14731488 node_js_version: "<% out(NODE_JS_VERSION_20) %>"
You can’t perform that action at this time.
0 commit comments