Remove world writable from install-dotnet.sh

オープン
#659 コメント 1 件 リアクション 2 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
1/5
見積もり時間
1時間未満
初心者へのやさしさ
55/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
停滞
技術スタック
typescript
領域
devops

調査の方向性

install-dotnet.sh が作成される src/installer.ts#L171 から始めます。現在のファイル権限を確認し、777 から 775 に更新します。生成されたスクリプトが全ユーザーから書き込み可能でなくなり、脆弱性スキャンでこの問題が報告されなくなれば完了です。

索引モデルが issue の本文から書いたものです。

説明

feature request

Description:
The script install-dotnet.sh is created on the following line:
https://github.com/actions/setup-dotnet/blob/main/src/installer.ts#L171

This creates a file on the filesystem with chmod 777 set making it world writable and triggering vulnerability scans. I would like to propose changing this to 775.

Justification:
To close open vulnerabilities for files with world writable permissions in directories that don't have a sticky bit set, update the permissions of install-dotnet.sh to 775.

Are you willing to submit a PR?
Yes I am willing to submit a PR.

主要言語
TypeScript
スター
1.2k
フォーク
575
平均マージ
13日 7時間
マージ済み PR(30日)
3

環境構築

  • Dockerfile・Docker Compose ファイルなし
  • プルリクエストのテンプレートあり
  • コントリビューションガイドなし

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

actions/setup-dotnet のほかの issue

actions/setup-dotnet の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。