Closed itome closed 1 year ago
@koji-1009 以下のようなエラーでFirebase Hostingへのデプロイに失敗しています。
/home/runner/work/_actions/FirebaseExtended/action-hosting-deploy/v0/bin/action.min.js:2102
throw new Error(`Input required and not supplied: ${name}`);
^
Error: Input required and not supplied: firebaseServiceAccount
GitHub Actionsはフォークしたブランチからフォーク元のシークレットを参照できないので、以下の記事のような対応が必要みたいです。 https://securitylab.github.com/research/github-actions-preventing-pwn-requests/
@itome お知らせありがとうございます!
単純に対応すると pull_request_target
を利用すれば良さそうなのですが、tokenの漏洩リスクを下げるために、何かしら挟んだほうが良さそうですね。対応検討しますので、少々お待ちください 🙇
PR: 113 preview link
@itome 遅くなりすいません! hostingのリンクを添付できるようになりました。現在問題があり、commitのたびにcommentが増えてしまいます。。 どちらも同じリンクとなるため、最新のコメントのリンクを参照していただければ、検証環境をご確認いただけるかと。不具合の修正には、もう少々お時間をください 🙏
上記問題解消しました!
@koji-1009 数日体調を崩しており対応遅くなりました! CIの実行にメンテナのApproveが必要と出ているのですが見ていただけますか?
@itome 実行しました!
preview更新されています。コメントにupdated atの日付が表示されているか、前のものを決して新規にコメントされる仕様にすると良さそうですね。。こちらは後ほど修正します 🙏
@koji-1009 ありがとうございます!実装完了したのでPRをあけました。
close: #112
https://github.com/rafgraph/spa-github-pages
こちらのリポジトリを参考に404ページに
index.html
へのリダイレクトを設定しました。