Skip to content

Commit ac5db4f

Browse files
committed
addressed comments
1 parent 9f02727 commit ac5db4f

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

databricks/sdk/credentials_provider.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -435,7 +435,9 @@ def github_oidc(cfg: "Config") -> Optional[CredentialsProvider]:
435435
Supported in GitHub Actions with OIDC service connections.
436436
"""
437437
return _oidc_credentials_provider(
438-
cfg=cfg, supplier_factory=lambda: oidc_token_supplier.GitHubOIDCTokenSupplier(), provider_name="GitHub OIDC"
438+
cfg=cfg,
439+
supplier_factory=lambda: oidc_token_supplier.GitHubOIDCTokenSupplier(),
440+
provider_name="GitHub OIDC",
439441
)
440442

441443

databricks/sdk/oidc_token_supplier.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
logger = logging.getLogger("databricks.sdk")
88

99

10+
# TODO: Check the required environment variables while creating the instance rather than in the get_oidc_token method to allow early return.
1011
class GitHubOIDCTokenSupplier:
1112
"""
1213
Supplies OIDC tokens from GitHub Actions.

0 commit comments

Comments
 (0)