umask 値とは何か?
umask 値は、プログラムがファイルやディレクトリを作成する際に要求するパーミッションから、どのパーミッションビットを取り除くかを指定する、各プロセスが継承する設定です。たとえば一般的な umask は、グループとその他に対する書き込みアクセスを取り除きます。結果として得られるパーミッションは、要求されたモードから umask のビットを取り除いたものになります。
なぜ重要なのか
runner 上で予期しない umask になると、build の出力が他のステップやユーザーから読み取れなくなり、パーミッション拒否の失敗を引き起こすことがあります。明示的に設定することで、生成されるファイルのパーミッションを job 間で予測可能に保てます。
関連ガイド
What Are File Mode Bits?File mode bits are the permission and type flags on a file that encode who may read, write, or execute it, us…
What Are Owner, Group, and Other Permissions?Owner, group, and other are the three permission classes Unix applies to each file, granting separate read, w…
What Is the Setgid Bit?The setgid bit runs an executable with its group privileges, or on a directory makes new files inherit that d…