From 1910f394ec7a570bb218cd124a124b9e97641473 Mon Sep 17 00:00:00 2001 From: BenediktMKuehne Date: Thu, 22 Feb 2024 13:17:41 +0000 Subject: [PATCH 1/3] update check for new year --- dev-tools/check_project.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dev-tools/check_project.sh b/dev-tools/check_project.sh index b3bf4864..1ef4ffc3 100755 --- a/dev-tools/check_project.sh +++ b/dev-tools/check_project.sh @@ -359,7 +359,7 @@ list_linter_exceptions "bandit" "$PWD" "${PWD}/.venv" pylinter check_django yamlchecker -copy_right_check 2023 "${PWD}" "${PWD}/emba_logs" +copy_right_check 2024 "${PWD}" "${PWD}/emba_logs" if [[ "${#MODULES_TO_CHECK_ARR[@]}" -gt 0 ]]; then echo -e "\\n\\n""${GREEN}${BOLD}""SUMMARY:${NC}\\n" From cbd02c827328d25974bb124144bfd423fc38ce3e Mon Sep 17 00:00:00 2001 From: BenediktMKuehne Date: Thu, 22 Feb 2024 13:23:49 +0000 Subject: [PATCH 2/3] add ignore for emba submodule --- dev-tools/check_project.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dev-tools/check_project.sh b/dev-tools/check_project.sh index 1ef4ffc3..38837b6b 100755 --- a/dev-tools/check_project.sh +++ b/dev-tools/check_project.sh @@ -326,7 +326,7 @@ copy_right_check(){ local DIR_="${2:-}" local EXCLUDE_="${3:-}" echo -e "\\n""${ORANGE}""${BOLD}""EMBArk Copyright check""${NC}""\\n""${BOLD}""=================================================================""${NC}" - mapfile -t COPYRIGHT_LINE_ < <(find "${DIR_}" -type d -path "${EXCLUDE_}" -prune -false -o -type f -path "${0}" -prune -false -o -iname "*.sh" -exec grep -H "Copyright" {} \;) + mapfile -t COPYRIGHT_LINE_ < <(find "${DIR_}" -type d -path "${PWD}/emba" -prune -false -o -type d -path "${EXCLUDE_}" -prune -false -o -type f -path "${0}" -prune -false -o -iname "*.sh" -exec grep -H "Copyright" {} \;) if [[ "${#COPYRIGHT_LINE_[@]}" -gt 0 ]]; then for LINE_ in "${COPYRIGHT_LINE_[@]}"; do if ! grep -q "${YEAR_}.*Siemens Energy AG" "${LINE_%%:*}" && ! grep -q "Siemens AG" "${LINE_%%:*}"; then From c4276b97e965ad71a8ca97fb47ccfee38fb59b2f Mon Sep 17 00:00:00 2001 From: BenediktMKuehne Date: Thu, 22 Feb 2024 14:05:52 +0000 Subject: [PATCH 3/3] update copyright --- dev-tools/check_project.sh | 2 +- dev-tools/clean-setup.sh | 2 +- dev-tools/debug-server-start.sh | 2 +- dev-tools/prepare.sh | 2 +- dev-tools/test.sh | 2 +- export-DB.sh | 2 +- helper/helper_embark_general.sh | 2 +- helper/wickStrictModeFail.sh | 2 +- import-DB.sh | 2 +- installer.sh | 2 +- run-server.sh | 2 +- supervisor.sh | 2 +- 12 files changed, 12 insertions(+), 12 deletions(-) diff --git a/dev-tools/check_project.sh b/dev-tools/check_project.sh index 38837b6b..1f09d153 100755 --- a/dev-tools/check_project.sh +++ b/dev-tools/check_project.sh @@ -2,7 +2,7 @@ # EMBArk - The firmware security scanning environment # -# Copyright 2020-2023 Siemens Energy AG +# Copyright 2020-2024 Siemens Energy AG # Copyright 2020-2021 Siemens AG # # EMBArk comes with ABSOLUTELY NO WARRANTY. diff --git a/dev-tools/clean-setup.sh b/dev-tools/clean-setup.sh index 96254979..8a12126e 100755 --- a/dev-tools/clean-setup.sh +++ b/dev-tools/clean-setup.sh @@ -1,7 +1,7 @@ #!/bin/bash # EMBArk - The firmware security scanning environment # -# Copyright 2020-2023 Siemens Energy AG +# Copyright 2020-2024 Siemens Energy AG # # EMBArk comes with ABSOLUTELY NO WARRANTY. # diff --git a/dev-tools/debug-server-start.sh b/dev-tools/debug-server-start.sh index a047da6e..cb3ebd76 100755 --- a/dev-tools/debug-server-start.sh +++ b/dev-tools/debug-server-start.sh @@ -1,7 +1,7 @@ #!/bin/bash # EMBArk - The firmware security scanning environment # -# Copyright 2020-2023 Siemens Energy AG +# Copyright 2020-2024 Siemens Energy AG # # EMBArk comes with ABSOLUTELY NO WARRANTY. # diff --git a/dev-tools/prepare.sh b/dev-tools/prepare.sh index f094e514..42d52a9c 100755 --- a/dev-tools/prepare.sh +++ b/dev-tools/prepare.sh @@ -1,7 +1,7 @@ #!/bin/bash # EMBArk - The firmware security scanning environment # -# Copyright 2020-2023 Siemens Energy AG +# Copyright 2020-2024 Siemens Energy AG # # EMBArk comes with ABSOLUTELY NO WARRANTY. # diff --git a/dev-tools/test.sh b/dev-tools/test.sh index e9c326ba..660383d8 100755 --- a/dev-tools/test.sh +++ b/dev-tools/test.sh @@ -1,7 +1,7 @@ #!/bin/bash # EMBArk - The firmware security scanning environment # -# Copyright 2020-2023 Siemens Energy AG +# Copyright 2020-2024 Siemens Energy AG # # EMBArk comes with ABSOLUTELY NO WARRANTY. # diff --git a/export-DB.sh b/export-DB.sh index 248bbcf4..b02147d4 100755 --- a/export-DB.sh +++ b/export-DB.sh @@ -1,7 +1,7 @@ #!/bin/bash # EMBArk - The firmware security scanning environment # -# Copyright 2020-2023 Siemens Energy AG +# Copyright 2020-2024 Siemens Energy AG # # EMBArk comes with ABSOLUTELY NO WARRANTY. # diff --git a/helper/helper_embark_general.sh b/helper/helper_embark_general.sh index aa40c218..2e035cd0 100644 --- a/helper/helper_embark_general.sh +++ b/helper/helper_embark_general.sh @@ -1,7 +1,7 @@ #!/bin/bash # EMBArk - The firmware security scanning environment # -# Copyright 2020-2023 Siemens Energy AG +# Copyright 2020-2024 Siemens Energy AG # # EMBArk comes with ABSOLUTELY NO WARRANTY. # diff --git a/helper/wickStrictModeFail.sh b/helper/wickStrictModeFail.sh index f2401416..e9ffe9c1 100644 --- a/helper/wickStrictModeFail.sh +++ b/helper/wickStrictModeFail.sh @@ -1,7 +1,7 @@ #!/usr/bin/env bash # EMBArk - The firmware security scanning environment # -# Copyright 2020-2023 Siemens Energy AG +# Copyright 2020-2024 Siemens Energy AG # # EMBArk comes with ABSOLUTELY NO WARRANTY. # diff --git a/import-DB.sh b/import-DB.sh index b61bfac1..528c1cf1 100755 --- a/import-DB.sh +++ b/import-DB.sh @@ -1,7 +1,7 @@ #!/bin/bash # EMBArk - The firmware security scanning environment # -# Copyright 2020-2023 Siemens Energy AG +# Copyright 2020-2024 Siemens Energy AG # # EMBArk comes with ABSOLUTELY NO WARRANTY. # diff --git a/installer.sh b/installer.sh index 7c7f71e7..02b518ad 100755 --- a/installer.sh +++ b/installer.sh @@ -2,7 +2,7 @@ # EMBArk - The firmware security scanning environment # -# Copyright 2020-2023 Siemens Energy AG +# Copyright 2020-2024 Siemens Energy AG # Copyright 2020-2022 Siemens AG # # EMBArk comes with ABSOLUTELY NO WARRANTY. diff --git a/run-server.sh b/run-server.sh index 4f4e7aae..60633e51 100755 --- a/run-server.sh +++ b/run-server.sh @@ -1,7 +1,7 @@ #!/bin/bash # EMBArk - The firmware security scanning environment # -# Copyright 2020-2023 Siemens Energy AG +# Copyright 2020-2024 Siemens Energy AG # Copyright 2020-2022 Siemens AG # # EMBArk comes with ABSOLUTELY NO WARRANTY. diff --git a/supervisor.sh b/supervisor.sh index 2ec4435a..e40abed6 100755 --- a/supervisor.sh +++ b/supervisor.sh @@ -1,7 +1,7 @@ #!/bin/bash # EMBArk - The firmware security scanning environment # -# Copyright 2020 - 2023 Siemens Energy AG +# Copyright 2020 - 2024 Siemens Energy AG # # EMBArk comes with ABSOLUTELY NO WARRANTY. #