![](/img/trans.png)
[英]How can I check if Dependabot is enabled for a Repo using Github APIs?
[英]GitHub Dependabot Doesn't Have Permissions To Publish to GHCR How Can I Give It Access
我有一個存儲庫,可以構建、標記容器圖像並將其發布到 GitHub 的 ghcr.io,但是它無法在 dependabot 操作上發布並破壞我所有正在執行每個容器圖像的構建、標記和發布的管道。 這是我最初擁有的 dependabot 代碼:
version: 2
updates:
- package-ecosystem: github-actions
directory: "/"
schedule:
interval: monthly
time: "13:00"
現在我閱讀了以下關於如何讓它訪問注冊表的文檔:
我想我會試試這個:
version: 2
registries:
ghcr: # Define access for a private registry
type: docker-registry
url: ghcr.io
username: ${{ github.repository_owner }}
password: ${{secrets.GHCR_REGISTRY_TOKEN}}
updates:
- package-ecosystem: github-actions
directory: "/"
registries:
- ghcr
schedule:
interval: monthly
time: "13:00"
不幸的是,它仍然不喜歡它,隨后破壞了我所有的管道。 如何配置 Dependabot 以便能夠將我所有的容器包推送到 ghcr.io?
Dependabot 秘密單獨存儲在 repo 的秘密部分,請按照 此文檔進行配置
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.