Do not allow uploading the token as an asset

This commit is contained in:
Alexis Métaireau 2024-07-08 20:48:27 +02:00 committed by Alex Pyrgiotis
parent e87547d3a6
commit df3f8f7cb5
No known key found for this signature in database
GPG key ID: B6C15EBA0357C9AA

View file

@ -104,6 +104,8 @@ def main():
if args.token:
log.debug(f"Reading token from {args.token}")
# Ensure we are not uploading the token as an asset
assert args.file != args.token
with open(args.token) as f:
token = f.read().strip()
else: