Repository navigation
NuGet のライセンス・ワークフローの警告・Dependabot の漏れ・依存の脆弱性・ヘルプの Ruby を直す - #1450
Conversation
- SRCCore・SRCDataLinter・SRCSharpTools のパッケージに、ライセンス(GPL-3.0-or-later。ソースの各ファイルの 先頭と VS Code 拡張と同じ)とリポジトリの URL を入れる(Directory.Build.props)。push のたびに 「License missing」の警告が出ていた - SRCSharpAvaloniaTests の CS0618(Bitmap.Save(string, int?) は非推奨)を、PngBitmapEncoderOptions を渡す形にする - ヘルプの組み立てで、テーマ(just-the-docs 0.12)の SCSS が出す Dart Sass の非推奨の警告(60 件)を、 _config.yml の sass.silence_deprecations で出さない。テーマの側の書き方なので、こちらでは直せない Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016o9WHY8U3cQ2HiDnotdcP6
|
Azure Static Web Apps: Your stage site is ready! Visit it here: https://yellow-pebble-0ddb1c400-1450.eastasia.azurestaticapps.net |
|
Azure Static Web Apps: Your stage site is ready! Visit it here: https://icy-coast-005428600-1450.eastasia.azurestaticapps.net |
- ovsx はワークフローに ovsx@1.2.0 と直接書いていて、Dependabot の対象外だった(最新は 1.3.0)。 VS Code 拡張の devDependencies(^1.3.0)に移し、Publish-VSCode.yml は npm ci で入れたものを npx で使う - dependabot.yml に、対象にしないもの(データビューアの CSS を作る npm、SRCDataLinter の Docker の土台の イメージ)とその理由を書く Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016o9WHY8U3cQ2HiDnotdcP6
|
Azure Static Web Apps: Your stage site is ready! Visit it here: https://yellow-pebble-0ddb1c400-1450.eastasia.azurestaticapps.net |
|
Azure Static Web Apps: Your stage site is ready! Visit it here: https://icy-coast-005428600-1450.eastasia.azurestaticapps.net |
VS Code 拡張(npm audit が 11 件 → 0 件) - package.json の overrides で、minimatch を 11.0.4(11.0.1 で DoS を修正。拡張の本体に入る vscode-languageclient も使う)、glob を 14(minimatch 11 を使う版)、@vscode/test-cli の mocha を 拡張の mocha 12(serialize-javascript 7.1.4・diff 9)にそろえる - 組み立て・vsix の作成・拡張のテスト(4 件)が通ることを確かめた。外す時機は dependabot.yml に書く SRC#Help の Ruby(3.1.3 → 3.4) - Static Web Apps の組み立て(Oryx)が使える Ruby は 3.1.3 までで、保守が終わっている。CD-swa-help.yml で Jekyll を組み立て、組み立てた頁を送る(skip_app_build)ようにし、.ruby-version を 3.4 にする - Gem は Gemfile.lock のとおりに入れる(bundler-cache)。これまでは Ruby 3.1 で入れられない版を含む Gemfile.lock を、Oryx と CI が解決し直していた。Gemfile.lock の RUBY VERSION(3.1.3)は外す Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016o9WHY8U3cQ2HiDnotdcP6
|
Azure Static Web Apps: Your stage site is ready! Visit it here: https://yellow-pebble-0ddb1c400-1450.eastasia.azurestaticapps.net |
|
Azure Static Web Apps: Your stage site is ready! Visit it here: https://icy-coast-005428600-1450.eastasia.azurestaticapps.net |
組み立ては GitHub Actions で行い、Static Web Apps には組み立てた頁だけを送るので、Oryx の Ruby の対応 (3.1.3 まで)には縛られない。.ruby-version を 4.0 にし、Gemfile の ruby の指定(Oryx に合わせた ~> 3.1)も ~> 4.0 にする。Ruby 4.0.6 で Gemfile.lock のまま(frozen)入れ、JEKYLL_ENV=production で組み立てられ、 警告が無く、出来上がりが Ruby 3.4 のときと(CSS のソースマップのパスを除いて)同じことを確かめた。 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016o9WHY8U3cQ2HiDnotdcP6
|
Azure Static Web Apps: Your stage site is ready! Visit it here: https://yellow-pebble-0ddb1c400-1450.eastasia.azurestaticapps.net |
|
Azure Static Web Apps: Your stage site is ready! Visit it here: https://icy-coast-005428600-1450.eastasia.azurestaticapps.net |
概要
次の 5 つを直します。
変更
NuGet のパッケージのライセンス(
SRC.Sharp/Directory.Build.props)PackageLicenseExpressionをGPL-3.0-or-laterにしました。ソースの各ファイルの先頭(「GPL Ver.3 またはそれ以降」)と、VS Code 拡張のlicenseに合わせています。PackageProjectUrl・RepositoryUrlも入れました。ワークフローの警告
SRCSharpAvaloniaTests/SettingsTests.cs): 非推奨のBitmap.Save(string, int?)を、PngBitmapEncoderOptionsを渡す形にしました。_config.ymlのsass.silence_deprecationsで出さないようにしました。Dependabot
ovsx@1.2.0と直接書いていて、Dependabot の対象外でした。VS Code 拡張のdevDependencies(^1.3.0)に移し、npm ciで入れたものを使うようにしました。dependabot.ymlに書きました。VS Code 拡張の依存の脆弱性(
npm audit11 件 → 0 件)package.jsonのoverridesで上書きしました。外す時機はdependabot.ymlに書いています。minimatch→^11.0.4vscode-languageclientも使っているglob→^14.0.3@vscode/test-cliのmocha→ 拡張の mocha 12serialize-javascript6(high、RCE)・diff7SRC#Help の Ruby(3.1.3 → 4.0)
CD-swa-help.ymlで Jekyll を組み立て、組み立てた頁だけを送る形にしました(skip_app_build: true、app_location: SRC.Sharp.Help/_site)。.ruby-versionを4.0に、Gemfile のrubyの指定(Oryx に合わせた~> 3.1)を~> 4.0にしました。Gemfile.lockのとおりに入れます(bundler-cache)。Gemfile.lockを、Oryx と CI が黙って解決し直していました。Gemfile.lockのRUBY VERSION(3.1.3)は外しました。build-helpも同じ形にし、docs/testing.mdの「残っている課題」も書き換えました。確かめたこと
SRCSharpAvaloniaTestsの組み立てで警告が出ないこと(SettingsTests 11 件成功)。jekyll buildの警告が 60 件から 0 件になること。npm auditが 0 件になること。npm run compile、vsce packageで vsix を作れること、xvfb-run -a npm testで拡張のテスト 4 件が通ること。Gemfile.lockのまま(frozen)Gem を入れられること。足りない Gem はありませんでした。JEKYLL_ENV=productionで組み立てられ、警告が 0 件であること。CD-swa-help.yml)と CI のbuild-helpが成功し、プレビューでトップ・SRC#Webの使い方・アーカイブ(/vb/)・CSS が出ることを確かめました。Ruby 4.0 では、この push の CI とプレビューで確かめます。直していない警告(外のツールのもの)
DeprecationWarning(Buffer()・punycode・url.parse())🤖 Generated with Claude Code
https://claude.ai/code/session_016o9WHY8U3cQ2HiDnotdcP6