devcontainers / devcontainers/ci

List minimum permissions in README.md

オープン
#249 コメント 0 件 リアクション 1 件 担当者 0 名 GitHub で見る
主要言語
TypeScript
スター
497
フォーク
102
PR マージ指標
30日以内にマージされた PR はありません

説明

GitHub recommends users limit the permissions of any third-party actions: [^1]

> - **Use credentials that are minimally scoped**
> - Make sure the credentials being used within workflows have the least privileges required, and be mindful that any user with write access to your repository has read access to all secrets configured in your repository.
> - Actions can use the `GITHUB_TOKEN` by accessing it from the `github.token` context. For more information, see "[Contexts](https://docs.github.com/en/actions/learn-github-actions/contexts#github-context)." You should therefore make sure that the `GITHUB_TOKEN` is granted the minimum required permissions. It's good security practice to set the default permission for the `GITHUB_TOKEN` to read access only for repository contents. The permissions can then be increased, as required, for individual jobs within the workflow file. For more information, see "[Automatic token authentication](https://docs.github.com/en/actions/security-guides/automatic-token-authentication#permissions-for-the-github_token)."

Can you please list the required permissions [^2] for the `devcontainers/ci` in a new section of the `README.md` and in the relevant code examples?

[^1]: [GitHub Docs, security hardening, using secrets](https://docs.github.com/en/actions/security-guides/security-hardening-for-github-actions#using-secrets)
[^2]: [GitHub Docs, workflow syntax, permissions](https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#permissions)

コントリビューションガイド

コントリビューションガイドを開く

調査の方向性

README.md と関連するコード例から始め、devcontainers/ci ワークフローで GITHUB_TOKEN やその他の認証情報がどのように使用されているかを確認します。新しい README セクションに必要最小限の権限を記載し、該当する例を更新して権限設定が一致するようにします。

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

評価

技術スタック
github-actions
領域
ci-cd, documentation
issue の種類
ドキュメント
難易度
3/5
見積もり時間
1〜2日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
38/100

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

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