You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 7e31af6
Browse filesBrowse the repository at this point in the historyBrowse files
require_pattern scripts/sample-hf-bucket-storage.sh 'hf buckets info "\$BUCKET" --json''storage sampler must read HF bucket accounting'
208
-
require_pattern scripts/sample-hf-bucket-storage.sh 'hf buckets list "\$BUCKET" -R --json''storage sampler must read HF bucket visible tree'
209
+
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\.3"$''storage sampler must pin the module CLI click runtime'
211
+
require_pattern scripts/sample-hf-bucket-storage.sh 'HfApi\(\)\.bucket_info\(sys\.argv\[1\]\)''storage sampler must use structured HfApi bucket accounting'
212
+
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'
require_pattern .github/workflows/deploy-hf-space.yml 'scripts/export-space-bundle\.sh''workflow must export the wrapper boundary'
242
255
require_pattern .github/workflows/deploy-hf-space.yml 'scripts/verify-space-bundle\.sh''workflow must verify the wrapper boundary'
243
256
require_pattern .github/workflows/deploy-hf-space.yml 'Refuse a Space repository outside the wrapper boundary''workflow must fail closed on legacy Space files'
244
-
require_pattern .github/workflows/deploy-hf-space.yml 'hf download''workflow must read back the Space repository'
257
+
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'
258
+
require_pattern .github/workflows/deploy-hf-space.yml 'huggingface_hub\.cli\.hf upload''workflow must upload the Space repository through the pinned module CLI'
259
+
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\.3"''workflow must pin the module CLI click runtime'
261
+
require_pattern .github/workflows/deploy-hf-space.yml 'huggingface_hub==\$\{HF_CLI_VERSION\}''workflow must install the pinned huggingface_hub version'
262
+
require_pattern .github/workflows/deploy-hf-space.yml 'click==\$\{HF_CLI_CLICK_VERSION\}''workflow must install the pinned click version'
263
+
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'
264
+
require_pattern .github/workflows/deploy-hf-space.yml 'space_info''workflow must read Space metadata through HfApi'
265
+
if grep -Eq '(^|[^[:alnum:]_.-])hf[[:space:]]+(download|upload|spaces)([[:space:]]|$)' .github/workflows/deploy-hf-space.yml;then
266
+
echo"Contract check failed: deployment workflow must invoke the pinned HF CLI through its Python module entrypoint">&2
0 commit comments