マスクされた変数とは?
マスクされた変数は、ログ出力中に出現するたびに伏字マーカーに置き換えられるよう runner に登録された値です。secret は自動的にマスクされ、スクリプトは実行時に追加の値をマスクできます。これは、認証情報を誤って出力してしまうことへの防御策です。
なぜ重要か
ログはしばしば共有、アーカイブ、または多くの人に見られるため、マスクされていない token は現実的な漏洩となります。マスクにより、出力に紛れ込んだ値が誰かに読まれる前に伏字にされます。ただし、これはベストエフォートです。マスクは完全一致の文字列のみを捕捉し、エンコードされたコピーや変換されたコピーは捕捉しません。
関連ガイド
What Is a Workflow Command?A workflow command is a specially formatted log line a step prints to instruct the runner to set output, mask…
What Is a Protected Variable?A protected variable is a CI variable exposed only to pipelines running on protected branches or tags, keepin…
What Is a File Variable?A file variable is a CI variable whose value the runner writes to a temporary file, exposing the file's path…