From e284116638d391fd71ab986ad4ae6b903d19867e Mon Sep 17 00:00:00 2001 From: "aleksandr.vodyanov" Date: Fri, 17 May 2024 14:13:44 +0300 Subject: [PATCH 01/32] up --- entrypoint.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/entrypoint.sh b/entrypoint.sh index 25ff61a..fedf20f 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -11,4 +11,4 @@ echo "Processing event '$GITHUB_EVENT_NAME'" echo "List of files with absent license:" echo "===================================" -echo /app/addlicense -check "$1" . | sh +echo /app/addlicense -check -files "$INPUT_INPUT_FILES" "$1" . | sh From 4964be8ec60a92afb1cc9234079575ce29dc054b Mon Sep 17 00:00:00 2001 From: "aleksandr.vodyanov" Date: Fri, 17 May 2024 14:21:42 +0300 Subject: [PATCH 02/32] up --- entrypoint.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/entrypoint.sh b/entrypoint.sh index fedf20f..161c190 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -11,4 +11,5 @@ echo "Processing event '$GITHUB_EVENT_NAME'" echo "List of files with absent license:" echo "===================================" +echo $INPUT_INPUT_FILES echo /app/addlicense -check -files "$INPUT_INPUT_FILES" "$1" . | sh From 70e63493f6f9013498add6beffc219ed6147c9e2 Mon Sep 17 00:00:00 2001 From: "aleksandr.vodyanov" Date: Fri, 17 May 2024 16:20:10 +0300 Subject: [PATCH 03/32] up --- entrypoint.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/entrypoint.sh b/entrypoint.sh index 161c190..32669fb 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -12,4 +12,4 @@ echo "Processing event '$GITHUB_EVENT_NAME'" echo "List of files with absent license:" echo "===================================" echo $INPUT_INPUT_FILES -echo /app/addlicense -check -files "$INPUT_INPUT_FILES" "$1" . | sh +echo /app/addlicense -check "$1" "$INPUT_INPUT_FILES" | sh From 268d51f61ed7a24c901b2d5bff41f26cb2da07b6 Mon Sep 17 00:00:00 2001 From: "aleksandr.vodyanov" Date: Fri, 17 May 2024 16:26:45 +0300 Subject: [PATCH 04/32] up --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index f817806..f560ebd 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,7 +6,7 @@ # To obtain such a permit, you should contact AVROID, Ltd. # at https://avroid.ru -FROM harbor.avroid.tech/devops/addlicense:1.1.2 +FROM harbor.avroid.tech/devops/addlicense:1.1.2-1 COPY entrypoint.sh /entrypoint.sh From e7a7584ed0b4ed75819750d4142c7bf944ab9ad8 Mon Sep 17 00:00:00 2001 From: "aleksandr.vodyanov" Date: Fri, 17 May 2024 16:56:36 +0300 Subject: [PATCH 05/32] up files --- Dockerfile | 2 +- entrypoint.sh | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index f560ebd..f817806 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,7 +6,7 @@ # To obtain such a permit, you should contact AVROID, Ltd. # at https://avroid.ru -FROM harbor.avroid.tech/devops/addlicense:1.1.2-1 +FROM harbor.avroid.tech/devops/addlicense:1.1.2 COPY entrypoint.sh /entrypoint.sh diff --git a/entrypoint.sh b/entrypoint.sh index 32669fb..f26c015 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -11,5 +11,4 @@ echo "Processing event '$GITHUB_EVENT_NAME'" echo "List of files with absent license:" echo "===================================" -echo $INPUT_INPUT_FILES echo /app/addlicense -check "$1" "$INPUT_INPUT_FILES" | sh From 96b0aff9c34d4676e3a5ec3cc327428bacb3ee3c Mon Sep 17 00:00:00 2001 From: "aleksandr.vodyanov" Date: Fri, 17 May 2024 17:10:11 +0300 Subject: [PATCH 06/32] up --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index f817806..731ce7b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,7 +6,7 @@ # To obtain such a permit, you should contact AVROID, Ltd. # at https://avroid.ru -FROM harbor.avroid.tech/devops/addlicense:1.1.2 +FROM harbor.avroid.tech/devops/addlicense:1.1.2-2 COPY entrypoint.sh /entrypoint.sh From 835abd37389b55f24f947519988b0072219df5b6 Mon Sep 17 00:00:00 2001 From: "aleksandr.vodyanov" Date: Fri, 17 May 2024 17:17:02 +0300 Subject: [PATCH 07/32] up --- .gitea/workflows/check-license.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitea/workflows/check-license.yml b/.gitea/workflows/check-license.yml index 113054b..98ba0fc 100644 --- a/.gitea/workflows/check-license.yml +++ b/.gitea/workflows/check-license.yml @@ -26,4 +26,4 @@ jobs: fetch-depth: 0 # for work tj-actions/changed-files persist-credentials: false # for work tj-actions/changed-files - name: Check license - uses: https://gitea:${{ secrets.CI_TOKEN }}@git.avroid.tech/Actions/addlicense-docker-action.git@v1 + uses: https://gitea:${{ secrets.CI_TOKEN }}@git.avroid.tech/Actions/addlicense-docker-action.git@v1.7 From 78c881a9a5e5be7f3d4b95a069338808eca2fb98 Mon Sep 17 00:00:00 2001 From: "aleksandr.vodyanov" Date: Fri, 17 May 2024 17:19:12 +0300 Subject: [PATCH 08/32] up --- .gitea/workflows/check-license.yml | 40 ++++++++++++++++++++++-------- 1 file changed, 29 insertions(+), 11 deletions(-) diff --git a/.gitea/workflows/check-license.yml b/.gitea/workflows/check-license.yml index 98ba0fc..0d65237 100644 --- a/.gitea/workflows/check-license.yml +++ b/.gitea/workflows/check-license.yml @@ -1,11 +1,3 @@ -# Copyright Avroid, Ltd. 2023-2024 -# -# You can not use the contents of the file in any way without -# AVROID, Ltd. written permission. -# -# To obtain such a permit, you should contact AVROID, Ltd. -# at https://avroid.ru - --- name: Check license run-name: ${{ gitea.actor }} is start check sources @@ -23,7 +15,33 @@ jobs: - name: Check out repository code uses: https://gitea:${{ secrets.CI_TOKEN }}@git.avroid.tech/Mirrors/github-actions-checkout.git@v4 with: - fetch-depth: 0 # for work tj-actions/changed-files - persist-credentials: false # for work tj-actions/changed-files - - name: Check license + fetch-depth: 0 + persist-credentials: false + - name: Get all files that have changed + id: changed-files-specific + uses: https://gitea:${{ secrets.CI_TOKEN }}@git.avroid.tech/Mirrors/github-actions-tj-actions-changed-files.git@v44 + with: + files: | + **/*.c + **/*.cpp + **/*.h + **/*.hpp + **/*.sh + **/*.cmake + **/CMakeLists.txt + **/Jenkinsfile + **/.yaml + **/.yml + - name: Run step if there is no changed files + id: no_files_to_check + if: steps.changed-files-specific.outputs.any_changed != 'true' + run: echo "*** No changed groovy files, nothing to check. ***" + + - name: Check license for changed files + id: check_license + if: steps.changed-files-specific.outputs.any_changed == 'true' uses: https://gitea:${{ secrets.CI_TOKEN }}@git.avroid.tech/Actions/addlicense-docker-action.git@v1.7 + with: + input_files: ${{ steps.changed-files-specific.outputs.all_changed_files }} + exclude_pattern: + From 35fedb8f25ca8a267ed948cb7f07840b986bb061 Mon Sep 17 00:00:00 2001 From: "aleksandr.vodyanov" Date: Fri, 17 May 2024 17:19:53 +0300 Subject: [PATCH 09/32] up --- entrypoint.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/entrypoint.sh b/entrypoint.sh index f26c015..d055ac5 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -1,5 +1,5 @@ #!/bin/sh -# Copyright Avroid, Ltd. 2023-2024 +# Copyright Avroid, Ltd. 2024 # # You can not use the contents of the file in any way without # AVROID, Ltd. written permission. From 9bf4e7c56386c88b4d84dad9f25ed60564fc106e Mon Sep 17 00:00:00 2001 From: "aleksandr.vodyanov" Date: Fri, 17 May 2024 17:20:26 +0300 Subject: [PATCH 10/32] up --- entrypoint.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/entrypoint.sh b/entrypoint.sh index d055ac5..4f943c9 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -1,5 +1,5 @@ #!/bin/sh -# Copyright Avroid, Ltd. 2024 +# Copyright Avroid, Ltd. 2024 # # You can not use the contents of the file in any way without # AVROID, Ltd. written permission. From 831208d2c5122e2fdabe0b66142c6e7cc28ba04a Mon Sep 17 00:00:00 2001 From: "aleksandr.vodyanov" Date: Fri, 17 May 2024 17:22:06 +0300 Subject: [PATCH 11/32] up --- entrypoint.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/entrypoint.sh b/entrypoint.sh index 4f943c9..9317f40 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -1,5 +1,5 @@ #!/bin/sh -# Copyright Avroid, Ltd. 2024 +# Copyright Avroid, Ltd., 2024 # # You can not use the contents of the file in any way without # AVROID, Ltd. written permission. From 1395c220ae8e7f4b9bd17e41e0ef12831c58b9d8 Mon Sep 17 00:00:00 2001 From: "aleksandr.vodyanov" Date: Fri, 17 May 2024 17:22:53 +0300 Subject: [PATCH 12/32] up --- entrypoint.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/entrypoint.sh b/entrypoint.sh index 9317f40..1b46993 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -1,5 +1,5 @@ #!/bin/sh -# Copyright Avroid, Ltd., 2024 +# Copyright (c) AVROID, Ltd., 2024 # # You can not use the contents of the file in any way without # AVROID, Ltd. written permission. From 02dd5dc1483b711c8fc1add967b28c0bf3388245 Mon Sep 17 00:00:00 2001 From: "aleksandr.vodyanov" Date: Fri, 17 May 2024 17:24:00 +0300 Subject: [PATCH 13/32] up --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 731ce7b..7390c18 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -# Copyright Avroid, Ltd. 2024 +# Copyright AVROID, Ltd. 2024 # # You can not use the contents of the file in any way without # AVROID, Ltd. written permission. From 0bfad9e9e06c20777abcd832f31dfab5b71ec4a7 Mon Sep 17 00:00:00 2001 From: "aleksandr.vodyanov" Date: Fri, 17 May 2024 17:42:27 +0300 Subject: [PATCH 14/32] up --- entrypoint.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/entrypoint.sh b/entrypoint.sh index 1b46993..933cbbb 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -11,4 +11,6 @@ echo "Processing event '$GITHUB_EVENT_NAME'" echo "List of files with absent license:" echo "===================================" -echo /app/addlicense -check "$1" "$INPUT_INPUT_FILES" | sh +for file in $INPUST_INPUT_FILES; do + echo /app/addlicense -check "$1" $file | sh +done From e0e4c4c9be26f25aac4ad99daef0781714050434 Mon Sep 17 00:00:00 2001 From: "aleksandr.vodyanov" Date: Fri, 17 May 2024 17:51:19 +0300 Subject: [PATCH 15/32] up --- .gitea/workflows/check-license.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitea/workflows/check-license.yml b/.gitea/workflows/check-license.yml index 0d65237..425adfd 100644 --- a/.gitea/workflows/check-license.yml +++ b/.gitea/workflows/check-license.yml @@ -40,7 +40,7 @@ jobs: - name: Check license for changed files id: check_license if: steps.changed-files-specific.outputs.any_changed == 'true' - uses: https://gitea:${{ secrets.CI_TOKEN }}@git.avroid.tech/Actions/addlicense-docker-action.git@v1.7 + uses: https://gitea:${{ secrets.CI_TOKEN }}@git.avroid.tech/Actions/addlicense-docker-action.git@v1.8 with: input_files: ${{ steps.changed-files-specific.outputs.all_changed_files }} exclude_pattern: From 5dc1c91d8e7fcc467e74e944d506d45bf86b09e2 Mon Sep 17 00:00:00 2001 From: "aleksandr.vodyanov" Date: Fri, 17 May 2024 17:52:45 +0300 Subject: [PATCH 16/32] up --- entrypoint.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/entrypoint.sh b/entrypoint.sh index 933cbbb..0b35731 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -12,5 +12,6 @@ echo "Processing event '$GITHUB_EVENT_NAME'" echo "List of files with absent license:" echo "===================================" for file in $INPUST_INPUT_FILES; do + echo $file echo /app/addlicense -check "$1" $file | sh done From a3b0de307fcf5916943ed767849a04381cd6841f Mon Sep 17 00:00:00 2001 From: "aleksandr.vodyanov" Date: Fri, 17 May 2024 17:53:25 +0300 Subject: [PATCH 17/32] up --- .gitea/workflows/check-license.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitea/workflows/check-license.yml b/.gitea/workflows/check-license.yml index 425adfd..8b4cb0d 100644 --- a/.gitea/workflows/check-license.yml +++ b/.gitea/workflows/check-license.yml @@ -40,7 +40,7 @@ jobs: - name: Check license for changed files id: check_license if: steps.changed-files-specific.outputs.any_changed == 'true' - uses: https://gitea:${{ secrets.CI_TOKEN }}@git.avroid.tech/Actions/addlicense-docker-action.git@v1.8 + uses: https://gitea:${{ secrets.CI_TOKEN }}@git.avroid.tech/Actions/addlicense-docker-action.git@v1.9 with: input_files: ${{ steps.changed-files-specific.outputs.all_changed_files }} exclude_pattern: From 468318f9758b6925db376b77e445a5205f76f0bd Mon Sep 17 00:00:00 2001 From: "aleksandr.vodyanov" Date: Fri, 17 May 2024 17:54:14 +0300 Subject: [PATCH 18/32] up --- entrypoint.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/entrypoint.sh b/entrypoint.sh index 0b35731..a363e86 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -11,6 +11,7 @@ echo "Processing event '$GITHUB_EVENT_NAME'" echo "List of files with absent license:" echo "===================================" +IFS=' ' for file in $INPUST_INPUT_FILES; do echo $file echo /app/addlicense -check "$1" $file | sh From c183ae0a9a5388cf85b1149e4eeee2ef11d77fa9 Mon Sep 17 00:00:00 2001 From: "aleksandr.vodyanov" Date: Fri, 17 May 2024 17:54:49 +0300 Subject: [PATCH 19/32] up --- .gitea/workflows/check-license.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitea/workflows/check-license.yml b/.gitea/workflows/check-license.yml index 8b4cb0d..4ad80e5 100644 --- a/.gitea/workflows/check-license.yml +++ b/.gitea/workflows/check-license.yml @@ -40,7 +40,7 @@ jobs: - name: Check license for changed files id: check_license if: steps.changed-files-specific.outputs.any_changed == 'true' - uses: https://gitea:${{ secrets.CI_TOKEN }}@git.avroid.tech/Actions/addlicense-docker-action.git@v1.9 + uses: https://gitea:${{ secrets.CI_TOKEN }}@git.avroid.tech/Actions/addlicense-docker-action.git@v1.10 with: input_files: ${{ steps.changed-files-specific.outputs.all_changed_files }} exclude_pattern: From 2bcb6a1c31cf3ec5081fb44e96bbeb3689270167 Mon Sep 17 00:00:00 2001 From: "aleksandr.vodyanov" Date: Fri, 17 May 2024 17:56:44 +0300 Subject: [PATCH 20/32] up --- entrypoint.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/entrypoint.sh b/entrypoint.sh index a363e86..3e5f364 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -11,8 +11,7 @@ echo "Processing event '$GITHUB_EVENT_NAME'" echo "List of files with absent license:" echo "===================================" -IFS=' ' -for file in $INPUST_INPUT_FILES; do +for file in $INPUT_INPUT_FILES; do echo $file echo /app/addlicense -check "$1" $file | sh done From 2529a970bb417ade99768c08b8d94ea5940a95e5 Mon Sep 17 00:00:00 2001 From: "aleksandr.vodyanov" Date: Fri, 17 May 2024 17:57:26 +0300 Subject: [PATCH 21/32] up --- .gitea/workflows/check-license.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitea/workflows/check-license.yml b/.gitea/workflows/check-license.yml index 4ad80e5..1308ca2 100644 --- a/.gitea/workflows/check-license.yml +++ b/.gitea/workflows/check-license.yml @@ -40,7 +40,7 @@ jobs: - name: Check license for changed files id: check_license if: steps.changed-files-specific.outputs.any_changed == 'true' - uses: https://gitea:${{ secrets.CI_TOKEN }}@git.avroid.tech/Actions/addlicense-docker-action.git@v1.10 + uses: https://gitea:${{ secrets.CI_TOKEN }}@git.avroid.tech/Actions/addlicense-docker-action.git@v1.11 with: input_files: ${{ steps.changed-files-specific.outputs.all_changed_files }} exclude_pattern: From 5b122dc90015debfafdfd54a48222fb44036effe Mon Sep 17 00:00:00 2001 From: "aleksandr.vodyanov" Date: Fri, 17 May 2024 17:58:08 +0300 Subject: [PATCH 22/32] up --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 7390c18..1619258 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -# Copyright AVROID, Ltd. 2024 +# Copyright AVROID, Ltd., 2024 # # You can not use the contents of the file in any way without # AVROID, Ltd. written permission. From 02180b59e39e44e7f1539dcfe2c640505f7d5815 Mon Sep 17 00:00:00 2001 From: "aleksandr.vodyanov" Date: Fri, 17 May 2024 17:59:02 +0300 Subject: [PATCH 23/32] up --- .gitea/workflows/check-license.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitea/workflows/check-license.yml b/.gitea/workflows/check-license.yml index 1308ca2..c4b21d8 100644 --- a/.gitea/workflows/check-license.yml +++ b/.gitea/workflows/check-license.yml @@ -32,6 +32,7 @@ jobs: **/Jenkinsfile **/.yaml **/.yml + **/Dockerfile - name: Run step if there is no changed files id: no_files_to_check if: steps.changed-files-specific.outputs.any_changed != 'true' From 60009a253197fe7e2bbb94e8f14fae0ac17835e6 Mon Sep 17 00:00:00 2001 From: "aleksandr.vodyanov" Date: Fri, 17 May 2024 18:06:41 +0300 Subject: [PATCH 24/32] test --- enntt.sh | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100755 enntt.sh diff --git a/enntt.sh b/enntt.sh new file mode 100755 index 0000000..3e5f364 --- /dev/null +++ b/enntt.sh @@ -0,0 +1,17 @@ +#!/bin/sh +# Copyright (c) AVROID, Ltd., 2024 +# +# You can not use the contents of the file in any way without +# AVROID, Ltd. written permission. +# +# To obtain such a permit, you should contact AVROID, Ltd. +# at https://avroid.ru + + +echo "Processing event '$GITHUB_EVENT_NAME'" +echo "List of files with absent license:" +echo "===================================" +for file in $INPUT_INPUT_FILES; do + echo $file + echo /app/addlicense -check "$1" $file | sh +done From 42b39f4f098573a6e75cf179de48755c886e686c Mon Sep 17 00:00:00 2001 From: "aleksandr.vodyanov" Date: Fri, 17 May 2024 18:07:32 +0300 Subject: [PATCH 25/32] up --- enntt.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/enntt.sh b/enntt.sh index 3e5f364..2449e5c 100755 --- a/enntt.sh +++ b/enntt.sh @@ -6,7 +6,7 @@ # # To obtain such a permit, you should contact AVROID, Ltd. # at https://avroid.ru - +sdf echo "Processing event '$GITHUB_EVENT_NAME'" echo "List of files with absent license:" From 78eeb317ff90cdfeecd200811883c15f804df144 Mon Sep 17 00:00:00 2001 From: "aleksandr.vodyanov" Date: Fri, 17 May 2024 18:08:17 +0300 Subject: [PATCH 26/32] up --- .gitea/workflows/check-license.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitea/workflows/check-license.yml b/.gitea/workflows/check-license.yml index c4b21d8..68a0f9c 100644 --- a/.gitea/workflows/check-license.yml +++ b/.gitea/workflows/check-license.yml @@ -32,7 +32,7 @@ jobs: **/Jenkinsfile **/.yaml **/.yml - **/Dockerfile + **/Dockerfile - name: Run step if there is no changed files id: no_files_to_check if: steps.changed-files-specific.outputs.any_changed != 'true' From e6610926133cc82ec196e123999d8efcea8a34ad Mon Sep 17 00:00:00 2001 From: "aleksandr.vodyanov" Date: Fri, 17 May 2024 18:14:30 +0300 Subject: [PATCH 27/32] up --- action.yml | 2 +- enntt.sh | 17 ----------------- entrypoint.sh | 1 - 3 files changed, 1 insertion(+), 19 deletions(-) delete mode 100755 enntt.sh diff --git a/action.yml b/action.yml index 69fe4bc..66b02fd 100644 --- a/action.yml +++ b/action.yml @@ -1,4 +1,4 @@ -# Copyright Avroid, Ltd. 2023-2024 +# Copyright AVROID, Ltd., 2024 # # You can not use the contents of the file in any way without # AVROID, Ltd. written permission. diff --git a/enntt.sh b/enntt.sh deleted file mode 100755 index 2449e5c..0000000 --- a/enntt.sh +++ /dev/null @@ -1,17 +0,0 @@ -#!/bin/sh -# Copyright (c) AVROID, Ltd., 2024 -# -# You can not use the contents of the file in any way without -# AVROID, Ltd. written permission. -# -# To obtain such a permit, you should contact AVROID, Ltd. -# at https://avroid.ru -sdf - -echo "Processing event '$GITHUB_EVENT_NAME'" -echo "List of files with absent license:" -echo "===================================" -for file in $INPUT_INPUT_FILES; do - echo $file - echo /app/addlicense -check "$1" $file | sh -done diff --git a/entrypoint.sh b/entrypoint.sh index 3e5f364..f2b229b 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -12,6 +12,5 @@ echo "Processing event '$GITHUB_EVENT_NAME'" echo "List of files with absent license:" echo "===================================" for file in $INPUT_INPUT_FILES; do - echo $file echo /app/addlicense -check "$1" $file | sh done From d7a2e55be88bb3c21464678dab1d0ec973ccff99 Mon Sep 17 00:00:00 2001 From: "aleksandr.vodyanov" Date: Fri, 17 May 2024 18:17:47 +0300 Subject: [PATCH 28/32] up --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 1619258..e679da4 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,7 +6,7 @@ # To obtain such a permit, you should contact AVROID, Ltd. # at https://avroid.ru -FROM harbor.avroid.tech/devops/addlicense:1.1.2-2 +FROM harbor.avroid.tech/devops/addlicense:1.1.2 COPY entrypoint.sh /entrypoint.sh From c3bafa54a85768d5bfe307fe6f82c6b4859e6363 Mon Sep 17 00:00:00 2001 From: "aleksandr.vodyanov" Date: Fri, 17 May 2024 18:18:33 +0300 Subject: [PATCH 29/32] up --- .gitea/workflows/check-license.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitea/workflows/check-license.yml b/.gitea/workflows/check-license.yml index 68a0f9c..e0c8ef7 100644 --- a/.gitea/workflows/check-license.yml +++ b/.gitea/workflows/check-license.yml @@ -41,7 +41,7 @@ jobs: - name: Check license for changed files id: check_license if: steps.changed-files-specific.outputs.any_changed == 'true' - uses: https://gitea:${{ secrets.CI_TOKEN }}@git.avroid.tech/Actions/addlicense-docker-action.git@v1.11 + uses: https://gitea:${{ secrets.CI_TOKEN }}@git.avroid.tech/Actions/addlicense-docker-action.git@v1.13 with: input_files: ${{ steps.changed-files-specific.outputs.all_changed_files }} exclude_pattern: From 8570bece243321f704bcf70e41778b593f01b5b3 Mon Sep 17 00:00:00 2001 From: "aleksandr.vodyanov" Date: Fri, 17 May 2024 18:25:46 +0300 Subject: [PATCH 30/32] up --- .gitea/workflows/check-license.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/check-license.yml b/.gitea/workflows/check-license.yml index e0c8ef7..90c7c67 100644 --- a/.gitea/workflows/check-license.yml +++ b/.gitea/workflows/check-license.yml @@ -1,8 +1,15 @@ ---- +# Copyright AVROID, Ltd., 2024 +# +# You can not use the contents of the file in any way without +# AVROID, Ltd. written permission. +# +# To obtain such a permit, you should contact AVROID, Ltd. +# at https://avroid.ru name: Check license run-name: ${{ gitea.actor }} is start check sources on: [pull_request] +--- jobs: scan-secrets: name: Check license From b5a3b69248076d253d22a8d3080e8a68e10f3d3a Mon Sep 17 00:00:00 2001 From: "aleksandr.vodyanov" Date: Fri, 17 May 2024 18:27:16 +0300 Subject: [PATCH 31/32] up --- .gitea/workflows/check-license.yml | 3 ++- entrypoint.sh | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/check-license.yml b/.gitea/workflows/check-license.yml index 90c7c67..93c164f 100644 --- a/.gitea/workflows/check-license.yml +++ b/.gitea/workflows/check-license.yml @@ -5,11 +5,12 @@ # # To obtain such a permit, you should contact AVROID, Ltd. # at https://avroid.ru + +--- name: Check license run-name: ${{ gitea.actor }} is start check sources on: [pull_request] ---- jobs: scan-secrets: name: Check license diff --git a/entrypoint.sh b/entrypoint.sh index f2b229b..da2b1f0 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -12,5 +12,5 @@ echo "Processing event '$GITHUB_EVENT_NAME'" echo "List of files with absent license:" echo "===================================" for file in $INPUT_INPUT_FILES; do - echo /app/addlicense -check "$1" $file | sh + echo /app/addlicense -check "$1" $file | sh done From 4f24d3a7a337cd5cb3c5be707e5b6af831e13bc2 Mon Sep 17 00:00:00 2001 From: "aleksandr.vodyanov" Date: Fri, 17 May 2024 18:29:33 +0300 Subject: [PATCH 32/32] up --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index e679da4..d24c7bc 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -# Copyright AVROID, Ltd., 2024 +# Copyright (c) AVROID, Ltd., 2024 # # You can not use the contents of the file in any way without # AVROID, Ltd. written permission.