Skip to content

Commit 9237ea8

Browse files
authored
Add a warning about running scripts from the internet (#242)
1 parent cd2bbf6 commit 9237ea8

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

README.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,28 @@ To get started quickly with UniDep, run the following command. This will downloa
9494
> [!NOTE]
9595
> Micromamba and uv are recommended to optimize your installation experience, but they are not required if you prefer to use your existing Conda and pip setup.
9696
97+
> [!WARNING]
98+
> NEVER! run scripts from the internet without understanding what they do. Always inspect the script first!
99+
100+
<details>
101+
<summary>Pin the hash of the bootstrap script with:</summary>
102+
103+
<!-- CODE:BASH:START -->
104+
<!-- HASH=$(git log -n 1 --pretty=format:"%H" -- bootstrap.sh) -->
105+
<!-- echo '```bash' -->
106+
<!-- echo '"${SHELL}"' '<(curl -LsSf raw.githubusercontent.com/basnijholt/unidep/'"$HASH"'/bootstrap.sh)' -->
107+
<!-- echo '```' -->
108+
<!-- CODE:END -->
109+
<!-- OUTPUT:START -->
110+
<!-- ⚠️ This content is auto-generated by `markdown-code-runner`. -->
111+
```bash
112+
"${SHELL}" <(curl -LsSf raw.githubusercontent.com/basnijholt/unidep/0e6b57113a5595f6560eef45d19fa44077cebe7f/bootstrap.sh)
113+
```
114+
115+
<!-- OUTPUT:END -->
116+
117+
</details>
118+
97119
## :package: Installation
98120

99121
To install `unidep`, run one of the following commands that use [`pipx`](https://pipx.pypa.io/) (recommended), `pip`, or `conda`:

0 commit comments

Comments
 (0)