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

Import code #7

Merged
merged 68 commits into from
Mar 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
68 commits
Select commit Hold shift + click to select a range
5768ac4
Import
fred-labs Feb 29, 2024
36009b6
Update LICENSE
fred-labs Feb 29, 2024
696cf7c
Set version to 1.0.0
fred-labs Feb 29, 2024
9d1d9bc
Add submodules
fred-labs Mar 1, 2024
2b43d42
remove some libraries
fred-labs Mar 1, 2024
9d80bd7
move docs
fred-labs Mar 1, 2024
24ba823
cleanup
fred-labs Mar 1, 2024
13df926
cleanup
fred-labs Mar 1, 2024
b612e50
cleanup
fred-labs Mar 1, 2024
4e8cef5
cleanup
fred-labs Mar 1, 2024
9f82986
cleanup
fred-labs Mar 1, 2024
cf4687f
cleanup
fred-labs Mar 1, 2024
bcc423f
cleanup
fred-labs Mar 1, 2024
90dbd02
cleanup
fred-labs Mar 1, 2024
108660f
cleanup
fred-labs Mar 1, 2024
a3cca17
cleanup
fred-labs Mar 1, 2024
3819d7a
cleanup
fred-labs Mar 1, 2024
2acd53a
cleanup
fred-labs Mar 1, 2024
29b27fb
cleanup
fred-labs Mar 1, 2024
6fa558c
update version
fred-labs Mar 2, 2024
9527e40
moving
fred-labs Mar 2, 2024
df06ccd
renaming
fred-labs Mar 2, 2024
67e2a8e
renaming
fred-labs Mar 2, 2024
417a8f2
cleanup
fred-labs Mar 2, 2024
4d8206d
cleanup
fred-labs Mar 2, 2024
5e70f3c
cleanup
fred-labs Mar 4, 2024
9a9bbfe
cleanup
fred-labs Mar 4, 2024
eb91ff4
cleanup
fred-labs Mar 4, 2024
d24a0e2
cleanup
fred-labs Mar 4, 2024
4fe494c
cleanup
fred-labs Mar 4, 2024
2272d80
cleanup
fred-labs Mar 4, 2024
78c0962
cleanup
fred-labs Mar 4, 2024
e8e765c
cleanup
fred-labs Mar 4, 2024
152bf3f
cleanup
fred-labs Mar 4, 2024
810d50d
cleanup
fred-labs Mar 4, 2024
ed86109
cleanup
fred-labs Mar 4, 2024
436987f
test
fred-labs Mar 4, 2024
3d56316
test
fred-labs Mar 4, 2024
2342169
test
fred-labs Mar 4, 2024
1046aea
test
fred-labs Mar 4, 2024
d3e15ef
test
fred-labs Mar 4, 2024
30bc4d5
test
fred-labs Mar 4, 2024
2088573
test
fred-labs Mar 4, 2024
a605de9
test
fred-labs Mar 4, 2024
e52ede3
test
fred-labs Mar 4, 2024
0c0639c
test
fred-labs Mar 4, 2024
5c2f911
test
fred-labs Mar 4, 2024
3c22f11
test
fred-labs Mar 4, 2024
6dbd111
test
fred-labs Mar 4, 2024
f291082
test
fred-labs Mar 4, 2024
483b4ee
test
fred-labs Mar 4, 2024
633ad5f
test
fred-labs Mar 4, 2024
f2c0452
test
fred-labs Mar 4, 2024
31eb7f9
test
fred-labs Mar 4, 2024
48784d6
test
fred-labs Mar 4, 2024
53e7b96
test
fred-labs Mar 4, 2024
c827767
test
fred-labs Mar 4, 2024
285d8d8
test
fred-labs Mar 4, 2024
cc3ac1e
cleanup
fred-labs Mar 4, 2024
fd1bdfd
cleanup
fred-labs Mar 4, 2024
2558e79
cleanup
fred-labs Mar 4, 2024
24d8e0f
cleanup
fred-labs Mar 4, 2024
eacfa65
cleanup
fred-labs Mar 4, 2024
5f0c948
cleanup
fred-labs Mar 4, 2024
201812d
cleanup
fred-labs Mar 4, 2024
fb8e3c2
cleanup
fred-labs Mar 5, 2024
2b1d13a
update doc
fred-labs Mar 5, 2024
c14f8ad
cleanup
fred-labs Mar 5, 2024
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
321 changes: 321 additions & 0 deletions .github/bandit.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,321 @@
exclude_dirs: ['install', 'build', 'dependencies']

tests:
[ 'B301', 'B302', 'B303', 'B304', 'B305', 'B306', 'B308', 'B310', 'B311', 'B312', 'B313', 'B314', 'B315', 'B316', 'B317', 'B318', 'B319', 'B320', 'B321', 'B323', 'B324', 'B401', 'B402', 'B403', 'B404', 'B405', 'B406', 'B407', 'B408', 'B409', 'B410', 'B411', 'B412', 'B413']

skips:
[ 'B101', 'B102', 'B103', 'B104', 'B105', 'B106', 'B107', 'B108', 'B110', 'B112', 'B201', 'B501', 'B502', 'B503', 'B504', 'B505', 'B506', 'B507', 'B601', 'B602', 'B603', 'B604', 'B605', 'B606', 'B607', 'B608', 'B609', 'B610', 'B611', 'B701', 'B702', 'B703']

### (optional) plugin settings - some test plugins require configuration data
### that may be given here, per-plugin. All bandit test plugins have a built in
### set of sensible defaults and these will be used if no configuration is
### provided. It is not necessary to provide settings for every (or any) plugin
### if the defaults are acceptable.

any_other_function_with_shell_equals_true:
no_shell:
- os.execl
- os.execle
- os.execlp
- os.execlpe
- os.execv
- os.execve
- os.execvp
- os.execvpe
- os.spawnl
- os.spawnle
- os.spawnlp
- os.spawnlpe
- os.spawnv
- os.spawnve
- os.spawnvp
- os.spawnvpe
- os.startfile
shell:
- os.system
- os.popen
- os.popen2
- os.popen3
- os.popen4
- popen2.popen2
- popen2.popen3
- popen2.popen4
- popen2.Popen3
- popen2.Popen4
- commands.getoutput
- commands.getstatusoutput
subprocess:
- subprocess.Popen
- subprocess.call
- subprocess.check_call
- subprocess.check_output
- subprocess.run
assert_used:
skips: []
hardcoded_tmp_directory:
tmp_dirs:
- /tmp
- /var/tmp
- /dev/shm
linux_commands_wildcard_injection:
no_shell:
- os.execl
- os.execle
- os.execlp
- os.execlpe
- os.execv
- os.execve
- os.execvp
- os.execvpe
- os.spawnl
- os.spawnle
- os.spawnlp
- os.spawnlpe
- os.spawnv
- os.spawnve
- os.spawnvp
- os.spawnvpe
- os.startfile
shell:
- os.system
- os.popen
- os.popen2
- os.popen3
- os.popen4
- popen2.popen2
- popen2.popen3
- popen2.popen4
- popen2.Popen3
- popen2.Popen4
- commands.getoutput
- commands.getstatusoutput
subprocess:
- subprocess.Popen
- subprocess.call
- subprocess.check_call
- subprocess.check_output
- subprocess.run
ssl_with_bad_defaults:
bad_protocol_versions:
- PROTOCOL_SSLv2
- SSLv2_METHOD
- SSLv23_METHOD
- PROTOCOL_SSLv3
- PROTOCOL_TLSv1
- SSLv3_METHOD
- TLSv1_METHOD
- PROTOCOL_TLSv1_1
- TLSv1_1_METHOD
ssl_with_bad_version:
bad_protocol_versions:
- PROTOCOL_SSLv2
- SSLv2_METHOD
- SSLv23_METHOD
- PROTOCOL_SSLv3
- PROTOCOL_TLSv1
- SSLv3_METHOD
- TLSv1_METHOD
- PROTOCOL_TLSv1_1
- TLSv1_1_METHOD
start_process_with_a_shell:
no_shell:
- os.execl
- os.execle
- os.execlp
- os.execlpe
- os.execv
- os.execve
- os.execvp
- os.execvpe
- os.spawnl
- os.spawnle
- os.spawnlp
- os.spawnlpe
- os.spawnv
- os.spawnve
- os.spawnvp
- os.spawnvpe
- os.startfile
shell:
- os.system
- os.popen
- os.popen2
- os.popen3
- os.popen4
- popen2.popen2
- popen2.popen3
- popen2.popen4
- popen2.Popen3
- popen2.Popen4
- commands.getoutput
- commands.getstatusoutput
subprocess:
- subprocess.Popen
- subprocess.call
- subprocess.check_call
- subprocess.check_output
- subprocess.run
start_process_with_no_shell:
no_shell:
- os.execl
- os.execle
- os.execlp
- os.execlpe
- os.execv
- os.execve
- os.execvp
- os.execvpe
- os.spawnl
- os.spawnle
- os.spawnlp
- os.spawnlpe
- os.spawnv
- os.spawnve
- os.spawnvp
- os.spawnvpe
- os.startfile
shell:
- os.system
- os.popen
- os.popen2
- os.popen3
- os.popen4
- popen2.popen2
- popen2.popen3
- popen2.popen4
- popen2.Popen3
- popen2.Popen4
- commands.getoutput
- commands.getstatusoutput
subprocess:
- subprocess.Popen
- subprocess.call
- subprocess.check_call
- subprocess.check_output
- subprocess.run
start_process_with_partial_path:
no_shell:
- os.execl
- os.execle
- os.execlp
- os.execlpe
- os.execv
- os.execve
- os.execvp
- os.execvpe
- os.spawnl
- os.spawnle
- os.spawnlp
- os.spawnlpe
- os.spawnv
- os.spawnve
- os.spawnvp
- os.spawnvpe
- os.startfile
shell:
- os.system
- os.popen
- os.popen2
- os.popen3
- os.popen4
- popen2.popen2
- popen2.popen3
- popen2.popen4
- popen2.Popen3
- popen2.Popen4
- commands.getoutput
- commands.getstatusoutput
subprocess:
- subprocess.Popen
- subprocess.call
- subprocess.check_call
- subprocess.check_output
- subprocess.run
subprocess_popen_with_shell_equals_true:
no_shell:
- os.execl
- os.execle
- os.execlp
- os.execlpe
- os.execv
- os.execve
- os.execvp
- os.execvpe
- os.spawnl
- os.spawnle
- os.spawnlp
- os.spawnlpe
- os.spawnv
- os.spawnve
- os.spawnvp
- os.spawnvpe
- os.startfile
shell:
- os.system
- os.popen
- os.popen2
- os.popen3
- os.popen4
- popen2.popen2
- popen2.popen3
- popen2.popen4
- popen2.Popen3
- popen2.Popen4
- commands.getoutput
- commands.getstatusoutput
subprocess:
- subprocess.Popen
- subprocess.call
- subprocess.check_call
- subprocess.check_output
- subprocess.run
subprocess_without_shell_equals_true:
no_shell:
- os.execl
- os.execle
- os.execlp
- os.execlpe
- os.execv
- os.execve
- os.execvp
- os.execvpe
- os.spawnl
- os.spawnle
- os.spawnlp
- os.spawnlpe
- os.spawnv
- os.spawnve
- os.spawnvp
- os.spawnvpe
- os.startfile
shell:
- os.system
- os.popen
- os.popen2
- os.popen3
- os.popen4
- popen2.popen2
- popen2.popen3
- popen2.popen4
- popen2.Popen3
- popen2.Popen4
- commands.getoutput
- commands.getstatusoutput
subprocess:
- subprocess.Popen
- subprocess.call
- subprocess.check_call
- subprocess.check_output
- subprocess.run
try_except_continue:
check_typed_exception: false
try_except_pass:
check_typed_exception: false
weak_cryptographic_key:
weak_key_size_dsa_high: 1024
weak_key_size_dsa_medium: 2048
weak_key_size_ec_high: 160
weak_key_size_ec_medium: 224
weak_key_size_rsa_high: 1024
weak_key_size_rsa_medium: 2048

