Automate dependency updates with a scheduled Action
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 2/5
- Thời gian dự kiến
- Nửa ngày
- Mức phù hợp với người mới
- 68/100
- Loại issue
- Tính năng
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức độ hoạt động
- Ít trao đổi
- Công nghệ
- github-actions
- Lĩnh vực
- ci-cd
Hướng nghiên cứu
Bắt đầu bằng việc xem xét các workflow GitHub Actions hiện có và các manifest dependency của repository, sau đó so sánh các quyền và trigger kiểm thử của chúng với workflow theo lịch được đề xuất. Công việc được xem là hoàn tất khi một workflow chạy hằng tháng sử dụng chiến lược non-breaking được chỉ định và release age 14 ngày, tạo các pull request cập nhật, đồng thời maintainer đã xác nhận cấu hình PAT bắt buộc.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
🚀 The feature, motivation and pitch
Hi, thanks for creating and maintaining this package. I use it in some of my own projects and wanted to help make sure it stays secure and well maintained with the least effort from maintainers.
Looking through the commit history, dependency bumps look like they're done manually right now, but I've recently created a new GitHub Action called Update Dependencies that might help here: https://github.com/marketplace/actions/update-dependencies
It scans your package manager(s), opens a PR with version bumps, and labels each change as breaking or non-breaking (Depending on which strategy we use).
Suggested setup for this repo:
- Run it monthly, non-breaking updates only, so not much manual review is needed.
- Set min-release-age-days to 14 (default is 3, similar to Github's Dependabot). That gives the community about two weeks to catch bugs or security issues in a new release before it lands here.
- If you already run tests on every PR (which it seems you do), no extra config needed; your CI just checks the update PR like any other PR.
One thing worth noting: the GitHub token should be a PAT rather than the default token, so your CI actually triggers on the PR it opens. That'd need an admin to create and maintain.
Example workflow:
name: Update Dependencies
on:
schedule:
- cron: '0 2 1 * *' # monthly, 1st of month at 02:00 UTC
workflow_dispatch:
permissions:
contents: write
pull-requests: write
jobs:
update:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: yanovian/update-dependencies-action@v1
with:
update-strategy: non-breaking
min-release-age-days: 14
create-pull-request: true
github-token: ${{ secrets.PAT_TOKEN }}
What do you think? Happy to help set it up if useful.
Alternatives
Manual update or "custom scripts" but none of them actually check with the list of CVEs, and also it is not easy to check the update time for every single package.
Additional context
No response
RFC (Optional)
No response
- Ngôn ngữ chính
- Python
- Star
- 5k
- Fork
- 1.2k
- Merge trung bình
- 2 ngày 12 giờ
- Pull request đã merge (30 ngày)
- 588
Hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của pytorch/executorch
-
enhancement module: cuda module: examples module: mlx module: vulkan module: xnnpack
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
pytorch/executorch#23131 · 1 reaction ·
-
bug module: qnn module: quantization
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 55/100
pytorch/executorch#23108 ·
-
good first issue module: examples module: webgpu
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 35/100
pytorch/executorch#23099 ·
-
good first issue module: examples module: vulkan
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 30/100
pytorch/executorch#23098 ·
-
good first issue module: cuda module: examples
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 30/100
pytorch/executorch#23097 ·
Tất cả issue của pytorch/executorch
Issue tương tự
-
agent-ready documentation needs-triage
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 88/100
-
documentation
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 91/100
-
workflow-status page template still says reusable workflows are "triggered only by workflow_call:" Đang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 92/100
-
Add https://search.jeremyh.xyz/ Đang mởinstance instance add
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 72/100
searxng/searx-instances#939 · 1 bình luận ·
-
area-deployment area-integrations triage:bot-seen
Độ khó 2/5 Nửa ngày Mức phù hợp với người mới 86/100