File tree Expand file tree Collapse file tree 2 files changed +7
-0
lines changed
src/init/features/hosting Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Original file line number Diff line number Diff line change 44 that this is a preview feature and if you find any bugs, please file them
55 here: < https://github.com/firebase/firebase-tools/issues > .
66- Improve FAH onboarding flow to connect backends with SCMs (#6764 ).
7+ - Fixed issue where GitHub actions would fail due to lack of permission. (#6791 )
Original file line number Diff line number Diff line change @@ -277,6 +277,7 @@ function mkdirNotExists(dir: string): void {
277277type GitHubWorkflowConfig = {
278278 name : string ;
279279 on : string | { [ key : string ] : { [ key : string ] : string [ ] } } ;
280+ permissions ?: string | { [ key : string ] : string } ;
280281 jobs : {
281282 [ key : string ] : {
282283 if ?: string ;
@@ -300,6 +301,11 @@ function writeChannelActionYMLFile(
300301 const workflowConfig : GitHubWorkflowConfig = {
301302 name : "Deploy to Firebase Hosting on PR" ,
302303 on : "pull_request" ,
304+ permissions : {
305+ checks : "write" ,
306+ contents : "read" ,
307+ "pull-requests" : "write" ,
308+ } ,
303309 jobs : {
304310 [ "build_and_preview" ] : {
305311 if : "${{ github.event.pull_request.head.repo.full_name == github.repository }}" , // secrets aren't accessible on PRs from forks
You can’t perform that action at this time.
0 commit comments