Skip to content

chore: harden dependency supply chain and add security policy - #263

Merged
nikosxenakis merged 9 commits into
mainfrom
nikosxenakis/SDK-2664-security-hardening
Apr 14, 2026
Merged

chore: harden dependency supply chain and add security policy#263
nikosxenakis merged 9 commits into
mainfrom
nikosxenakis/SDK-2664-security-hardening

Conversation

@nikosxenakis

@nikosxenakis nikosxenakis commented Apr 13, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Add ignore-scripts=true to .npmrc to block all third-party lifecycle scripts during pnpm install
  • Add SECURITY.md with DFINITY's vulnerability disclosure policy and bug bounty reference
  • Add minimumReleaseAge: 10080 to pnpm-workspace.yaml to ignore dependency updates released less than 7 days ago.
  • Add explicit setup script and CI step (pnpm run setup) to run the postinstall steps
  • Patch audit vulnerabilities via pnpm.overrides

Note: minimumReleaseAgeExclude: [vite] is temporary — vite@7.3.2 was released 4 days ago and is below the 7-day threshold. Remove after 2026-04-16.

SDK-2664

Copilot AI review requested due to automatic review settings April 13, 2026 09:00
@nikosxenakis
nikosxenakis requested a review from a team as a code owner April 13, 2026 09:00
@nikosxenakis nikosxenakis changed the title Nikosxenakis/sdk 2664 security hardening chore(security): harden dependency supply chain and add security policy Apr 13, 2026
@nikosxenakis nikosxenakis changed the title chore(security): harden dependency supply chain and add security policy chore: harden dependency supply chain and add security policy Apr 13, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Note

Copilot was unable to run its full agentic suite in this review.

Security hardening for the pnpm-based SDK workspace by documenting vulnerability disclosure and tightening dependency/script policies.

Changes:

  • Added a SECURITY.md describing DFINITY’s vulnerability disclosure process and bug bounty reference.
  • Introduced pnpm dependency-update gating with minimumReleaseAge.
  • Added install-script restrictions via pnpm configuration and an .npmrc setting.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 4 comments.

File Description
pnpm-workspace.yaml Adds minimumReleaseAge to delay adoption of recently released dependency versions.
package.json Adds pnpm.onlyBuiltDependencies configuration intended to restrict lifecycle scripts.
SECURITY.md Introduces a security policy and reporting instructions.
.npmrc Disables lifecycle scripts globally with ignore-scripts=true.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread .npmrc
Comment thread package.json Outdated
Comment thread .npmrc
Comment thread SECURITY.md Outdated

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 5 out of 7 changed files in this pull request and generated 3 comments.

Files not reviewed (1)
  • pnpm-lock.yaml: Language not supported

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread package.json Outdated
Comment thread package.json Outdated
Comment thread pnpm-workspace.yaml
Nikolaos Xenakis and others added 4 commits April 13, 2026 13:14
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@nikosxenakis
nikosxenakis added this pull request to the merge queue Apr 14, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Apr 14, 2026
@nikosxenakis
nikosxenakis added this pull request to the merge queue Apr 14, 2026
Merged via the queue into main with commit 2af8d02 Apr 14, 2026
15 checks passed
@nikosxenakis
nikosxenakis deleted the nikosxenakis/SDK-2664-security-hardening branch April 14, 2026 09:52
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.

3 participants