We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 60d962c commit 24cb8f9Copy full SHA for 24cb8f9
charon/pkgs/radas_sign.py
@@ -321,9 +321,13 @@ async def generate_single_sign_file(
321
if not file_path or not signature:
322
logger.error("Invalid JSON entry")
323
return
324
- # remove the root path maven-repository
325
- filename = file_path.split("/", 1)[1]
326
+ parts = file_path.split("/", 1)
+ if len(parts) < 2:
327
+ logger.warning("Invalid entry: %s, skip signature file generation.", file_path)
328
+ return
329
+ # remove the root path maven-repository, valid file_path looks like: maven-repository/...
330
+ filename = parts[1]
331
artifact_path = os.path.join(top_level, filename)
332
asc_filename = f"{filename}.asc"
333
signature_path = os.path.join(top_level, asc_filename)
0 commit comments