Commit graph

1160 commits

Author SHA1 Message Date
Sander Declerck
6815b62019
Allow to exclude packages from the minimum package age 2026-01-14 17:41:23 +01:00
bitterpanda
5898fc851a
Merge pull request #292 from AikidoSec/retry-malware-db-download
Retry downloading the malware database 3 times
2026-01-14 15:58:39 +01:00
bitterpanda
9d55afbf85
Update packages/safe-chain/src/api/aikido.js 2026-01-14 15:33:09 +01:00
Sander Declerck
6f4eaf5234
Don't swallow error on retry 2026-01-14 15:31:37 +01:00
Sander Declerck
a5d545f29b
Handle pr comments 2026-01-14 14:55:11 +01:00
Sander Declerck
8d2655a4bf
Add tests for malware db retry 2026-01-14 14:41:06 +01:00
Sander Declerck
d83a381231
Retry downloading the malware database 3 times 2026-01-14 14:02:27 +01:00
Reinier Criel
045fc1519b
Merge pull request #288 from slootjes/patch-1
Add Bitbucket Pipelines example
2026-01-13 21:16:01 +01:00
Reinier Criel
b592da7431
Merge pull request #290 from AikidoSec/feature/logging-for-min-package-age
Include package name in logging when minimum package age is not met
2026-01-13 19:52:14 +01:00
bitterpanda
c38f1bcb3e
Update packages/safe-chain/src/registryProxy/interceptors/npm/modifyNpmInfo.js 2026-01-13 19:33:00 +01:00
Reinier Criel
f678ff8dd1 Include package name in logging when minimum package age is not met 2026-01-13 10:09:59 -08:00
Robert Slootjes
b25d405972
Add Bitbucket Pipelines example 2026-01-13 08:19:10 +01:00
Reinier Criel
340e9a90a5 Remove comment 2026-01-12 15:13:34 -08:00
Reinier Criel
9a902af917 Fix some logic 2026-01-12 15:12:19 -08:00
Reinier Criel
19652c49c9 Attempted fix for powershell swallowing '--' 2026-01-12 14:53:23 -08:00
Sander Declerck
31b5f73197
Merge pull request #285 from AikidoSec/logging-as-env-variable
Allow to configure loglevel through an env variable
2026-01-12 12:41:13 +01:00
Sander Declerck
595f269f62
Add comment about backwards compat. 2026-01-12 11:20:25 +01:00
Sander Declerck
20994c1834
Document to configure loglevel through env variables. 2026-01-12 11:01:54 +01:00
Sander Declerck
3573ef2bc5
Allow to configure loglevel through an env variable 2026-01-12 10:50:06 +01:00
Sander Declerck
6d2d943e18
Merge pull request #284 from AikidoSec/troubleshooting-packagemanager-cache
Add a section about troubleshooting when the package is already in the cache
2026-01-09 09:28:39 +01:00
Uriel Corfa
0ce0a87557
Add the same handler for fish 2026-01-08 10:01:13 +01:00
Uriel Corfa
4e894dd0fd
init-posix: preserve arguments when exec'ing the original_cmd 2026-01-08 09:56:59 +01:00
Sander Declerck
6a70898e7b
Remove "optional" from "Clean local installation artifacts" 2026-01-08 08:01:48 +01:00
Sander Declerck
59f8b55bda
Add a section about troubleshooting when the package is already in the cache 2026-01-08 08:00:26 +01:00
Uriel Corfa
3bfca9e296
Propagate command-not-found errors when invoking wrapped commands
Before this change, if a package manager was not installed, safe-chain still
sets the function and when invoked, the wrapper will invoke safe-chain, which
will exit with error code 127 when it fails to invoke the wrapped command. As an
example (with a shell prompt that shows $? when non-zero):

```
$ type -f pip
bash: type: pip: not found
1$ pip
127$
```

With this patch, the wrapper first checks for the existence of the wrapped
command (ignoring functions), and if no such command exists, it instructs the
shell to invoke it anyway. This results in the shell failing to find the
command, and reporting an error as if the wrapper function wasn't there:

```
$ source init-posix.sh
$ type -f pip
bash: type: pip: not found
1$ pip
Command 'pip' not found, but can be installed with:
sudo apt install python3-pip
127$
```
2026-01-07 17:18:48 +01:00
Sander Declerck
4a63f976ae
Merge pull request #280 from AikidoSec/fix-broken-compatibility-in-install-beta
Fix broken compatibility in install
2026-01-07 14:40:36 +01:00
Sander Declerck
43eda4fadf
Add deprecation message to powershell version as well 2026-01-07 14:20:16 +01:00
Sander Declerck
6820e1e76c
Fix broken compatibility in install 2026-01-07 14:09:18 +01:00
Sander Declerck
094d1416ca
Merge pull request #272 from graemechapman/patch-1
fix: Allow running commands if safe-chain npm package is not installed
2026-01-07 12:03:19 +01:00
Sander Declerck
b215474271
Merge pull request #273 from AikidoSec/docker-standalone-exec
Safe-chain standalone binaries for docker
2026-01-07 12:01:33 +01:00
Sander Declerck
b2a5336556
Use latest build of safe-chain in CI again 2026-01-07 11:39:22 +01:00
Sander Declerck
7a4b7057bc
Test on gh actions 2026-01-07 09:40:40 +01:00
Sander Declerck
8fc3727b88
Merge branch 'docker-standalone-exec' into docker-standalone-exec-beta 2026-01-07 08:55:34 +01:00
Sander Declerck
b19d67f853
Add linuxstatic artifact to release 2026-01-07 08:55:20 +01:00
Sander Declerck
17d567d0bb
Merge branch 'docker-standalone-exec' into docker-standalone-exec-beta 2026-01-07 08:49:18 +01:00
Sander Declerck
ffaf7b60b6
Merge branch 'main' into docker-standalone-exec 2026-01-07 08:48:30 +01:00
bitterpanda
0a7b096abf
Merge pull request #277 from AikidoSec/add-troubleshooting-docs
Add troubleshooting docs
2026-01-06 16:07:51 +01:00
Sander Declerck
504b3ca596
Update Conflicting Installations note 2026-01-06 16:04:15 +01:00
Sander Declerck
e8f993623b
Add troubleshooting docs 2026-01-06 15:48:15 +01:00
bitterpanda
5ebbf5c6b2
Merge pull request #276 from AikidoSec/cleanup-nvm-in-install-script-beta 2026-01-06 13:06:40 +01:00
Sander Declerck
1f4e50df9d
Checkout code in set version 2026-01-06 11:51:01 +01:00
Sander Declerck
66c1da0f1e
Rework release workflow (split npm and github release), and skip npm publish for prereleases 2026-01-06 11:48:06 +01:00
Sander Declerck
4e098bcff7
Change order of removal for npm-based installations 2026-01-06 11:23:47 +01:00
Sander Declerck
4aca6ef86a
Restore publish script 2026-01-06 10:54:34 +01:00
Sander Declerck
d7d5bacd21
Remove warning from readme 2026-01-06 10:53:32 +01:00
Sander Declerck
5a28d6646f
Update comments 2026-01-06 10:53:24 +01:00
Sander Declerck
10a2407b32
Source nvm in script 2026-01-06 10:43:15 +01:00
Sander Declerck
6bbd3f5955
Add nvm detection to uninstall script 2026-01-06 10:35:10 +01:00
Sander Declerck
efe3b24ab9
Comment npm publish step 2026-01-06 10:07:40 +01:00
Sander Declerck
24230da4a7
Add nvm safe-chain uninstallation in install script 2026-01-06 10:05:52 +01:00