File tree Expand file tree Collapse file tree 1 file changed +14
-4
lines changed Expand file tree Collapse file tree 1 file changed +14
-4
lines changed Original file line number Diff line number Diff line change @@ -106,12 +106,22 @@ jobs:
106106 shopt -s nullglob
107107 for f in dist/*.whl dist/*.tar.gz; do
108108 out="${f}.intoto.jsonl"
109- if gh attestation download --repo "$REPO" "$f" --format=jsonl > "$out"; then
110- echo "Saved: $out"
111- else
112- echo "No attestation found yet for $f (continuing)"; rm -f "$out" || true
109+ ok=0
110+ # Give GitHub a few seconds to make the attestation queriable
111+ for i in 1 2 3 4 5; do
112+ # Note: no --format flag; write stdout to file
113+ if gh attestation download --repo "$REPO" "$f" -d sha256 > "$out"; then
114+ ok=1; break
115+ fi
116+ echo "Attestation not ready for $f (attempt $i/5). Sleeping 5s…"
117+ sleep 5
118+ done
119+ if [ "$ok" -ne 1 ]; then
120+ echo "WARNING: no attestation found for $f; continuing without ${out}"
121+ rm -f "$out" || true
113122 fi
114123 done
124+ ls -l dist || true
115125
116126 - name : Sign wheels and sdists (Sigstore)
117127 uses : sigstore/gh-action-sigstore-python@f7ad0af51a5648d09a20d00370f0a91c3bdf8f84
You can’t perform that action at this time.
0 commit comments