2 changes: 1 addition & 1 deletion .github/linters/.pylintrc
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ ignore-paths=.*/osc2_parsing/.*
[MESSAGES CONTROL]
max-line-length=140
disable=no-self-use,anomalous-backslash-in-string,too-many-arguments,too-few-public-methods,too-many-instance-attributes,redefined-variable-type,unused-argument,bad-continuation,too-many-lines,too-many-branches,locally-disabled,too-many-locals,too-many-statements,duplicate-code,too-many-nested-blocks,fixme,useless-object-inheritance,no-else-raise,no-else-break,unnecessary-pass,no-else-return,super-with-arguments,no-else-continue,bad-option-value,consider-using-dict-items,consider-using-f-string,line-too-long,wrong-import-order,missing-function-docstring,missing-class-docstring,f-string-without-interpolation,import-error,missing-module-docstring,consider-using-with,unspecified-encoding
ignored-modules=geometry_msgs,py_trees
ignored-modules=geometry_msgs,py_trees,launch
variable-rgx=[a-z0-9_]{1,40}$
function-rgx=[a-z0-9_]{1,40}$
47 changes: 47 additions & 0 deletions .github/workflows/scan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,3 +50,50 @@ jobs:
format: 'table'
exit-code: '1'
vuln-type: 'os,library'
bandit:
name: Bandit
runs-on: intellabs-01
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Test
shell: bash
run: |
pip3 install bandit
bandit -c .github/bandit.yaml -r .
license:
name: License check
runs-on: intellabs-01
container:
image: osrf/ros:humble-desktop
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Prepare System
shell: bash
run: |
apt update
apt install -y python3-pip
pip3 install ros-license-toolkit
apt install -y golang-go
go version
go install github.com/google/addlicense@latest
- name: Check for license tags
shell: bash
run: |
find . -type f \( -name "*.py" -o -name "*.cpp" -o -name "*.h" \) -exec "$HOME"/go/bin/addlicense -check {} +
- name: Run ros_license_toolkit for each Package
shell: bash
run: |
git config --global --add safe.directory /__w/scenario_execution/scenario_execution
find . -name "package.xml" | while IFS= read -r pkg_file; do
pkg_dir=$(dirname "$pkg_file")
pkg_name=$(basename "$pkg_dir")
if [ "$pkg_name" = "scenario_execution_rviz" ]; then
echo "Skipping package $pkg_name"
continue
fi
echo "Processing package at $pkg_dir"
ros_license_toolkit "$pkg_dir"
done

Loading
Loading