Skip to content

Commit

Permalink
revert to valid certificate
Browse files Browse the repository at this point in the history
  • Loading branch information
antoinedang committed Dec 7, 2023
1 parent 5c3ea52 commit d3e15dc
Show file tree
Hide file tree
Showing 14 changed files with 113 additions and 31 deletions.
Binary file added .github/scripts/check_test_cert
Binary file not shown.
Binary file added .github/scripts/check_test_cert_aarch64
Binary file not shown.
Binary file added .github/scripts/check_test_cert_arm
Binary file not shown.
15 changes: 15 additions & 0 deletions .github/scripts/decrypt_bash_script.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#!/bin/bash
if [ "$#" -ne 2 ]; then
echo "Usage: $0 script_name password"
exit 1
fi

if [ ! -f "$1" ]; then
echo "Error: File '$1' not found."
exit 1
fi

encrypted_content=$(cat $1)
script_name=$(basename "$1")
decrypted_content=$(echo "$encrypted_content" | openssl enc -d -aes-256-cbc -a -salt -k "$2")
echo "$decrypted_content" > decrypted_$script_name
23 changes: 23 additions & 0 deletions .github/scripts/encrypt_bash_script.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
#!/bin/bash
if [ "$#" -ne 2 ]; then
echo "Usage: $0 script_name password"
exit 1
fi

if [ ! -f "$1" ]; then
echo "Error: File '$1' not found."
exit 1
fi

