GitHub ホストレジストリへの自動 Dependabot アクセス機能の追加
本文の状態
日本語全文を表示中
詳細モードで約1分の本文を読めます。
同じ出来事の情報源
この情報源を基点に整理
GitHub Changelog
GitHub が、Dependabot にプライベートパッケージレジストリからの読み取り権限を付与する機能をリリースした。これにより、個人用アクセストークンなしで、リポジトリが管理アクションアクセスを通じて許可されたパッケージから依存関係を更新できるようになる。
Source Article
元記事を日本語で読む
本文に関係しない購読案内、埋め込み通知、サイト内プロモーションは除いています。
Dependabot は、パーソナルアクセストークンなしでプライベートな GitHub Packages レジストリから読み込みが可能になりました。パッケージ設定の「Manage Actions access」を通じてリポジトリへのアクセス権限が付与されている場合、Dependabot はその権限を再利用します。
何が変わったか
Dependabot の GITHUB_TOKEN は now パッケージの読み取りを要求できるようになり、*.pkg.github.com や ghcr.io からのプル時にこのトークンが送信されます。「Manage Actions access」を通じてリポジトリへのアクセス権限が付与されているパッケージは、通常の GitHub Actions ワークフローと同じくこれを許可します。
これは Dependabot がサポートするすべての GitHub Packages エコシステムで利用可能です。
有効化方法
Dependabot が読み込む必要がある各パッケージについて:
- パッケージの設定ページを開きます(組織アカウントまたは個人アカウントの「Packages」タブの下にあります)。
- 「Manage Actions access」セクションで、Dependabot を実行するリポジトリに「Read」アクセス権限を追加します。
dependabot.yml の変更は不要です。これらのパッケージのために追加した PAT ベースのレジストリエントリは削除できます。
さらに詳しく
ワークフローからのパッケージへのアクセス確保
Dependabot 用のプライベートレジストリへのアクセス設定
この投稿「Automatic Dependabot access to GitHub-hosted registries」は、The GitHub Blog で最初に公開されました。
原文を表示
Dependabot can now read from private GitHub Packages registries without a personal access token. If a package has granted your repository access through “Manage Actions access” in the package settings, Dependabot reuses that grant.
What’s new
Dependabot’s GITHUB_TOKEN can now request packages: read, and Dependabot jobs send that token when pulling from *.pkg.github.com and ghcr.io. Any package that has granted your repository access through “Manage Actions access” will accept it, the same as a regular GitHub Actions workflow.
This is available for every GitHub Packages ecosystem that Dependabot supports.
How to enable it
For each package Dependabot needs to read:
Open the package’s settings page (under your organization’s or personal account’s Packages tab).
Under “Manage Actions access”, add the repository that runs Dependabot with Read access.
You don’t need to change dependabot.yml, and you can remove any PAT-based registry entries you added for these packages.
Learn more
Ensuring workflow access to your package
Configuring access to private registries for Dependabot
The post Automatic Dependabot access to GitHub-hosted registries appeared first on The GitHub Blog.
関連記事
今日のまとめ
AIデイリーブリーフで今日の重要ニュースをまとめ読み