Skip to content

Commit b4a1c06

Browse files
committed
fix(hfs): upgrade Click security pin
1 parent f64696d commit b4a1c06

4 files changed

Lines changed: 5 additions & 5 deletions

File tree

‎.github/workflows/deploy-hf-space.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ concurrency:
2727

2828
env:
2929
HF_CLI_VERSION: "1.5.0"
30-
HF_CLI_CLICK_VERSION: "8.3.1"
30+
HF_CLI_CLICK_VERSION: "8.3.3"
3131

3232
jobs:
3333
deploy:

‎docs/source-walkthrough.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -465,7 +465,7 @@ scripts/sample-hf-bucket-storage.sh \
465465
--ops-url https://blueskyxn-librefs-hfs.hf.space/_ops
466466
```
467467

468-
脚本固定验证 `huggingface_hub==1.5.0` 与 `click==8.3.1`,然后调用:
468+
脚本固定验证 `huggingface_hub==1.5.0` 与 `click==8.3.3`,然后调用:
469469

470470
- `HfApi().bucket_info("$bucket")`,生成只包含 bucket metadata 的结构化 JSON
471471
- `python3 -m huggingface_hub.cli.hf buckets list "$bucket" --recursive --format json`

‎scripts/sample-hf-bucket-storage.sh‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ set -Eeuo pipefail
33

44
DEFAULT_BUCKET="BlueSkyXN/librefs-hfs-data"
55
EXPECTED_HF_HUB_VERSION="1.5.0"
6-
EXPECTED_CLICK_VERSION="8.3.1"
6+
EXPECTED_CLICK_VERSION="8.3.3"
77
BUCKET="${HF_BUCKET_ID:-$DEFAULT_BUCKET}"
88
OPS_URL="${OPS_URL:-}"
99
INTERVAL=0

‎scripts/validate-contract.sh‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ require_pattern scripts/smoke-s3-curl.sh 'Refusing to use bucket' 'S3 smoke test
207207

208208
check "storage sampler script contract" test -f scripts/sample-hf-bucket-storage.sh
209209
require_pattern scripts/sample-hf-bucket-storage.sh '^EXPECTED_HF_HUB_VERSION="1\.5\.0"$' 'storage sampler must pin huggingface_hub 1.5.0'
210-
require_pattern scripts/sample-hf-bucket-storage.sh '^EXPECTED_CLICK_VERSION="8\.3\.1"$' 'storage sampler must pin the module CLI click runtime'
210+
require_pattern scripts/sample-hf-bucket-storage.sh '^EXPECTED_CLICK_VERSION="8\.3\.3"$' 'storage sampler must pin the module CLI click runtime'
211211
require_pattern scripts/sample-hf-bucket-storage.sh 'HfApi\(\)\.bucket_info\(sys\.argv\[1\]\)' 'storage sampler must use structured HfApi bucket accounting'
212212
require_pattern scripts/sample-hf-bucket-storage.sh 'python3 -m huggingface_hub\.cli\.hf buckets list' 'storage sampler must use the pinned module CLI for the visible tree'
213213
require_pattern scripts/sample-hf-bucket-storage.sh '"\$BUCKET" --recursive --format json' 'storage sampler must request recursive JSON visible-tree output'
@@ -257,7 +257,7 @@ require_pattern .github/workflows/deploy-hf-space.yml 'Refuse a Space repository
257257
require_pattern .github/workflows/deploy-hf-space.yml 'huggingface_hub\.cli\.hf download' 'workflow must read back the Space repository through the pinned module CLI'
258258
require_pattern .github/workflows/deploy-hf-space.yml 'huggingface_hub\.cli\.hf upload' 'workflow must upload the Space repository through the pinned module CLI'
259259
require_pattern .github/workflows/deploy-hf-space.yml 'HF_CLI_VERSION: "1\.5\.0"' 'workflow must pin huggingface_hub 1.5.0'
260-
require_pattern .github/workflows/deploy-hf-space.yml 'HF_CLI_CLICK_VERSION: "8\.3\.1"' 'workflow must pin the module CLI click runtime'
260+
require_pattern .github/workflows/deploy-hf-space.yml 'HF_CLI_CLICK_VERSION: "8\.3\.3"' 'workflow must pin the module CLI click runtime'
261261
require_pattern .github/workflows/deploy-hf-space.yml 'huggingface_hub==\$\{HF_CLI_VERSION\}' 'workflow must install the pinned huggingface_hub version'
262262
require_pattern .github/workflows/deploy-hf-space.yml 'click==\$\{HF_CLI_CLICK_VERSION\}' 'workflow must install the pinned click version'
263263
require_pattern .github/workflows/deploy-hf-space.yml 'get_space_variables' 'workflow must read Space Variables through HfApi because the pinned CLI has no Settings subcommands'

0 commit comments

Comments
 (0)