Skip to content

DO-1766: Install safe-chain in all workflows that install npm packages - #191

Closed
tmthrgd-aligent wants to merge 1 commit into
mainfrom
feature/DO-1766_add_missing_safe-chain
Closed

tmthrgd-aligent wants to merge 1 commit into
mainfrom
feature/DO-1766_add_missing_safe-chain

Conversation

@tmthrgd-aligent

Copy link
Copy Markdown
Contributor

Add the existing "Install safe-chain" step before the first package install in every job that runs npm/yarn/pnpm (including global CLI installs and the Adobe I/O CLI setup action), matching the step already used in node-pr, node-publish, aws-cdk, nx-serverless-deployment, shopify-deploy and the Vercel deploy workflows.

Not covered: safe-chain only supports npm- and PyPI-based package managers, so it cannot protect the following:

  • php-quality-checks.yml (Composer): not supported by safe-chain. Composer 2.10+ blocks malicious packages by default using Aikido's threat feed via Packagist. The workflow installs composer:v2 through setup-php, which should resolve to the latest 2.x; pinning composer:2.10 or higher would guarantee this protection.
  • aem-sync-to-cloudmanager-repo.yml (Maven): not supported by safe-chain. Aikido only covers Maven via its separate paid Device Protection product.
  • magento-cloud-deploy.yml: installs the Magento Cloud CLI via curl | php, which no package manager tooling intercepts.

Refs:

Description of the proposed changes

Screenshots (if applicable)

Other solutions considered (if any)

Notes to PR author

⚠️ Please make sure the changes adhere to the guidelines mentioned in our contribution guide.

Notes to reviewers

ℹ️ When you've finished leaving feedback, please add a final comment to the PR tagging the author, letting them know that you have finished leaving feedback

Time Tracking

ABC-xxx: code review, select project XXXX

Add the existing "Install safe-chain" step before the first package
install in every job that runs npm/yarn/pnpm (including global CLI
installs and the Adobe I/O CLI setup action), matching the step already
used in node-pr, node-publish, aws-cdk, nx-serverless-deployment,
shopify-deploy and the Vercel deploy workflows.

Not covered: safe-chain only supports npm- and PyPI-based package
managers, so it cannot protect the following:

- php-quality-checks.yml (Composer): not supported by safe-chain.
  Composer 2.10+ blocks malicious packages by default using Aikido's
  threat feed via Packagist. The workflow installs composer:v2 through
  setup-php, which should resolve to the latest 2.x; pinning
  composer:2.10 or higher would guarantee this protection.
- aem-sync-to-cloudmanager-repo.yml (Maven): not supported by
  safe-chain. Aikido only covers Maven via its separate paid Device
  Protection product.
- magento-cloud-deploy.yml: installs the Magento Cloud CLI via
  `curl | php`, which no package manager tooling intercepts.

Refs:
- https://github.com/AikidoSec/safe-chain
- https://aikido.dev/blog/composer-protected-aikido-packagist

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Comment thread .github/workflows/changeset-check.yml Resolved
Comment thread .github/workflows/changeset-release.yml Resolved
Comment thread .github/workflows/gadget-deploy.yml Resolved
Comment thread .github/workflows/pwa-deployment.yml Resolved
Comment thread .github/workflows/shopify-theme-pr.yml Resolved
Comment thread .github/workflows/update-lockfile.yml Resolved
@tmthrgd-aligent

Copy link
Copy Markdown
Contributor Author

Closing in favour of #193.

@tmthrgd-aligent
tmthrgd-aligent deleted the feature/DO-1766_add_missing_safe-chain branch November 5, 2026 01:33
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.

1 participant