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

Added shebang lines in multiple scripts for proper execution #2

Merged
merged 20 commits into from
May 29, 2024

Conversation

2lambda123
Copy link
Owner

@2lambda123 2lambda123 commented May 29, 2024

User description

Description

Related Issue

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Chore (non-breaking change that does not add functionality or fix an issue)

Checklist:

  • I have read the Code of Conduct
  • I have updated the documentation accordingly.
  • All commits are GPG signed

Description

  • Added shebang lines in various scripts for proper execution.

Changes walkthrough 📝

Relevant files
Documentation
17 files
clean
Added shebang line in clean.sh                                                     

hedgehog-iso/interface/sensor_ctl/clean
['Added shebang line #!/bin/bash']

+0/-1     
reload
Added shebang line in control.sh                                                 

hedgehog-iso/interface/sensor_ctl/reload
['Added shebang line #!/bin/bash']

+0/-1     
restart
Added shebang line in control.sh                                                 

hedgehog-iso/interface/sensor_ctl/restart
['Added shebang line #!/bin/bash']

+0/-1     
shutdown
Added shebang line in control.sh                                                 

hedgehog-iso/interface/sensor_ctl/shutdown
['Added shebang line #!/bin/bash']

+0/-1     
start
Added shebang line in control.sh                                                 

hedgehog-iso/interface/sensor_ctl/start
['Added shebang line #!/bin/bash']

+0/-1     
status
Added shebang line in control.sh                                                 

hedgehog-iso/interface/sensor_ctl/status
['Added shebang line #!/bin/bash']

+0/-1     
stop
Added shebang line in control.sh                                                 

hedgehog-iso/interface/sensor_ctl/stop
['Added shebang line #!/bin/bash']

+0/-1     
auth_setup
Added shebang line in control.py                                                 

scripts/auth_setup
['Added shebang line #!/usr/bin/env python3']

+0/-1     
configure
Added shebang line in install.py                                                 

scripts/configure
['Added shebang line #!/usr/bin/env python3']

+0/-1     
logs
Added shebang line in control.py                                                 

scripts/logs
['Added shebang line #!/usr/bin/env python3']

+0/-1     
netbox-backup
Added shebang line in control.py                                                 

scripts/netbox-backup
['Added shebang line #!/usr/bin/env python3']

+0/-1     
netbox-restore
Added shebang line in control.py                                                 

scripts/netbox-restore
['Added shebang line #!/usr/bin/env python3']

+0/-1     
restart
Added shebang line in control.py                                                 

scripts/restart
['Added shebang line #!/usr/bin/env python3']

+0/-1     
start
Added shebang line in control.py                                                 

scripts/start
['Added shebang line #!/usr/bin/env python3']

+0/-1     
status
Added shebang line in control.py                                                 

scripts/status
['Added shebang line #!/usr/bin/env python3']

+0/-1     
stop
Added shebang line in control.py                                                 

scripts/stop
['Added shebang line #!/usr/bin/env python3']

+0/-1     
wipe
Added shebang line in control.py                                                 

scripts/wipe
['Added shebang line #!/usr/bin/env python3']

+0/-1     

mmguero and others added 20 commits March 27, 2023 09:32
… exception of not containing any symlinks, due to a bug in GitHub pages document generation ("Site contained a symlink that should be dereferenced")
Copy link

Unable to locate .performanceTestingBot config file

Copy link

cr-gpt bot commented May 29, 2024

Seems you are using me but didn't get OPENAI_API_KEY seted in Variables/Secrets for this repo. you could follow readme for more information

Copy link

Processing PR updates...

Copy link

git-greetings bot commented May 29, 2024

Thanks @2lambda123 for opening this PR!

For COLLABORATOR only :

  • To add labels, comment on the issue
    /label add label1,label2,label3

  • To remove labels, comment on the issue
    /label remove label1,label2,label3

Copy link

@gitginie gitginie bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@2lambda123
Thank you for your contribution to this repository! We appreciate your effort in opening pull request.
Happy coding!

Copy link

quine-bot bot commented May 29, 2024

👋 Figuring out if a PR is useful is hard, hopefully this will help.

  • @2lambda123 has been on GitHub since 2019 and in that time has had 2246 public PRs merged
  • They haven't contributed to this repo before
  • Here's a good example of their work: HeyGenClone
  • From looking at their profile, they seem to be good with Shell and Python.

Their most recently public accepted PR is: 2lambda123/abp#88

