Repository navigation
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
マージ後の自動セキュリティレビュー(push 時)の指摘 2 件への対応。
変更内容
gh api …/properties/valuesの失敗を|| echo "[]"で握りつぶしていたため、custom property のみで運用する org では API 障害時にゲートが静かにスキップされ得た。→ 解決失敗はデプロイ失敗に(fail-closed)。HTTP 404(custom properties 非対応 = 個人リポ等)のみ vars フォールバックを許可。ペイロードの JSON 検証も追加。ci.yml / cd.yml 両方に適用。JSON.parse(最後のキー勝ち)と Apps Script API 側のパーサに別の値を見せられる可能性。→--normalizeオプションを追加し、CD(GitHub / GitLab)ではゲートが検証したオブジェクトそのものを manifest に書き戻してから clasp が push する。ローカル・CI の advisory 用途では従来どおり副作用なし。3 件目の指摘(同一ジョブ内で head ブランチコードがゲート前後に走る)は docs 記載済みの残存リスクとして対応済み(敵対的マージまで想定する場合の対策も docs に記載)。
Test plan
--normalizeありで重複キーが検証済み値に収斂、なしでファイル無変更)