Skip to content

Commit

Permalink
attestations: don't use glob
Browse files Browse the repository at this point in the history
Signed-off-by: William Woodruff <william@trailofbits.com>
  • Loading branch information
woodruffw committed May 8, 2024
1 parent 045d0e1 commit 922d41c
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions attestations.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import glob
import os
import sys
from pathlib import Path
Expand Down Expand Up @@ -81,8 +80,8 @@ def attest_dist(dist: Path, signer: Signer) -> None:
die(cause)

# Collect all sdists and wheels.
dists = [Path(sdist).absolute() for sdist in glob.glob(packages_dir / "*.tar.gz")]
dists.extend(Path(whl).absolute() for whl in glob.glob(packages_dir / "*.whl"))
dists = [sdist.absolute() for sdist in packages_dir.glob("*.tar.gz")]
dists.extend(whl.absolute() for whl in packages_dir.glob("*.whl"))

with SigningContext.production().signer(oidc_token, cache=True) as signer:
for dist in dists:
Expand Down

0 comments on commit 922d41c

Please sign in to comment.