ãã®è¨äºã®ã¾ã¨ã
- dependabot ã¯ä¾åé¢ä¿ãèªåã§ç®¡çããæ´æ°ãå¿ è¦ãªå ´åã«ãã«ãªã¯ã¨ã¹ããä½æãã¾ãã
.github/dependabot.yml
ãã¡ã¤ã«ãä½æãã¦ãdependabot ã®è¨å®ãè¡ãã¾ãã- è¤æ°ã®ã©ã¤ãã©ãªã®æ´æ°ãã°ã«ã¼ãåãã¦ã 1 ã¤ã®ãã«ãªã¯ã¨ã¹ãã«ã¾ã¨ãããã¨ãã§ãã¾ãã
- .NET ã® STS ãã¼ã¸ã§ã³ãç¡è¦ãã¦ã LTS ãã¼ã¸ã§ã³ã®ã¿ã®ãã«ãªã¯ã¨ã¹ããä½æãããã¨ãã§ãã¾ãã
dependabot ã¨ã¯
dependabot ã¯ãGitHub ãæä¾ããä¾åé¢ä¿ç®¡çãã¼ã«ã§ãã ããã¸ã§ã¯ãã®ä¾åé¢ä¿ãèªåçã«ãã§ãã¯ããæ´æ°ãå¿ è¦ãªå ´åã«ãã«ãªã¯ã¨ã¹ããä½æãã¦ããã¾ãã 常ã«ææ°ã®ã©ã¤ãã©ãªã使ç¨ãç¶ãããã¨ãã§ãããç¾ä»£ã®ã·ã¹ãã éçºã«ã¯ãã£ã¦ã¤ãã®ãã¼ã«ã ã¨æãã¾ãã
ãä»äºã§ãå¿ ãå°å ¥ããããã«ãã¦ãã¾ãã ã©ã¤ãã©ãªã®æ´æ°ãèªååããããã¨ã§ãããéçºã«éä¸ã§ããããã«ãªãã¾ãã ã¾ããã»ãã¥ãªãã£ãä¿ãããç¶æ ãä¿ã¤ãã¨ã«ãå½¹ç«ã¡ã¾ãã
dependabot ã®æ§ææ¹æ³
dependabot ãæ§æããã«ã¯ããªãã¸ããªã® .github
ãã£ã¬ã¯ããªã« dependabot.yml
ãã¡ã¤ã«ãä½æãã¾ãã
ãã®ãã¡ã¤ã«ã«ã¯ãdependabot ã管çããããã±ã¼ã¸ã·ã¹ãã ãã対象ã®ãã£ã¬ã¯ããªãªã©ãæå®ãã¾ãã
ãªãã¡ã¬ã³ã¹ã¯ä»¥ä¸ã«ããã¾ãã
.NET ã®ããã±ã¼ã¸ã管çãã dependabot.yml ã®ä½æ
ã¨ããããåãããã¨ããç®çã§ããã°ã dependabot.yml
ã以ä¸ã®ããã«è¨å®ãã¾ãããã
version: 2 updates: - package-ecosystem: "nuget" directory: "/" schedule: interval: "daily"
ããã§ã 1 æ¥ 1 å NuGet ããã±ã¼ã¸ã®æ´æ°ããªãã確èªããæ´æ°ãããã°èªåçã«ãã«ãªã¯ã¨ã¹ããä½æãã¦ããã¾ãã
ãã«ãªã¯ã¨ã¹ããã°ã«ã¼ãåãã
.NET ã®ããã±ã¼ã¸ã¯ãæ次㮠.NET SDK ã®æ´æ°ã«ãããã¦ãæ´æ°ã®æç¡ã«ãããããä¸æ¬ã§ãªãªã¼ã¹ãè¡ããã¦ãã¾ãã ãã¼ã¸ã§ãã³ã°ããªã·ã¼ã®ç°ãªãã©ã¤ãã©ãªãé¤ããååã¨ãã¦ãã¼ã¸ã§ã³çªå·ãããããªããã°ãªãã¾ããã åè¿°ã®è¨å®ã§ã¯ãã©ã¤ãã©ãªåå¥ã«ãã«ãªã¯ã¨ã¹ããä½æãããããããã¼ã¸ã§ã³å·®ç°ãçãã¦ãã¾ãã CI ãæåããªããªãã¾ãã ãã®ãããªãã¾ã¨ãã¦ä¸æ¬ã¢ãããã¼ãããè¡ãããå ´åã¯ã dependabot ã®ã°ã«ã¼ãåæ©è½ãå©ç¨ãã¾ãã
åè¿°ã®è¨å®ã«å¯¾ãã¦ã groups
ã追å ãããã¨ã§ããã«ãªã¯ã¨ã¹ããã°ã«ã¼ãåã§ãã¾ãã
以ä¸ã«ä¾ã示ãã¾ãã
version: 2 updates: - package-ecosystem: "nuget" directory: "/" schedule: interval: "daily" groups: dotnet-packages: patterns: - "Microsoft.AspNetCore*" - "Microsoft.EntityFrameworkCore*" - "Microsoft.Extensions*" nswag-packages: patterns: - "NSwag*"
groups
ç´ä¸ã«ã¯ãä»»æã®ã°ã«ã¼ãã®ååãè¨å®ãã¾ãã
ãã®ä¾ã§ã¯ã dotnet-packages
㨠nswag-packages
ã® 2 ã°ã«ã¼ããä½æãã¦ãã¾ãã
åã°ã«ã¼ãã«ã¯ããã®ã°ã«ã¼ãã«å±ããããã±ã¼ã¸åã®ãã¿ã¼ã³ã patterns
ã«å®ç¾©ãã¾ãã
ããã«ããã Microsoft.AspNetCore
/ Microsoft.EntityFrameworkCore
/ Microsoft.Extensions
ã§å§ã¾ãã©ã¤ãã©ãªã¨ã NSwag
ã§å§ã¾ãã©ã¤ãã©ãªã®æ´æ°ããããããã²ã¨ã¤ãã¤ã®ãã«ãªã¯ã¨ã¹ãã«ã¾ã¨ãããã¾ãã
ç¹ã« dotnet-packages
ã«ãããããã±ã¼ã¸ã¯ãä¾åé¢ä¿ãæã¤ãã®ãå¤ãã®ã§ãä¾åé¢ä¿ã®å´©ãã«ãã CI ã®å¤±æã大å¹
ã«æ¸ãããã¯ãã§ãã
ãªãæ¡ä»¶ã«åè´ããªã NuGet ããã±ã¼ã¸ã¯ã°ã«ã¼ãåããããããã±ã¼ã¸ãã¨ã«åå¥ã®ãã«ãªã¯ã¨ã¹ããä½æããã¾ãã
ç¹å®ãã¼ã¸ã§ã³ã¸ã®æ´æ°ãé¤å¤ãã
ããã ãã§ãã ãã¶ããæãã«ãªãã®ã§ããã .NET ã¯æ¯å¹´ STS 㨠LTS ã交äºã«ãªãªã¼ã¹ããä»çµã¿ã«ãªã£ã¦ãã¾ãã ç¹ã« STS ã®ãªãªã¼ã¹ãããå¹´ã¯ãææ°çã STS ã¨ãªããåè¿°ã®è¨å®ã§ã¯ dependabot ã STS ã®ãã¼ã¸ã§ã³ã®ã©ã¤ãã©ãªãæ¾ã£ã¦ãã¾ãã æ¬çªé©ç¨ããåæã ã¨ãã©ããã¦ã STS ã®ãã¼ã¸ã§ã³ãæ¡ç¨ããã®ã¯é£ãããåºæ¬çã«ã¯ LTS ã®ãã¼ã¸ã§ã³ãæ¡ç¨ããã¨æãã¾ãã ãã®ããã«ãç¹å®ã®ãã¼ã¸ã§ã³ã¸ã®æ´æ°ãé¤å¤ããè¨å®ãã dependabot ã§ã¯ã§ããããã«ãªã£ã¦ãã¾ãã 以ä¸ã«ä¾ã示ãã¾ãã
version: 2 updates: - package-ecosystem: "nuget" directory: "/" schedule: interval: "daily" groups: dotnet-packages: patterns: - "Microsoft.AspNetCore*" - "Microsoft.EntityFrameworkCore*" - "Microsoft.Extensions*" nswag-packages: patterns: - "NSwag*" ignore: - dependency-name: "Microsoft.AspNetCore*" versions: ["9.*"] - dependency-name: "Microsoft.EntityFrameworkCore*" versions: ["9.*"] - dependency-name: "Microsoft.Extensions*" versions: ["9.*"]
åè¿°ã® dependabot.yml
ã« ignore
ã»ã¯ã·ã§ã³ã追å ãã STS ã§ãã 9.*
ç³»ã®ããã±ã¼ã¸ã¸ã®æ´æ°ãããªãããè¨å®ãã¦ãã¾ãã
ããã«ããã dependabot ã¯ã 8.*
ç³»ã®ææ°ãã¼ã¸ã§ã³ãæ¾ã£ã¦ãã«ãªã¯ã¨ã¹ããä½æããããã«ãªãã¾ãï¼ 2024 å¹´ 12 æç¾å¨ï¼ã