-
Notifications
You must be signed in to change notification settings - Fork 2
Update build.py #11
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
base: master
Are you sure you want to change the base?
Update build.py #11
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| on: | ||
| pull_request: | ||
| issue_comment: | ||
| jobs: | ||
| pr_agent_job: | ||
| runs-on: ubuntu-latest | ||
| name: Run pr agent on every pull request, respond to user comments | ||
| steps: | ||
| - name: PR Agent action step | ||
| id: pragent | ||
| uses: Codium-ai/pr-agent@main | ||
| env: | ||
| OPENAI_KEY: ${{ secrets.OPENAI_KEY }} | ||
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
| Original file line number | Diff line number | Diff line change | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -47,7 +47,7 @@ def main(): | |||||||||||
| client_var = "github.com/kubescape/kubescape/v2/core/cautils.Client" | ||||||||||||
| client_name = os.getenv("CLIENT") | ||||||||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Suggestion: Remove unused variable
Suggested change
|
||||||||||||
|
|
||||||||||||
| # Create build directory | ||||||||||||
| # Create the build directory | ||||||||||||
| build_dir = get_build_dir() | ||||||||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Suggestion: Add error handling for the
Suggested change
|
||||||||||||
|
|
||||||||||||
| ks_file = os.path.join(build_dir, package_name) | ||||||||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Suggestion: Use
Suggested change
|
||||||||||||
|
|
||||||||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Suggestion: Remove unused variable
client_var