Skip to content

Commit 652780f

Browse files
committed
fix(deploy): pin cachetool phar to version 10.0.0 with sha256 verification
Replace the unpinned GitHub Pages download URL with a version-tagged GitHub Releases download and sha256sum verification. Prevents supply- chain risk from executing a compromised remote archive on production. Plan-by: glm-5.2 Acked-by: deepseek-v4-pro Signed-off-by: kyau <git@kyaulabs.com>
1 parent 3211b10 commit 652780f

1 file changed

Lines changed: 10 additions & 2 deletions

File tree

.opencode/commands/deploy.md

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,16 @@ opcache and FPM opcache are separate). The canonical server-side reset is:
5858
cachetool opcache:reset --fcgi=/run/php/php8.5-fpm.sock
5959
```
6060

61-
This requires `cachetool` installed on the production host
62-
(`curl -sO https://gordalina.github.io/cachetool/downloads/cachetool.phar`).
61+
This requires `cachetool` installed on the production host. Download and
62+
verify the specific release:
63+
64+
```bash
65+
CACHETOOL_VERSION="10.0.0"
66+
CACHETOOL_SHA256="cbe90e7acdde7beafe26b592a753c2b923a99d2033e073dc55e42fba2883bd1d"
67+
curl -sOL "https://github.com/gordalina/cachetool/releases/download/${CACHETOOL_VERSION}/cachetool.phar"
68+
echo "${CACHETOOL_SHA256} cachetool.phar" | sha256sum -c -
69+
```
70+
6371
If `cachetool` is unavailable, reload the FPM pool as a fallback:
6472

6573
```bash

0 commit comments

Comments
 (0)