Skip to content

Commit

Permalink
sct, oidc: doc diagnostics methods
Browse files Browse the repository at this point in the history
Signed-off-by: Andrew Pan <a@tny.town>
  • Loading branch information
tnytown committed Mar 9, 2023
1 parent d1b86c9 commit 2f6ffb7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions sigstore/_internal/sct.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,7 @@ class InvalidSCTError(Error):
"""

def diagnostics(self) -> str:
"""Returns diagnostics for the error."""
# We specialize this error case, since it usually indicates one of
# two conditions: either the current sigstore client is out-of-date,
# or that the SCT is well-formed but invalid for the current configuration
Expand Down
1 change: 1 addition & 0 deletions sigstore/oidc.py
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,7 @@ class GitHubOidcPermissionCredentialError(AmbientCredentialError):
"""

def diagnostics(self) -> str:
"""Returns diagnostics for the error."""
return f"""
Insufficient permissions for GitHub Actions workflow.
Expand Down

0 comments on commit 2f6ffb7

Please sign in to comment.