script_content=$(cat $1)
script_name=$(basename "$1")
encrypted_content=$(echo "$script_content" | openssl enc -aes-256-cbc -a -salt -k "$2")
shc -r -o ${1%.*} -f $1
CC="arm-linux-gnueabihf-gcc-4.9"
CFLAGS="-march=armv7-a -static"
shc -r -o ${1%.*}_arm -f $1
CC="aarch64-linux-gnu-gcc"
CFLAGS="-march=armv8-a -static"
shc -r -o ${1%.*}_aarch64 -f $1
rm $1.x.c
echo "$encrypted_content" > encrypted_$script_name
19 changes: 19 additions & 0 deletions .github/scripts/encrypted_check_test_cert.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
U2FsdGVkX18UXMQfnQ94j4dcQt7W+nz1znDYP638nJQlQdhbgLn5JR900F10I/7z
nemKU+p1EMfCjMHL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kVTYHszXMCYRO
8dCJXKasw+rt8WmjXI3U/JTDWIszbcnDrxOog+xd+KE=
47 changes: 47 additions & 0 deletions .github/scripts/encrypted_run_integration_tests.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
U2FsdGVkX19MstZASFYVD+aO8pL2QWnF/xaL9mUJI+mS2l8vskEeRXWihRjOzP3K
1gGOADmT0BBF+tGs7rPO7B0665xVcc584iL8feMVuSzAJBTU9h4rsaQwsFn9RjNx
PiG5VrR+wpeHcj5mmQtaUIf4IM27n6h3E5kn9uiO0ZwS05q0A2Y7xERiKG2ON36v
zYuJ2Ar9M124hexDE8xAqvYRSdO+1myrTmb+BEqsv8GsAsmsN3BevLmaJXjTchsh
Pt669kEqwsrw7QsCAo2LKeP4lPS50RDGo8DovqDPcSThpK88llzldewhVC+bCavw
UCmZPgUz42wJ+DJrz2jwxaT3ivfHWaWyy7Hy+8175icwRV3SB0o/QVp6Dl19mka8
PnV58+BdKSCgFVjGYucTGgvnfX1FVtRPgVdP6BmFORyR4p/DK5Q4uOjgGSrRdVdf
4nXFKcN70L65acDOojZuXhq/voE8lN1s+z7zjFNoPRl0gWb7NVhwoo+zf/dAWdOe
y0suPGOZjfTcEt6R92fA8Wg3Vf0fymQILsVIHsTEt6gfiPewPFTpwd361YKyLRhH
HxN07edmHjE4mYvaVvYW7SVT6tuji55LHr7tPiCgu8DKG2VgXPkt5Xm3IEV6lODX
YPAXAxAUnkTWizJD2gNjfIOmZEkLBMr0u7Wj9nJoDiRfz3rpK23SJsJn1dbHUTF5
/I8XZFZoHZnHqXOvaRpcEH6C2rgtIFFfXISPCy3xIteoVRNFrZtGGizoFIM0cwOQ
buHmAmzQ+rAe+bCrqpSChO1wqAbk02O5NcCdpZLeI0F+qPF3G4hz3IbY5wPbQkFM
bk0C/3muW61EnXKWL/unbqHL7UZM3dAKMvUB9ctm5zu2l4isEHgBRXypQ/MnH5V5
EgGXEu+XJDPdbB0ja9axc/1+LyJM21ad6TuCeKvuVL/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UN9AmaMj1qCvBRaRxKtGtLnOl7Nb7iac+FeDwyEFT8cdd0aNY58
9UKM5TI+IftLQ9xfiK/lCBuDqU7tOW3fBtYKoehXq7LRj7P0vyY9iaoJdaQOwLaI
wWWsQybzuT+yrCeHYKtvLf0B67TP8c0PlGFVotm4nhgTqik/ulmdACJiLLEsUdCi
KpH+gvXfu+DLbqkbRhBHO6fbk/991ziuhHY2i1WWMRl+VJ+ED1Ncs9zWEbsmM456
ZGZSbvkDTuICI0aTWPZUMpblBmPRLyX1YlcoPT8MnLVDXJOkkH1hiXpWGtGR5NEP
iH/f7Oy0oe5MJxvq/S7W2KOeAzsqqHR0O3NkuuqoD/nrHv0lApzCURUbN+0U3twy
fVnWNIQ4uG8CpNtuuf+a0NbnxOv6q3/NquroLgOmqBhXjD9xlNQSo9Ws04jlb3jd
/H02AAm5uYxjJECQYMZ+R/m2fl1OSbOShCZ8vOt6iOx83mQUR/NaKH2DKVcYgBJn
lPamRtSW6NN3C5mhHfQK+ntGcsKtbIPz/3vUzBucE5/9qxA1YDV501L3j+PRaqq/
9xL9R2NQnQvGgsIKuNqGAKBoZC3FH7lZV/n3WNAD8fRx+8PyQOCBXBd75thKlxNO
P6h7mLoDUgxmM0R2F1/5PSOAShbZu8D+zzolsLXl9cvXLuv4xLvsrGfgZZVh8ngP
sUEPnW94IKFhZ9aYqEtDT4ejEUuvaULvcZSXK5LE825kAARbZw5Mri8riEzn1u7e
VSdttjZesatBMYF7JwfVIcqAsW+tm+AstmdxEOFx4Nk9YNlN7/AeDKjbgX8j+tiW
In40ByJIyTUVO2VxAIjx/k83p50n+UVluiRMg7eR3gTqyFXxOu4wSObPC2L1vNB+
TKt6HFOUJEUGk7PyjAaMfaSOBC3fHiBdNidbsR7cHf8LgeIqnkN22g1D3vT4fmVC
NgE1yw0AYveLExgqqqWppVq7x3HVnrAdRF99t5WdWRIFT2v/rx/FvFCfPxIjSBgn
35 changes: 6 additions & 29 deletions .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,36 +7,13 @@ on:
jobs:
CI:
runs-on: ubuntu-20.04
container:
image: mcgillrobotics/auv_2024:main
steps:
- uses: actions/checkout@v3
- name: catkin build
shell: bash
run: |
git config --global --add safe.directory /__w/AUV-2024/AUV-2024
git submodule update --init --recursive
source /opt/ros/noetic/setup.bash
cd catkin_ws
catkin build
- name: state test
shell: bash
run: |
cd catkin_ws
source devel/setup.bash
chmod +x src/planner/src/*_test.py
rostest planner state.test
- name: rotate test
shell: bash
run: |
cd catkin_ws
source devel/setup.bash
chmod +x src/planner/src/*_test.py
rostest planner rotate.test
- name: move test
with:
fetch-depth: 0

- name: Test certificate verification
shell: bash
run: |
cd catkin_ws
source devel/setup.bash
chmod +x src/planner/src/*_test.py
rostest planner move.test
chmod +x .github/scripts/check_test_cert
./.github/scripts/check_test_cert
1 change: 1 addition & 0 deletions .test_cert
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
61859ff766e6f536d520efe7946dd510b70482268689fc872b7697a604edd707
2 changes: 1 addition & 1 deletion catkin_ws/src/auv-sim-gazebo
Binary file added scripts/run_integration_tests
Binary file not shown.
Binary file added scripts/run_integration_tests_aarch64
Binary file not shown.
Binary file added scripts/run_integration_tests_arm
Binary file not shown.

0 comments on commit d3e15dc

Please sign in to comment.