diff --git a/conanfile.py b/conanfile.py index d83fe9aa..d8459352 100644 --- a/conanfile.py +++ b/conanfile.py @@ -1,4 +1,5 @@ from io import StringIO +import os from os import path from conan import ConanFile @@ -139,7 +140,7 @@ def build(self): build_source_dir = self.build_path.parent.parent.as_posix() self.output.info("Uploading debug symbols to sentry") - self.run(f"sentry-cli debug-files upload --include-sources -o {sentry_org} -p {sentry_project} {build_source_dir}") + self.run(f"sentry-cli --auth-token {os.environ['SENTRY_TOKEN']} debug-files upload --include-sources -o {sentry_org} -p {sentry_project} {build_source_dir}") def package(self):