Repository navigation
DO-2057: create composite action to install safe-chain - #193
Merged
Merged
Conversation
This composite action installs Aikido's safe-chain in the runner. It installs a fixed version and verifies it's SHA256 checksum. It also verifies that safe-chain is correctly installed and operational. Unfortunately Dependabot won't be able to alert us to safe-chain updates so these will have to be tracked manually.
…ction This replaces the manual curl | sh calls that install Aikido's safe-chain with our composite action. This new action verifies that the downloaded script hasn't been manipulated before running it. It also verifies that the install was successful.
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. This uses our new install-safe-chain composite action. 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>
This should address all of the failures raised.
AdamJHall
approved these changes
Nov 4, 2026
Contributor
Author
|
Just for the record I've tested it against one of our repos: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This composite action installs Aikido's safe-chain in the runner. It
installs a fixed version and verifies it's SHA256 checksum.
It also verifies that safe-chain is correctly installed and operational.
Unfortunately Dependabot won't be able to alert us to safe-chain updates
so these will have to be tracked manually.