Skip to content

fix(repo): add supply chain attack mitigations#109

Merged
YusukeHirao merged 1 commit intomainfrom
fix/supply-chain-security
Apr 7, 2026
Merged

fix(repo): add supply chain attack mitigations#109
YusukeHirao merged 1 commit intomainfrom
fix/supply-chain-security

Conversation

@yusasa16
Copy link
Copy Markdown
Collaborator

@yusasa16 yusasa16 commented Apr 7, 2026

概要

d-zero-dev/frontend-env#884, d-zero-dev/frontend-env#886, d-zero-dev/frontend-env#887 と同様の変更をこのリポジトリに反映します。

変更内容

.yarnrc.yml

  • enableScripts: false — サードパーティパッケージのライフサイクルスクリプト(postinstall 等)を無効化
  • npmMinimalAgeGate: 7d — 公開から7日未満のパッケージをインストール・更新対象から除外(Yarn 4.10.0+)
  • defaultSemverRangePrefix: ''yarn add 時に ^/~ なしの固定バージョンでインストール

.github/renovate.json

  • minimumReleaseAge: "7 days" — 7日経過前はブランチを作成しない
  • internalChecksFilter: "strict" — クールダウン期間中は更新をブロック
  • osvVulnerabilityAlerts: true — OSVデータベースの脆弱性アラートを有効化
  • vulnerabilityAlerts.minimumReleaseAge: null — CVE対応のセキュリティ更新はクールダウンをバイパス

package.json

  • preparepostinstall — Yarn v4 が prepare を意図的にサポートしていないため

Test plan

  • yarn lint パス
  • yarn build パス
  • yarn test パス

- Add enableScripts: false to disable third-party lifecycle scripts
- Add npmMinimalAgeGate: 7d to block packages published within 7 days
- Add defaultSemverRangePrefix: '' to pin exact versions on yarn add
- Add minimumReleaseAge and vulnerability alert settings to renovate.json
- Change prepare to postinstall for Yarn v4 compatibility
@yusasa16 yusasa16 requested a review from YusukeHirao as a code owner April 7, 2026 06:09
@YusukeHirao YusukeHirao merged commit f46655f into main Apr 7, 2026
1 check passed
@YusukeHirao YusukeHirao deleted the fix/supply-chain-security branch April 7, 2026 06:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants