We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5cd75b2 commit 4cec0fcCopy full SHA for 4cec0fc
oidc-exchange.py
@@ -25,7 +25,14 @@ def debug(msg: str):
25
print(f"::debug::{msg}", file=sys.stderr)
26
27
28
-repository_url = os.getenv("INPUT_REPOSITORY_URL")
+def get_normalized_input(name: str) -> str | None:
29
+ name = f"INPUT_{name.upper()}"
30
+ if val := os.getenv(name):
31
+ return val
32
+ return os.getenv(name.replace("-", "_"))
33
+
34
35
+repository_url = get_normalized_input("repository-url")
36
if not repository_url:
37
# Easy case: no explicit repository URL, which means we're using PyPI and we can just
38
# hardcode the exchange endpoint and OIDC audience.
0 commit comments