Github ActionsでFirebase Hostingへ自動デプロイしようとしたところ以下のエラーが出た
Run FirebaseExtended/action-hosting-deploy@v0
/home/runner/work/_actions/FirebaseExtended/action-hosting-deploy/v0/bin/action.min.js:3759
const error = new RequestError(message, status, ***
^
RequestError [HttpError]: Resource not accessible by integration
at /home/runner/work/_actions/FirebaseExtended/action-hosting-deploy/v0/bin/action.min.js:3759:31
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async createCheck (/home/runner/work/_actions/FirebaseExtended/action-hosting-deploy/v0/bin/action.min.js:5680:17)
at async run (/home/runner/work/_actions/FirebaseExtended/action-hosting-deploy/v0/bin/action.min.js:11435:14)
...
以下省略
対処法
GitHubのリポジトリのSettings→Actions→GeneralのWorkflow permissionsでRead and Write Permissonsを選択する。Allow Github Actions to create and approve pull requestsも選択する。