Automate dependency updates with a scheduled Action
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 2/5
- Tempo stimato
- Mezza giornata
- Idoneità per principianti
- 68/100
- Tipo di issue
- Funzionalità
- Chiarezza
- Specificata chiaramente
- Stato di attività
- Tranquilla
- Stack tecnologico
- github-actions
- Ambito
- ci-cd
Direzione di ricerca
Inizia esaminando i workflow GitHub Actions e i manifest delle dipendenze già presenti nel repository, quindi confronta i relativi permessi e trigger dei test con il workflow pianificato proposto. Il lavoro è completo quando un workflow mensile usa la strategia non-breaking specificata e un'anzianità della release di 14 giorni, crea pull request di aggiornamento e un maintainer ha confermato la configurazione PAT richiesta.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
🚀 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
- Lingua principale
- Python
- Stelle
- 5k
- Fork
- 1.2k
- Merge medio
- 2g 13h
- PR unite (30g)
- 595
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di pytorch/executorch
-
good first issue module: examples module: webgpu
Difficoltà 5/5 Più di una settimana Idoneità per principianti 35/100
pytorch/executorch#23099 ·
-
good first issue module: examples module: vulkan
Difficoltà 5/5 Più di una settimana Idoneità per principianti 30/100
pytorch/executorch#23098 ·
-
good first issue module: cuda module: examples
Difficoltà 5/5 Più di una settimana Idoneità per principianti 30/100
pytorch/executorch#23097 ·
-
module: qnn partner: qualcomm
pytorch/executorch#23096 · 1 commento · 1 reazione · 1 assegnatario ·
-
pytorch/executorch#23058 · 1 reazione · 1 assegnatario ·
Tutte le issue di pytorch/executorch
Issue simili
-
area: harness bug status: needs-triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
Human-Agent-Society/reef#625 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 80/100
learningequality/kolibri#15351 · 2 commenti ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
-
Name consistency Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
eellak/triplestore#65 · 1 commento ·