Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Sweep GHA Fix] Fix the failing GitHub Actions on 8d6faf5 (master) #9

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion libs/langchain/langchain/tools/github/tool.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,11 @@
run_manager: Optional[CallbackManagerForToolRun] = None,
) -> str:
"""Use the GitHub API to run an operation."""
return self.api_wrapper.run(self.mode, instructions)
if 'workload_identity_provider' not in instructions and 'credentials_json' not in instructions:

Check failure on line 32 in libs/langchain/langchain/tools/github/tool.py

View workflow job for this annotation

GitHub Actions / lint / build (3.11)

Ruff (E501)

langchain/tools/github/tool.py:32:89: E501 Line too long (103 > 88)
raise ValueError('One of workload_identity_provider or credentials_json must be provided.')

Check failure on line 33 in libs/langchain/langchain/tools/github/tool.py

View workflow job for this annotation

GitHub Actions / lint / build (3.11)

Ruff (E501)

langchain/tools/github/tool.py:33:89: E501 Line too long (103 > 88)

if 'workload_identity_provider' in instructions and 'credentials_json' in instructions:

Check failure on line 35 in libs/langchain/langchain/tools/github/tool.py

View workflow job for this annotation

GitHub Actions / lint / build (3.11)

Ruff (E501)

langchain/tools/github/tool.py:35:89: E501 Line too long (95 > 88)
raise ValueError('Only one of workload_identity_provider or credentials_json should be provided.')

Check failure on line 36 in libs/langchain/langchain/tools/github/tool.py

View workflow job for this annotation

GitHub Actions / lint / build (3.11)

Ruff (E501)

langchain/tools/github/tool.py:36:89: E501 Line too long (110 > 88)

# Ensure that necessary input values are injected into the environment when using GitHub secrets

Check failure on line 38 in libs/langchain/langchain/tools/github/tool.py

View workflow job for this annotation

GitHub Actions / lint / build (3.11)

Ruff (E501)

langchain/tools/github/tool.py:38:89: E501 Line too long (104 > 88)
# Update the error message to provide clear instructions on how to resolve the issue

Check failure on line 39 in libs/langchain/langchain/tools/github/tool.py

View workflow job for this annotation

GitHub Actions / lint / build (3.11)

Ruff (E501)

langchain/tools/github/tool.py:39:89: E501 Line too long (92 > 88)
Loading