@labels-and-badges labels-and-badges bot added NO JIRA This PR does not have a Jira Ticket PR:size/S Denotes a Pull Request that changes 10-29 lines. release This PR is a release labels May 29, 2024
Copy link

git-greetings bot commented May 29, 2024

PR Details of @2lambda123 in cisagov-Malcolm :

OPEN CLOSED TOTAL
2 0 2

Copy link

codeautopilot bot commented May 29, 2024

Your organization has reached the subscribed usage limit. You can upgrade your account by purchasing a subscription at Stripe payment link

Disclaimer: This comment was entirely generated using AI. Be aware that the information provided may be incorrect.

Current plan usage: 100.07%

Have feedback or need help?
Discord
Documentation
[email protected]

@trafico-bot trafico-bot bot added the 🔍 Ready for Review Pull Request is not reviewed yet label May 29, 2024
Copy link

coderabbitai bot commented May 29, 2024

Important

Review Skipped

Review was skipped as selected files did not have any reviewable changes.

Files selected but had no reviewable changes (17)
  • hedgehog-iso/interface/sensor_ctl/clean
  • hedgehog-iso/interface/sensor_ctl/reload
  • hedgehog-iso/interface/sensor_ctl/restart
  • hedgehog-iso/interface/sensor_ctl/shutdown
  • hedgehog-iso/interface/sensor_ctl/start
  • hedgehog-iso/interface/sensor_ctl/status
  • hedgehog-iso/interface/sensor_ctl/stop
  • scripts/auth_setup
  • scripts/configure
  • scripts/logs
  • scripts/netbox-backup
  • scripts/netbox-restore
  • scripts/restart
  • scripts/start
  • scripts/status
  • scripts/stop
  • scripts/wipe

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.


Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?

Share
Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai generate interesting stats about this repository and render them as a table.
    • @coderabbitai show all the console.log statements in this repository.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (invoked as PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Additionally, you can add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.

CodeRabbit Configration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

@2lambda123 2lambda123 merged commit 42c57b8 into main May 29, 2024
13 of 22 checks passed
Copy link

@sourcery-ai sourcery-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We have skipped reviewing this pull request. We don't currently review these file types - Let us know if you'd like us to change this.

Copy link

@gitginie gitginie bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@2lambda123
Thank you for your contribution to this repository! We appreciate your effort in closing pull request.
Happy coding!

@trafico-bot trafico-bot bot added the ✨ Merged Pull Request has been merged successfully label May 29, 2024
@penify-dev penify-dev bot added the documentation Improvements or additions to documentation label May 29, 2024
@penify-dev penify-dev bot changed the title Main docs cisagov Added shebang lines in multiple scripts for proper execution May 29, 2024
@trafico-bot trafico-bot bot removed the 🔍 Ready for Review Pull Request is not reviewed yet label May 29, 2024
Copy link
Contributor

penify-dev bot commented May 29, 2024

PR Review 🔍

⏱️ Estimated effort to review [1-5]

2, because the changes are straightforward and limited to adding shebang lines for proper execution in multiple scripts.

🧪 Relevant tests

No

⚡ Possible issues

No

🔒 Security concerns

No

Copy link

codesyncapp bot commented May 29, 2024

Check out the playback for this Pull Request here.

Copy link
Contributor

penify-dev bot commented May 29, 2024

PR Code Suggestions ✨

CategorySuggestion                                                                                                                                    Score
Best practice
Add error handling to the script for improved failure feedback

Consider adding error handling to the script to provide better feedback in case of
failures.

hedgehog-iso/interface/sensor_ctl/clean [1-2]

 +#!/bin/bash
++
 +set -e
++
++# Add your script code here
 
Suggestion importance[1-10]: 7

Why: Adding error handling with 'set -e' is a good practice to improve script reliability.

7
Security
Set appropriate permissions for sensitive operations in the script

Ensure proper permissions are set for sensitive operations within the script.

scripts/auth_setup [1-2]

 +#!/bin/bash
++
 +set -e
++
++# Add your script code here
 
Suggestion importance[1-10]: 6

Why: Ensuring proper permissions for sensitive operations enhances the security of the script.

6

@trafico-bot trafico-bot bot removed the ✨ Merged Pull Request has been merged successfully label May 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation NO JIRA This PR does not have a Jira Ticket PR:size/S Denotes a Pull Request that changes 10-29 lines. release This PR is a release Review effort [1-5]: 2 size/S
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants