File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -57,19 +57,23 @@ jobs:
5757 with :
5858 identity : " 4cf15780a13a9b6576d8b357e6524554c8c12a18/aab27dc39ad870c9"
5959
60- - name : Vendor from CHAINGUARD_LIBRARIES
60+ - name : Verify Chainguard Library from CHAINGUARD_LIBRARIES
6161 if : env.OVERWRITE_CHAINGUARD_LIBRARIES == 'true'
6262 run : |
63- echo "Vendoring ultralytics from Chainguard Libraries..."
64-
65- mkdir -p tmp_wheels tmp_unzip
63+ set -euo pipefail
6664
67- eval $(chainctl auth pull-token --library-ecosystem=python --parent=cgr-demo.com --ttl=1m --output=env)
65+ echo "Verifying ultralytics from Chainguard Libraries..."
6866
67+ mkdir -p tmp_wheels tmp_unzip
68+ eval $(chainctl auth pull-token --library-ecosystem=python --parent=cgr-demo.com --ttl=1m --output=env)
6969 curl -L --user "$CHAINGUARD_PYTHON_IDENTITY_ID:$CHAINGUARD_PYTHON_TOKEN" \
7070 -o tmp_wheels/ultralytics-8.3.40-py3-none-any.whl \
71- https://libraries.cgr.dev/python/files/15f7d141c3b76b85/37e321caa85a8f41/ultralytics/ultralytics-8.3.40-py3-none-any.whl#sha256=b2b05c4c61b6a93fb4c7c052c47cd6c30ab7915131dee70a862da1a09acf3d85
72-
71+ chainctl libraries verify tmp_wheels/ultralytics-8.3.40-py3-none-any.whl
72+
73+ - name : Vendor from CHAINGUARD_LIBRARIES
74+ if : env.OVERWRITE_CHAINGUARD_LIBRARIES == 'true'
75+ run : |
76+
7377 unzip tmp_wheels/ultralytics-8.3.40-py3-none-any.whl -d tmp_unzip
7478 rm -rf vendor/ultralytics-chainguard || true
7579 mkdir -p vendor/ultralytics-chainguard
You can’t perform that action at this time.
0 commit comments