Le lab promouvoir-un-deploiement-approuve : deux environnements, une approbation, la promotion par digest, le rollback sans rebuild
維護者通常 1 天內回覆
還沒有人認領這個 Issue。
評估
- 難度
- 4/5
- 預估耗時
- 3-5 天
- 新手友好度
- 56/100
- Issue 類型
- 功能
- 描述清晰度
- 描述清楚
- 活躍度
- 活躍
- 技術堆疊
- github-actions, python
- 領域
- ci-cd, devops, documentation, security
研究方向
Start with labs/deployer/promouvoir-un-deploiement-approuve/lab.yaml, scenario.md, challenge/, and solution/, then inspect the referenced lesson paths and run python3 scripts/valider-labs.py --lab . Done means validation reaches 100 after a replayable run, validation-labs.json records the verdict, solution actions pass pinact, zizmor, and actionlint, and meta.yml with tests/test_meta_declare_les_labs.py is green.
由索引模型根據 Issue 內容生成。
描述
Mesuré le 2026-09-25 sur le parcours github-actions.yaml et les leçons du blog.
Lab labs/deployer/promouvoir-un-deploiement-approuve, module deployer. Leçons éprouvées :
/docs/pipeline-cicd/github/deployer/lab-promotion//docs/pipeline-cicd/github/deployer/environments//docs/pipeline-cicd/github/deployer/protection-rules//docs/pipeline-cicd/github/deployer/rollback/
La page renvoie vers secure-python-pipeline/blob/main/.github/workflows/deploy.yml (l.241) : le fichier n'existe pas, le dépôt en a sept, aucun ne s'appelle ainsi. Le fork ne produit pas d'image seul (IMAGE en dur, Actions désactivées, pas de release copiée), et gh api user/packages exige le scope read:packages, absent par défaut.
Jouable avec act : non
Environnements protégés, approbation, rétention des secrets, historique des déploiements : plateforme. docker buildx imagetools inspect et gh attestation verify se jouent aussi hors CI.
Ce qui n'est pas qu'un copier-coller
Le déploiement n'est pas ce qu'on vérifie, c'est ce qu'on refuse. Le test plateforme lit gh api repos/$LAB_REPO/deployments?environment=production et exige un déploiement success précédé d'un état waiting (l'approbation), un run depuis une branche autre que main en échec (politique de branches), et deux empreintes de DEPLOY_TOKEN différentes dans les logs de staging et de production. Le rollback est un second déploiement du digest précédent, sans run de release.
Définition de terminé
-
lab.yamlrenseigné :module,doc_url,lessons,act(oui, partiel, non) etact_notesqui dit pourquoi -
scenario.mddécrit une situation et un objectif, pas un mode d'emploi ; aucun emoji, aucun tiret cadratin -
challenge/est un point de départ que l'apprenant modifie,solution/une solution de référence rejouable - chaque test lit l'état (résultat d'act, findings d'un scanner, réponse de
gh api), et le dernier exerce les deux côtés - la question « serait-il vert si l'apprenant ne faisait rien ? » a reçu non pour chaque test
-
python3 scripts/valider-labs.py --lab <id>rend 0 avant, 100 après, rejouable ; le verdict est dansvalidation-labs.json - les actions de la solution sont épinglées par SHA au tag mesuré ce jour, commentaire de version vérifié par
pinact run --check -
zizmor --offlineetactionlintrendent 0 sursolution/ - le lab est dans
meta.yml,tests/test_meta_declare_les_labs.pyest vert - quatre indices base64 de coût croissant dans
challenge/hints.yaml
- 主要語言
- Python
- 星號
- 7
- 分支
- 4
- 平均合併
- 2 天 10 小時
- 30 天內合併 PR
- 8
環境準備
- 沒有 Dockerfile 或 Docker Compose 檔案
- 沒有 Pull Request 範本
- 閱讀貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
stephrobert/github-actions-training 的其他 Issue
-
Le lab gh-piloter-les-runs : déclencher, suivre avec --exit-status, relancer les seuls jobs en échec未關閉
難度 4/5 3-5 天 新手友好度 68/100
stephrobert/github-actions-training#48 ·
維護者通常 1 天內回覆
-
難度 4/5 3-5 天 新手友好度 68/100
stephrobert/github-actions-training#47 ·
維護者通常 1 天內回覆
-
難度 4/5 3-5 天 新手友好度 68/100
stephrobert/github-actions-training#46 ·
維護者通常 1 天內回覆
-
難度 4/5 3-5 天 新手友好度 72/100
stephrobert/github-actions-training#45 ·
維護者通常 1 天內回覆
-
難度 4/5 3-5 天 新手友好度 68/100
stephrobert/github-actions-training#44 ·
維護者通常 1 天內回覆
查看 stephrobert/github-actions-training 的全部 Issue
相似的 Issue
-
難度 2/5 1-3 小時 新手友好度 67/100
LIF-Initiative/lif-core#1534 ·
維護者通常 1 天內回覆
-
bug frontend good first issue help wanted
難度 2/5 1-3 小時 新手友好度 89/100
nikhilb2/simple_invoicing#1231 ·
-
review-panel severity:low
難度 2/5 1-3 小時 新手友好度 76/100
kristovatlas/coin-accounting#498 ·
維護者通常 1 天內回覆
-
enhancement github_actions
難度 2/5 1-3 小時 新手友好度 76/100
QWED-AI/qwed-verification#703 ·
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 78/100
維護者通常 1 天內回覆