From fe2ba0e1b42695b2650b3645e8d42ba246003f9f Mon Sep 17 00:00:00 2001 From: Rakshith B <79500257+Rakshithb1@users.noreply.github.com> Date: Mon, 8 Jan 2024 17:23:10 +0530 Subject: [PATCH 01/89] [DSD-3932] Updated push-trigger.yml Signed-off-by: Rakshith B <79500257+Rakshithb1@users.noreply.github.com> --- .github/workflows/push-trigger.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/push-trigger.yml b/.github/workflows/push-trigger.yml index 9b1ec24db09..02acfbed72a 100644 --- a/.github/workflows/push-trigger.yml +++ b/.github/workflows/push-trigger.yml @@ -35,7 +35,7 @@ jobs: SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK }} publish_to_nexus: - if: "${{ !contains(github.ref, 'master') && github.event_name != 'pull_request' }}" + if: "${{ !contains(github.ref, 'master') && github.event_name != 'pull_request' && github.event_name != 'release' && github.event_name != 'prerelease' && github.event_name != 'publish' }}" needs: build-commons uses: mosip/kattu/.github/workflows/maven-publish-to-nexus.yml@master with: From 678ffcbfc75c11170fba1946bfa1566cf70665e2 Mon Sep 17 00:00:00 2001 From: Rakshithb12 <152890955+Rakshithb12@users.noreply.github.com> Date: Fri, 12 Jan 2024 10:49:30 +0530 Subject: [PATCH 02/89] Update push-trigger.yml Signed-off-by: Rakshithb12 <152890955+Rakshithb12@users.noreply.github.com> --- .github/workflows/push-trigger.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/push-trigger.yml b/.github/workflows/push-trigger.yml index 02acfbed72a..3fbc6fd0510 100644 --- a/.github/workflows/push-trigger.yml +++ b/.github/workflows/push-trigger.yml @@ -1,4 +1,4 @@ -name: Maven Package upon a push +name: Maven Package upon a push on: release: From 71a478b4fdd04faf15e9c600b636b53bed7384ca Mon Sep 17 00:00:00 2001 From: Rakshith B <79500257+Rakshithb1@users.noreply.github.com> Date: Fri, 12 Jan 2024 13:02:59 +0530 Subject: [PATCH 03/89] Create add-checks.yml Signed-off-by: Rakshith B <79500257+Rakshithb1@users.noreply.github.com> --- .github/workflows/add-checks.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/add-checks.yml diff --git a/.github/workflows/add-checks.yml b/.github/workflows/add-checks.yml new file mode 100644 index 00000000000..45ea03b8b67 --- /dev/null +++ b/.github/workflows/add-checks.yml @@ -0,0 +1,24 @@ +name: Add Branch Protection + +on: + push: + branches: + - develop + +jobs: + add-branch-protection: + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v2 + + - name: Add branch protection rule + run: | + curl -L \ + -X POST \ + -H "Accept: application/vnd.github+json" \ + -H "Authorization: Bearer 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" \ + -H "X-GitHub-Api-Version: 2022-11-28" \ + https://api.github.com/repos/Rakshithb1/commons/branches/develop/protection/required_status_checks/contexts \ + -d '{"contexts":["kernel-idgenerator-service / build-dockers","kernel-notification-service / build-dockers"]}' From 4c06e2696f97635372bbed01653cc15425769335 Mon Sep 17 00:00:00 2001 From: Rakshith B <79500257+Rakshithb1@users.noreply.github.com> Date: Fri, 12 Jan 2024 13:09:06 +0530 Subject: [PATCH 04/89] Update add-checks.yml Signed-off-by: Rakshith B <79500257+Rakshithb1@users.noreply.github.com> --- .github/workflows/add-checks.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/add-checks.yml b/.github/workflows/add-checks.yml index 45ea03b8b67..5866d0edec1 100644 --- a/.github/workflows/add-checks.yml +++ b/.github/workflows/add-checks.yml @@ -18,7 +18,7 @@ jobs: curl -L \ -X POST \ -H "Accept: application/vnd.github+json" \ - -H "Authorization: Bearer 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" \ + -H "Authorization: Bearer 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" \ -H "X-GitHub-Api-Version: 2022-11-28" \ https://api.github.com/repos/Rakshithb1/commons/branches/develop/protection/required_status_checks/contexts \ -d '{"contexts":["kernel-idgenerator-service / build-dockers","kernel-notification-service / build-dockers"]}' From 5e89f4e8d2a7e71467d8b5828189c9335036a45c Mon Sep 17 00:00:00 2001 From: Rakshith B <79500257+Rakshithb1@users.noreply.github.com> Date: Fri, 12 Jan 2024 13:13:10 +0530 Subject: [PATCH 05/89] Update add-checks.yml Signed-off-by: Rakshith B <79500257+Rakshithb1@users.noreply.github.com> --- .github/workflows/add-checks.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/add-checks.yml b/.github/workflows/add-checks.yml index 5866d0edec1..44f327666ea 100644 --- a/.github/workflows/add-checks.yml +++ b/.github/workflows/add-checks.yml @@ -15,10 +15,11 @@ jobs: - name: Add branch protection rule run: | + TOKEN=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 curl -L \ -X POST \ -H "Accept: application/vnd.github+json" \ - -H "Authorization: Bearer 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" \ + -H "Authorization: Bearer $TOKEN" \ -H "X-GitHub-Api-Version: 2022-11-28" \ https://api.github.com/repos/Rakshithb1/commons/branches/develop/protection/required_status_checks/contexts \ -d '{"contexts":["kernel-idgenerator-service / build-dockers","kernel-notification-service / build-dockers"]}' From fe94c07ce6516560df727a24d6ca21d891c0c284 Mon Sep 17 00:00:00 2001 From: Rakshith B <79500257+Rakshithb1@users.noreply.github.com> Date: Fri, 12 Jan 2024 13:20:48 +0530 Subject: [PATCH 06/89] Update add-checks.yml Signed-off-by: Rakshith B <79500257+Rakshithb1@users.noreply.github.com> --- .github/workflows/add-checks.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/add-checks.yml b/.github/workflows/add-checks.yml index 44f327666ea..e2d95275c28 100644 --- a/.github/workflows/add-checks.yml +++ b/.github/workflows/add-checks.yml @@ -15,11 +15,11 @@ jobs: - name: Add branch protection rule run: | - TOKEN=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 + curl -L \ -X POST \ -H "Accept: application/vnd.github+json" \ - -H "Authorization: Bearer $TOKEN" \ + -H "Authorization: Bearer ${{ secrets.TOKEN }}" \ -H "X-GitHub-Api-Version: 2022-11-28" \ https://api.github.com/repos/Rakshithb1/commons/branches/develop/protection/required_status_checks/contexts \ -d '{"contexts":["kernel-idgenerator-service / build-dockers","kernel-notification-service / build-dockers"]}' From d2004dd5f14a9ac64ac3fabb0666ea3ffaf2b2d2 Mon Sep 17 00:00:00 2001 From: Rakshith B <79500257+Rakshithb1@users.noreply.github.com> Date: Fri, 12 Jan 2024 13:24:06 +0530 Subject: [PATCH 07/89] Update add-checks.yml Signed-off-by: Rakshith B <79500257+Rakshithb1@users.noreply.github.com> --- .github/workflows/add-checks.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/add-checks.yml b/.github/workflows/add-checks.yml index e2d95275c28..38cc53fa6c0 100644 --- a/.github/workflows/add-checks.yml +++ b/.github/workflows/add-checks.yml @@ -19,7 +19,7 @@ jobs: curl -L \ -X POST \ -H "Accept: application/vnd.github+json" \ - -H "Authorization: Bearer ${{ secrets.TOKEN }}" \ + -H "Authorization: token ${{ secrets.TOKEN }}" \ -H "X-GitHub-Api-Version: 2022-11-28" \ https://api.github.com/repos/Rakshithb1/commons/branches/develop/protection/required_status_checks/contexts \ -d '{"contexts":["kernel-idgenerator-service / build-dockers","kernel-notification-service / build-dockers"]}' From 04f6ab8df3113a7f8e9695e4346ef0f6a7cd9e10 Mon Sep 17 00:00:00 2001 From: Rakshith B <79500257+Rakshithb1@users.noreply.github.com> Date: Fri, 12 Jan 2024 13:30:52 +0530 Subject: [PATCH 08/89] Update add-checks.yml Signed-off-by: Rakshith B <79500257+Rakshithb1@users.noreply.github.com> --- .github/workflows/add-checks.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/add-checks.yml b/.github/workflows/add-checks.yml index 38cc53fa6c0..64a107b05f1 100644 --- a/.github/workflows/add-checks.yml +++ b/.github/workflows/add-checks.yml @@ -16,8 +16,8 @@ jobs: - name: Add branch protection rule run: | - curl -L \ - -X POST \ + curl -X POST \ + -H "Accept: application/vnd.github+json" \ -H "Authorization: token ${{ secrets.TOKEN }}" \ -H "X-GitHub-Api-Version: 2022-11-28" \ From f282451dbe5a2332989ed173cd2824f92fa1c411 Mon Sep 17 00:00:00 2001 From: Rakshith B <79500257+Rakshithb1@users.noreply.github.com> Date: Fri, 12 Jan 2024 13:34:07 +0530 Subject: [PATCH 09/89] Update add-checks.yml Signed-off-by: Rakshith B <79500257+Rakshithb1@users.noreply.github.com> --- .github/workflows/add-checks.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/.github/workflows/add-checks.yml b/.github/workflows/add-checks.yml index 64a107b05f1..af4f9dc1b2a 100644 --- a/.github/workflows/add-checks.yml +++ b/.github/workflows/add-checks.yml @@ -13,6 +13,27 @@ jobs: - name: Checkout code uses: actions/checkout@v2 + - name: Create branch protection + run: | + BRANCH_NAME="your-branch-name" + GITHUB_TOKEN=${{ secrets.TOKEN }} + + # Get the repository information + REPO_OWNER=$(echo $GITHUB_REPOSITORY | cut -d '/' -f 1) + REPO_NAME=$(echo $GITHUB_REPOSITORY | cut -d '/' -f 2) + + # Create a branch protection rule using GitHub API + curl -X PUT \ + -H "Authorization: Bearer $TOKEN" \ + -H "Accept: application/vnd.github.v3+json" \ + "https://api.github.com/repos/$REPO_OWNER/$REPO_NAME/branches/$BRANCH_NAME/protection" \ + -d '{ + "required_status_checks": { + "enforcement_level": "strict", + "contexts": ["Your-Status-Check-Context"] + } + }' + - name: Add branch protection rule run: | From 9abc23192fdddb0df63aafaaa5a1f3156f5ebbac Mon Sep 17 00:00:00 2001 From: Rakshith B <79500257+Rakshithb1@users.noreply.github.com> Date: Fri, 12 Jan 2024 13:37:48 +0530 Subject: [PATCH 10/89] Update add-checks.yml Signed-off-by: Rakshith B <79500257+Rakshithb1@users.noreply.github.com> --- .github/workflows/add-checks.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/add-checks.yml b/.github/workflows/add-checks.yml index af4f9dc1b2a..bb96434c39d 100644 --- a/.github/workflows/add-checks.yml +++ b/.github/workflows/add-checks.yml @@ -16,7 +16,7 @@ jobs: - name: Create branch protection run: | BRANCH_NAME="your-branch-name" - GITHUB_TOKEN=${{ secrets.TOKEN }} + GITHUB_TOKEN=${{ secrets.$GITHUB_TOKEN }} # Get the repository information REPO_OWNER=$(echo $GITHUB_REPOSITORY | cut -d '/' -f 1) @@ -24,7 +24,7 @@ jobs: # Create a branch protection rule using GitHub API curl -X PUT \ - -H "Authorization: Bearer $TOKEN" \ + -H "Authorization: Bearer $GITHUB_TOKEN" \ -H "Accept: application/vnd.github.v3+json" \ "https://api.github.com/repos/$REPO_OWNER/$REPO_NAME/branches/$BRANCH_NAME/protection" \ -d '{ From 272f9671c97950e6898b1a032386f6f9d8410258 Mon Sep 17 00:00:00 2001 From: Rakshith B <79500257+Rakshithb1@users.noreply.github.com> Date: Fri, 12 Jan 2024 13:39:11 +0530 Subject: [PATCH 11/89] Update add-checks.yml Signed-off-by: Rakshith B <79500257+Rakshithb1@users.noreply.github.com> --- .github/workflows/add-checks.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/add-checks.yml b/.github/workflows/add-checks.yml index bb96434c39d..4932eb22ad2 100644 --- a/.github/workflows/add-checks.yml +++ b/.github/workflows/add-checks.yml @@ -15,8 +15,8 @@ jobs: - name: Create branch protection run: | - BRANCH_NAME="your-branch-name" - GITHUB_TOKEN=${{ secrets.$GITHUB_TOKEN }} + BRANCH_NAME="develop" + GITHUB_TOKEN=${{ secrets.GITHUB_TOKEN }} # Get the repository information REPO_OWNER=$(echo $GITHUB_REPOSITORY | cut -d '/' -f 1) From e69d5ed742a8a94e5710c27852fe25bc9dfc5271 Mon Sep 17 00:00:00 2001 From: Rakshith B <79500257+Rakshithb1@users.noreply.github.com> Date: Fri, 12 Jan 2024 13:41:54 +0530 Subject: [PATCH 12/89] Update add-checks.yml Signed-off-by: Rakshith B <79500257+Rakshithb1@users.noreply.github.com> --- .github/workflows/add-checks.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/add-checks.yml b/.github/workflows/add-checks.yml index 4932eb22ad2..c32b1ffa062 100644 --- a/.github/workflows/add-checks.yml +++ b/.github/workflows/add-checks.yml @@ -30,7 +30,7 @@ jobs: -d '{ "required_status_checks": { "enforcement_level": "strict", - "contexts": ["Your-Status-Check-Context"] + "contexts": ["kernel-idgenerator-service / build-dockers"] } }' From 2c6c9cb7ecc88d70fa307af6ea3e0f3e3c686982 Mon Sep 17 00:00:00 2001 From: Rakshith B <79500257+Rakshithb1@users.noreply.github.com> Date: Fri, 12 Jan 2024 13:45:14 +0530 Subject: [PATCH 13/89] Update add-checks.yml Signed-off-by: Rakshith B <79500257+Rakshithb1@users.noreply.github.com> --- .github/workflows/add-checks.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/add-checks.yml b/.github/workflows/add-checks.yml index c32b1ffa062..e2837aa419f 100644 --- a/.github/workflows/add-checks.yml +++ b/.github/workflows/add-checks.yml @@ -19,8 +19,8 @@ jobs: GITHUB_TOKEN=${{ secrets.GITHUB_TOKEN }} # Get the repository information - REPO_OWNER=$(echo $GITHUB_REPOSITORY | cut -d '/' -f 1) - REPO_NAME=$(echo $GITHUB_REPOSITORY | cut -d '/' -f 2) + REPO_OWNER=Rakshithb1 + REPO_NAME=commons # Create a branch protection rule using GitHub API curl -X PUT \ From 94bdf14e3c89b9085218f72b9c45f82e907d5af4 Mon Sep 17 00:00:00 2001 From: Rakshith B <79500257+Rakshithb1@users.noreply.github.com> Date: Fri, 12 Jan 2024 13:45:32 +0530 Subject: [PATCH 14/89] Update add-checks.yml Signed-off-by: Rakshith B <79500257+Rakshithb1@users.noreply.github.com> --- .github/workflows/add-checks.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/add-checks.yml b/.github/workflows/add-checks.yml index e2837aa419f..d848c580d41 100644 --- a/.github/workflows/add-checks.yml +++ b/.github/workflows/add-checks.yml @@ -15,7 +15,7 @@ jobs: - name: Create branch protection run: | - BRANCH_NAME="develop" + BRANCH_NAME=develop GITHUB_TOKEN=${{ secrets.GITHUB_TOKEN }} # Get the repository information From 1bec39224eddbe3e49242a8a9929c4e63a2e925d Mon Sep 17 00:00:00 2001 From: Rakshith B <79500257+Rakshithb1@users.noreply.github.com> Date: Fri, 12 Jan 2024 13:45:53 +0530 Subject: [PATCH 15/89] Update add-checks.yml Signed-off-by: Rakshith B <79500257+Rakshithb1@users.noreply.github.com> --- .github/workflows/add-checks.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/add-checks.yml b/.github/workflows/add-checks.yml index d848c580d41..5f1815115c2 100644 --- a/.github/workflows/add-checks.yml +++ b/.github/workflows/add-checks.yml @@ -15,12 +15,12 @@ jobs: - name: Create branch protection run: | - BRANCH_NAME=develop + BRANCH_NAME="develop" GITHUB_TOKEN=${{ secrets.GITHUB_TOKEN }} # Get the repository information - REPO_OWNER=Rakshithb1 - REPO_NAME=commons + REPO_OWNER="Rakshithb1" + REPO_NAME="commons" # Create a branch protection rule using GitHub API curl -X PUT \ From 70a8540678202287ca6e7940826bdeb32f16b5d7 Mon Sep 17 00:00:00 2001 From: Rakshith B <79500257+Rakshithb1@users.noreply.github.com> Date: Fri, 12 Jan 2024 13:59:44 +0530 Subject: [PATCH 16/89] Update add-checks.yml Signed-off-by: Rakshith B <79500257+Rakshithb1@users.noreply.github.com> --- .github/workflows/add-checks.yml | 29 ++++------------------------- 1 file changed, 4 insertions(+), 25 deletions(-) diff --git a/.github/workflows/add-checks.yml b/.github/workflows/add-checks.yml index 5f1815115c2..3246767704c 100644 --- a/.github/workflows/add-checks.yml +++ b/.github/workflows/add-checks.yml @@ -13,34 +13,13 @@ jobs: - name: Checkout code uses: actions/checkout@v2 - - name: Create branch protection - run: | - BRANCH_NAME="develop" - GITHUB_TOKEN=${{ secrets.GITHUB_TOKEN }} - - # Get the repository information - REPO_OWNER="Rakshithb1" - REPO_NAME="commons" - # Create a branch protection rule using GitHub API - curl -X PUT \ - -H "Authorization: Bearer $GITHUB_TOKEN" \ - -H "Accept: application/vnd.github.v3+json" \ - "https://api.github.com/repos/$REPO_OWNER/$REPO_NAME/branches/$BRANCH_NAME/protection" \ - -d '{ - "required_status_checks": { - "enforcement_level": "strict", - "contexts": ["kernel-idgenerator-service / build-dockers"] - } - }' - name: Add branch protection rule run: | - - curl -X POST \ - + curl -L \ -H "Accept: application/vnd.github+json" \ - -H "Authorization: token ${{ secrets.TOKEN }}" \ + -H "Authorization: Bearer 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" \ -H "X-GitHub-Api-Version: 2022-11-28" \ - https://api.github.com/repos/Rakshithb1/commons/branches/develop/protection/required_status_checks/contexts \ - -d '{"contexts":["kernel-idgenerator-service / build-dockers","kernel-notification-service / build-dockers"]}' + https://api.github.com/repos/Rakshithb1/commons/branches/develop/protection/required_status_checks + From 04f6f1db8ed2925586293417142a83fcf84ca93f Mon Sep 17 00:00:00 2001 From: Rakshith B <79500257+Rakshithb1@users.noreply.github.com> Date: Fri, 12 Jan 2024 14:05:15 +0530 Subject: [PATCH 17/89] Update add-checks.yml Signed-off-by: Rakshith B <79500257+Rakshithb1@users.noreply.github.com> --- .github/workflows/add-checks.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/add-checks.yml b/.github/workflows/add-checks.yml index 3246767704c..cd55b122f7a 100644 --- a/.github/workflows/add-checks.yml +++ b/.github/workflows/add-checks.yml @@ -19,7 +19,8 @@ jobs: run: | curl -L \ -H "Accept: application/vnd.github+json" \ - -H "Authorization: Bearer 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" \ + -H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \ -H "X-GitHub-Api-Version: 2022-11-28" \ https://api.github.com/repos/Rakshithb1/commons/branches/develop/protection/required_status_checks - + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} From 7216c24667b1723972a5f19d20303c0745264147 Mon Sep 17 00:00:00 2001 From: Rakshith B <79500257+Rakshithb1@users.noreply.github.com> Date: Fri, 12 Jan 2024 14:07:44 +0530 Subject: [PATCH 18/89] Update add-checks.yml Signed-off-by: Rakshith B <79500257+Rakshithb1@users.noreply.github.com> --- .github/workflows/add-checks.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/add-checks.yml b/.github/workflows/add-checks.yml index cd55b122f7a..223e62b7e58 100644 --- a/.github/workflows/add-checks.yml +++ b/.github/workflows/add-checks.yml @@ -19,8 +19,8 @@ jobs: run: | curl -L \ -H "Accept: application/vnd.github+json" \ - -H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \ + -H "Authorization: Bearer ${{ secrets.TOKEN }}" \ -H "X-GitHub-Api-Version: 2022-11-28" \ https://api.github.com/repos/Rakshithb1/commons/branches/develop/protection/required_status_checks env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GITHUB_TOKEN: ${{ secrets.TOKEN }} From 62fa89fd2ec5dff3046d249ce2e99c625fee2132 Mon Sep 17 00:00:00 2001 From: Rakshith B <79500257+Rakshithb1@users.noreply.github.com> Date: Fri, 12 Jan 2024 14:09:22 +0530 Subject: [PATCH 19/89] Update add-checks.yml Signed-off-by: Rakshith B <79500257+Rakshithb1@users.noreply.github.com> --- .github/workflows/add-checks.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/add-checks.yml b/.github/workflows/add-checks.yml index 223e62b7e58..c3ed0bcbd17 100644 --- a/.github/workflows/add-checks.yml +++ b/.github/workflows/add-checks.yml @@ -19,7 +19,7 @@ jobs: run: | curl -L \ -H "Accept: application/vnd.github+json" \ - -H "Authorization: Bearer ${{ secrets.TOKEN }}" \ + -H "Authorization: Bearer $GITHUB_TOKEN" \ -H "X-GitHub-Api-Version: 2022-11-28" \ https://api.github.com/repos/Rakshithb1/commons/branches/develop/protection/required_status_checks env: From 2508db627e6ee5ad637df8b8f6bf46b2178a7b00 Mon Sep 17 00:00:00 2001 From: Rakshith B <79500257+Rakshithb1@users.noreply.github.com> Date: Fri, 12 Jan 2024 14:15:00 +0530 Subject: [PATCH 20/89] Update add-checks.yml Signed-off-by: Rakshith B <79500257+Rakshithb1@users.noreply.github.com> --- .github/workflows/add-checks.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/add-checks.yml b/.github/workflows/add-checks.yml index c3ed0bcbd17..259949d5e37 100644 --- a/.github/workflows/add-checks.yml +++ b/.github/workflows/add-checks.yml @@ -1,4 +1,4 @@ -name: Add Branch Protection +name: Add Branch Protection on: push: @@ -19,7 +19,7 @@ jobs: run: | curl -L \ -H "Accept: application/vnd.github+json" \ - -H "Authorization: Bearer $GITHUB_TOKEN" \ + -H "Authorization: Bearer ${{ secrets.TOKEN }}" \ -H "X-GitHub-Api-Version: 2022-11-28" \ https://api.github.com/repos/Rakshithb1/commons/branches/develop/protection/required_status_checks env: From 4828e13721b7e3ba42253639524309ab2746573a Mon Sep 17 00:00:00 2001 From: Rakshith B <79500257+Rakshithb1@users.noreply.github.com> Date: Fri, 12 Jan 2024 14:20:13 +0530 Subject: [PATCH 21/89] Update add-checks.yml Signed-off-by: Rakshith B <79500257+Rakshithb1@users.noreply.github.com> --- .github/workflows/add-checks.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/add-checks.yml b/.github/workflows/add-checks.yml index 259949d5e37..5958d1da30d 100644 --- a/.github/workflows/add-checks.yml +++ b/.github/workflows/add-checks.yml @@ -19,7 +19,7 @@ jobs: run: | curl -L \ -H "Accept: application/vnd.github+json" \ - -H "Authorization: Bearer ${{ secrets.TOKEN }}" \ + -H "Authorization: token ${{ secrets.TOKEN }}" \ -H "X-GitHub-Api-Version: 2022-11-28" \ https://api.github.com/repos/Rakshithb1/commons/branches/develop/protection/required_status_checks env: From 9ed5b1c4fb2128a0d44938d837624f97c08c3111 Mon Sep 17 00:00:00 2001 From: Rakshith B <79500257+Rakshithb1@users.noreply.github.com> Date: Fri, 12 Jan 2024 15:24:37 +0530 Subject: [PATCH 22/89] Update add-checks.yml Signed-off-by: Rakshith B <79500257+Rakshithb1@users.noreply.github.com> --- .github/workflows/add-checks.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/.github/workflows/add-checks.yml b/.github/workflows/add-checks.yml index 5958d1da30d..80ab3379bd1 100644 --- a/.github/workflows/add-checks.yml +++ b/.github/workflows/add-checks.yml @@ -13,7 +13,29 @@ jobs: - name: Checkout code uses: actions/checkout@v2 + - name: Add branch protection rule + run: | + TOKEN=$GITHUB_TOKEN + REPO_OWNER=${{ github.repository_owner }} + REPO_NAME=${{ github.event.repository.name }} + BRANCH_NAME=${{ github.event.ref }} + + # Create a branch protection rule + curl -X PUT \ + -H "Authorization: Bearer $TOKEN" \ + -H "Accept: application/vnd.github.v3+json" \ + https://api.github.com/repos/$REPO_OWNER/$REPO_NAME/branches/$BRANCH_NAME/protection \ + -d '{ + "required_status_checks": { + "contexts": ["your-check-name"] + }, + "enforce_admins": true, + "required_pull_request_reviews": null, + "restrictions": null + }' + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: Add branch protection rule run: | From df3791ccb0b7a4cf7039f42e0ef08b8bfb7597d9 Mon Sep 17 00:00:00 2001 From: Rakshith B <79500257+Rakshithb1@users.noreply.github.com> Date: Fri, 12 Jan 2024 15:26:29 +0530 Subject: [PATCH 23/89] Update add-checks.yml Signed-off-by: Rakshith B <79500257+Rakshithb1@users.noreply.github.com> --- .github/workflows/add-checks.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/add-checks.yml b/.github/workflows/add-checks.yml index 80ab3379bd1..8121c58896d 100644 --- a/.github/workflows/add-checks.yml +++ b/.github/workflows/add-checks.yml @@ -27,7 +27,7 @@ jobs: https://api.github.com/repos/$REPO_OWNER/$REPO_NAME/branches/$BRANCH_NAME/protection \ -d '{ "required_status_checks": { - "contexts": ["your-check-name"] + "contexts": ["kernel-idgenerator-service / build-dockers"] }, "enforce_admins": true, "required_pull_request_reviews": null, From 001f2f07c3963b17749195fc40f4775a11e33028 Mon Sep 17 00:00:00 2001 From: Rakshith B <79500257+Rakshithb1@users.noreply.github.com> Date: Fri, 12 Jan 2024 15:27:39 +0530 Subject: [PATCH 24/89] Update add-checks.yml Signed-off-by: Rakshith B <79500257+Rakshithb1@users.noreply.github.com> --- .github/workflows/add-checks.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/add-checks.yml b/.github/workflows/add-checks.yml index 8121c58896d..21fd5111173 100644 --- a/.github/workflows/add-checks.yml +++ b/.github/workflows/add-checks.yml @@ -27,7 +27,7 @@ jobs: https://api.github.com/repos/$REPO_OWNER/$REPO_NAME/branches/$BRANCH_NAME/protection \ -d '{ "required_status_checks": { - "contexts": ["kernel-idgenerator-service / build-dockers"] + "contexts": ["kernel-idgenerator-service/build-dockers"] }, "enforce_admins": true, "required_pull_request_reviews": null, From f3b81c704026633414f77f5522ee3be5b8a05cc2 Mon Sep 17 00:00:00 2001 From: Rakshith B <79500257+Rakshithb1@users.noreply.github.com> Date: Fri, 12 Jan 2024 15:29:14 +0530 Subject: [PATCH 25/89] Update add-checks.yml Signed-off-by: Rakshith B <79500257+Rakshithb1@users.noreply.github.com> --- .github/workflows/add-checks.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/add-checks.yml b/.github/workflows/add-checks.yml index 21fd5111173..eea14083a29 100644 --- a/.github/workflows/add-checks.yml +++ b/.github/workflows/add-checks.yml @@ -15,7 +15,7 @@ jobs: - name: Add branch protection rule run: | - TOKEN=$GITHUB_TOKEN + TOKEN=$TOKEN REPO_OWNER=${{ github.repository_owner }} REPO_NAME=${{ github.event.repository.name }} BRANCH_NAME=${{ github.event.ref }} @@ -35,7 +35,7 @@ jobs: }' env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GITHUB_TOKEN: ${{ secrets.TOKEN }} - name: Add branch protection rule run: | From a4499334bb3f12b06d2055439461cdde70a2163f Mon Sep 17 00:00:00 2001 From: Rakshith B <79500257+Rakshithb1@users.noreply.github.com> Date: Fri, 12 Jan 2024 15:32:55 +0530 Subject: [PATCH 26/89] Update add-checks.yml Signed-off-by: Rakshith B <79500257+Rakshithb1@users.noreply.github.com> --- .github/workflows/add-checks.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/add-checks.yml b/.github/workflows/add-checks.yml index eea14083a29..a4277802a3c 100644 --- a/.github/workflows/add-checks.yml +++ b/.github/workflows/add-checks.yml @@ -15,7 +15,7 @@ jobs: - name: Add branch protection rule run: | - TOKEN=$TOKEN + TOKEN=$GITHUB_TOKEN REPO_OWNER=${{ github.repository_owner }} REPO_NAME=${{ github.event.repository.name }} BRANCH_NAME=${{ github.event.ref }} @@ -24,7 +24,7 @@ jobs: curl -X PUT \ -H "Authorization: Bearer $TOKEN" \ -H "Accept: application/vnd.github.v3+json" \ - https://api.github.com/repos/$REPO_OWNER/$REPO_NAME/branches/$BRANCH_NAME/protection \ + https://api.github.com/repos/Rakshithb1/commons/branches/develop/protection \ -d '{ "required_status_checks": { "contexts": ["kernel-idgenerator-service/build-dockers"] @@ -35,7 +35,7 @@ jobs: }' env: - GITHUB_TOKEN: ${{ secrets.TOKEN }} + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: Add branch protection rule run: | From 4ecb719c13fb35162c123be19e86902bb91b6d8b Mon Sep 17 00:00:00 2001 From: Rakshith B <79500257+Rakshithb1@users.noreply.github.com> Date: Fri, 12 Jan 2024 15:36:21 +0530 Subject: [PATCH 27/89] Update add-checks.yml Signed-off-by: Rakshith B <79500257+Rakshithb1@users.noreply.github.com> --- .github/workflows/add-checks.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/add-checks.yml b/.github/workflows/add-checks.yml index a4277802a3c..a0b30d11df3 100644 --- a/.github/workflows/add-checks.yml +++ b/.github/workflows/add-checks.yml @@ -22,7 +22,7 @@ jobs: # Create a branch protection rule curl -X PUT \ - -H "Authorization: Bearer $TOKEN" \ + -H "Authorization: Bearer ${{ secrets.TOKEN }}" \ -H "Accept: application/vnd.github.v3+json" \ https://api.github.com/repos/Rakshithb1/commons/branches/develop/protection \ -d '{ From 967bf17edd58649413ba91376dc49ab6a79fb61b Mon Sep 17 00:00:00 2001 From: Rakshith B <79500257+Rakshithb1@users.noreply.github.com> Date: Fri, 12 Jan 2024 15:40:05 +0530 Subject: [PATCH 28/89] Update add-checks.yml Signed-off-by: Rakshith B <79500257+Rakshithb1@users.noreply.github.com> --- .github/workflows/add-checks.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/add-checks.yml b/.github/workflows/add-checks.yml index a0b30d11df3..c35bd58fcae 100644 --- a/.github/workflows/add-checks.yml +++ b/.github/workflows/add-checks.yml @@ -22,7 +22,7 @@ jobs: # Create a branch protection rule curl -X PUT \ - -H "Authorization: Bearer ${{ secrets.TOKEN }}" \ + -H "Authorization: Bearer $GH_TOKEN" \ -H "Accept: application/vnd.github.v3+json" \ https://api.github.com/repos/Rakshithb1/commons/branches/develop/protection \ -d '{ @@ -35,7 +35,7 @@ jobs: }' env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GH_TOKEN: ${{ steps.generate_token.outputs.token }} - name: Add branch protection rule run: | From 09cb5504d93d89938350ac1a6aaa0c8f84072147 Mon Sep 17 00:00:00 2001 From: Rakshith B <79500257+Rakshithb1@users.noreply.github.com> Date: Fri, 12 Jan 2024 16:29:21 +0530 Subject: [PATCH 29/89] Update add-checks.yml Signed-off-by: Rakshith B <79500257+Rakshithb1@users.noreply.github.com> --- .github/workflows/add-checks.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/workflows/add-checks.yml b/.github/workflows/add-checks.yml index c35bd58fcae..0676a3901a9 100644 --- a/.github/workflows/add-checks.yml +++ b/.github/workflows/add-checks.yml @@ -46,3 +46,13 @@ jobs: https://api.github.com/repos/Rakshithb1/commons/branches/develop/protection/required_status_checks env: GITHUB_TOKEN: ${{ secrets.TOKEN }} + + + - name: Add branch protection rule + run: | + curl -X POST \ + -H "Authorization: token ${{ secrets.TOKEN }}" \ + -H "Accept: application/vnd.github.v3+json" \ + -H "X-GitHub-Api-Version: 2022-11-28" \ + https://api.github.com/repos/Rakshithb1/commons/git/refs \ + -d '{"ref": "refs/tags/'"$TAG"'", "sha": "'"$OBJECT_SHA"'"}' From c4649a535698946af6931354603293391c26495f Mon Sep 17 00:00:00 2001 From: Rakshith B <79500257+Rakshithb1@users.noreply.github.com> Date: Fri, 12 Jan 2024 18:28:19 +0530 Subject: [PATCH 30/89] Update add-checks.yml Signed-off-by: Rakshith B <79500257+Rakshithb1@users.noreply.github.com> --- .github/workflows/add-checks.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/add-checks.yml b/.github/workflows/add-checks.yml index 0676a3901a9..6f7fd739f79 100644 --- a/.github/workflows/add-checks.yml +++ b/.github/workflows/add-checks.yml @@ -12,7 +12,12 @@ jobs: steps: - name: Checkout code uses: actions/checkout@v2 - + - name: Add + run: | + gh api \ + -H "Accept: application/vnd.github+json" \ + -H "X-GitHub-Api-Version: 2022-11-28" \ + /repos/Rakshithb1/commons/branches/develop/protection - name: Add branch protection rule run: | TOKEN=$GITHUB_TOKEN From 705b8acdaf49632a303482e27fa78b96ce075f74 Mon Sep 17 00:00:00 2001 From: Rakshith B <79500257+Rakshithb1@users.noreply.github.com> Date: Fri, 12 Jan 2024 18:31:06 +0530 Subject: [PATCH 31/89] Update add-checks.yml Signed-off-by: Rakshith B <79500257+Rakshithb1@users.noreply.github.com> --- .github/workflows/add-checks.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/add-checks.yml b/.github/workflows/add-checks.yml index 6f7fd739f79..059778deadb 100644 --- a/.github/workflows/add-checks.yml +++ b/.github/workflows/add-checks.yml @@ -12,12 +12,15 @@ jobs: steps: - name: Checkout code uses: actions/checkout@v2 + - name: Add run: | gh api \ -H "Accept: application/vnd.github+json" \ -H "X-GitHub-Api-Version: 2022-11-28" \ /repos/Rakshithb1/commons/branches/develop/protection + env: + GH_TOKEN: ${{ github.token }} - name: Add branch protection rule run: | TOKEN=$GITHUB_TOKEN From c9ea48e0d96171be26f4193baa00e8dcc5213a65 Mon Sep 17 00:00:00 2001 From: Rakshith B <79500257+Rakshithb1@users.noreply.github.com> Date: Fri, 12 Jan 2024 18:35:00 +0530 Subject: [PATCH 32/89] Update add-checks.yml Signed-off-by: Rakshith B <79500257+Rakshithb1@users.noreply.github.com> --- .github/workflows/add-checks.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/add-checks.yml b/.github/workflows/add-checks.yml index 059778deadb..2b5ec842c55 100644 --- a/.github/workflows/add-checks.yml +++ b/.github/workflows/add-checks.yml @@ -20,7 +20,7 @@ jobs: -H "X-GitHub-Api-Version: 2022-11-28" \ /repos/Rakshithb1/commons/branches/develop/protection env: - GH_TOKEN: ${{ github.token }} + GH_TOKEN: ${{ secrets.TOKEN }} - name: Add branch protection rule run: | TOKEN=$GITHUB_TOKEN From f26b7baeb35ce40c856a3532c243578aea450a98 Mon Sep 17 00:00:00 2001 From: Rakshith B <79500257+Rakshithb1@users.noreply.github.com> Date: Fri, 12 Jan 2024 18:43:29 +0530 Subject: [PATCH 33/89] Update add-checks.yml Signed-off-by: Rakshith B <79500257+Rakshithb1@users.noreply.github.com> --- .github/workflows/add-checks.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/add-checks.yml b/.github/workflows/add-checks.yml index 2b5ec842c55..d9faee67835 100644 --- a/.github/workflows/add-checks.yml +++ b/.github/workflows/add-checks.yml @@ -49,7 +49,7 @@ jobs: run: | curl -L \ -H "Accept: application/vnd.github+json" \ - -H "Authorization: token ${{ secrets.TOKEN }}" \ + -H "Authorization: token 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" \ -H "X-GitHub-Api-Version: 2022-11-28" \ https://api.github.com/repos/Rakshithb1/commons/branches/develop/protection/required_status_checks env: From 9ec94515eeb18e7405d001a97ba2de2c8899756a Mon Sep 17 00:00:00 2001 From: Rakshith B <79500257+Rakshithb1@users.noreply.github.com> Date: Fri, 12 Jan 2024 18:43:50 +0530 Subject: [PATCH 34/89] Update add-checks.yml Signed-off-by: Rakshith B <79500257+Rakshithb1@users.noreply.github.com> --- .github/workflows/add-checks.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/add-checks.yml b/.github/workflows/add-checks.yml index d9faee67835..ffd4a872e17 100644 --- a/.github/workflows/add-checks.yml +++ b/.github/workflows/add-checks.yml @@ -20,7 +20,7 @@ jobs: -H "X-GitHub-Api-Version: 2022-11-28" \ /repos/Rakshithb1/commons/branches/develop/protection env: - GH_TOKEN: ${{ secrets.TOKEN }} + GH_TOKEN: ${{ secrets.NTOKEN }} - name: Add branch protection rule run: | TOKEN=$GITHUB_TOKEN From dd4d1e546164af42c04e80c2412018dd8cadb5e2 Mon Sep 17 00:00:00 2001 From: Rakshith B <79500257+Rakshithb1@users.noreply.github.com> Date: Fri, 12 Jan 2024 18:44:39 +0530 Subject: [PATCH 35/89] Update add-checks.yml Signed-off-by: Rakshith B <79500257+Rakshithb1@users.noreply.github.com> --- .github/workflows/add-checks.yml | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/.github/workflows/add-checks.yml b/.github/workflows/add-checks.yml index ffd4a872e17..f0c8781021b 100644 --- a/.github/workflows/add-checks.yml +++ b/.github/workflows/add-checks.yml @@ -13,14 +13,7 @@ jobs: - name: Checkout code uses: actions/checkout@v2 - - name: Add - run: | - gh api \ - -H "Accept: application/vnd.github+json" \ - -H "X-GitHub-Api-Version: 2022-11-28" \ - /repos/Rakshithb1/commons/branches/develop/protection - env: - GH_TOKEN: ${{ secrets.NTOKEN }} + - name: Add branch protection rule run: | TOKEN=$GITHUB_TOKEN From 609dc07639f217a2cf139abc453ae752c914c86a Mon Sep 17 00:00:00 2001 From: Rakshith B <79500257+Rakshithb1@users.noreply.github.com> Date: Fri, 12 Jan 2024 20:12:24 +0530 Subject: [PATCH 36/89] Update add-checks.yml Signed-off-by: Rakshith B <79500257+Rakshithb1@users.noreply.github.com> --- .github/workflows/add-checks.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/add-checks.yml b/.github/workflows/add-checks.yml index f0c8781021b..419670c953f 100644 --- a/.github/workflows/add-checks.yml +++ b/.github/workflows/add-checks.yml @@ -42,11 +42,10 @@ jobs: run: | curl -L \ -H "Accept: application/vnd.github+json" \ - -H "Authorization: token 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" \ + -H "Authorization: token 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" \ -H "X-GitHub-Api-Version: 2022-11-28" \ https://api.github.com/repos/Rakshithb1/commons/branches/develop/protection/required_status_checks - env: - GITHUB_TOKEN: ${{ secrets.TOKEN }} + - name: Add branch protection rule From e52d4335f3661a52e87ab031a48803e24a879276 Mon Sep 17 00:00:00 2001 From: Rakshith B <79500257+Rakshithb1@users.noreply.github.com> Date: Fri, 12 Jan 2024 20:41:39 +0530 Subject: [PATCH 37/89] Update add-checks.yml Signed-off-by: Rakshith B <79500257+Rakshithb1@users.noreply.github.com> --- .github/workflows/add-checks.yml | 49 ++++++-------------------------- 1 file changed, 8 insertions(+), 41 deletions(-) diff --git a/.github/workflows/add-checks.yml b/.github/workflows/add-checks.yml index 419670c953f..b25628113dd 100644 --- a/.github/workflows/add-checks.yml +++ b/.github/workflows/add-checks.yml @@ -12,47 +12,14 @@ jobs: steps: - name: Checkout code uses: actions/checkout@v2 - - - - name: Add branch protection rule - run: | - TOKEN=$GITHUB_TOKEN - REPO_OWNER=${{ github.repository_owner }} - REPO_NAME=${{ github.event.repository.name }} - BRANCH_NAME=${{ github.event.ref }} - - # Create a branch protection rule - curl -X PUT \ - -H "Authorization: Bearer $GH_TOKEN" \ - -H "Accept: application/vnd.github.v3+json" \ - https://api.github.com/repos/Rakshithb1/commons/branches/develop/protection \ - -d '{ - "required_status_checks": { - "contexts": ["kernel-idgenerator-service/build-dockers"] - }, - "enforce_admins": true, - "required_pull_request_reviews": null, - "restrictions": null - }' - - env: - GH_TOKEN: ${{ steps.generate_token.outputs.token }} - - - name: Add branch protection rule - run: | - curl -L \ - -H "Accept: application/vnd.github+json" \ - -H "Authorization: token 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" \ - -H "X-GitHub-Api-Version: 2022-11-28" \ - https://api.github.com/repos/Rakshithb1/commons/branches/develop/protection/required_status_checks - - + - name: Add branch protection rule run: | - curl -X POST \ - -H "Authorization: token ${{ secrets.TOKEN }}" \ - -H "Accept: application/vnd.github.v3+json" \ - -H "X-GitHub-Api-Version: 2022-11-28" \ - https://api.github.com/repos/Rakshithb1/commons/git/refs \ - -d '{"ref": "refs/tags/'"$TAG"'", "sha": "'"$OBJECT_SHA"'"}' + curl -L \ + -X POST \ + -H "Accept: application/vnd.github+json" \ + -H "Authorization: Bearer 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" \ + -H "X-GitHub-Api-Version: 2022-11-28" \ + https://api.github.com/repos/Rakshithb1/commons/branches/develop/protection/required_status_checks/contexts \ + -d '{"contexts":["build-commons / maven-build","kernel-notification-service / build-dockers"]}' From bd6c000db850350c8f50ebd3f9266a2c513dd282 Mon Sep 17 00:00:00 2001 From: Rakshith B <79500257+Rakshithb1@users.noreply.github.com> Date: Fri, 12 Jan 2024 20:44:46 +0530 Subject: [PATCH 38/89] Update add-checks.yml Signed-off-by: Rakshith B <79500257+Rakshithb1@users.noreply.github.com> --- .github/workflows/add-checks.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/add-checks.yml b/.github/workflows/add-checks.yml index b25628113dd..9e75aa4695e 100644 --- a/.github/workflows/add-checks.yml +++ b/.github/workflows/add-checks.yml @@ -19,7 +19,7 @@ jobs: curl -L \ -X POST \ -H "Accept: application/vnd.github+json" \ - -H "Authorization: Bearer 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" \ + -H "Authorization: Bearer ${{ secrets.SSTOKEN }}" \ -H "X-GitHub-Api-Version: 2022-11-28" \ https://api.github.com/repos/Rakshithb1/commons/branches/develop/protection/required_status_checks/contexts \ -d '{"contexts":["build-commons / maven-build","kernel-notification-service / build-dockers"]}' From c09dfe1abda4c9baf5a99bd72b451c86695e1eca Mon Sep 17 00:00:00 2001 From: Rakshith B <79500257+Rakshithb1@users.noreply.github.com> Date: Fri, 12 Jan 2024 20:47:08 +0530 Subject: [PATCH 39/89] Update add-checks.yml Signed-off-by: Rakshith B <79500257+Rakshithb1@users.noreply.github.com> --- .github/workflows/add-checks.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/add-checks.yml b/.github/workflows/add-checks.yml index 9e75aa4695e..d3c6ca7e8b1 100644 --- a/.github/workflows/add-checks.yml +++ b/.github/workflows/add-checks.yml @@ -1,4 +1,4 @@ -name: Add Branch Protection +name: Add Branch Protection on: push: From 7670739f32417fe1954b25974664386bd94fee48 Mon Sep 17 00:00:00 2001 From: Rakshith B <79500257+Rakshithb1@users.noreply.github.com> Date: Fri, 12 Jan 2024 20:51:42 +0530 Subject: [PATCH 40/89] Update add-checks.yml Signed-off-by: Rakshith B <79500257+Rakshithb1@users.noreply.github.com> --- .github/workflows/add-checks.yml | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/.github/workflows/add-checks.yml b/.github/workflows/add-checks.yml index d3c6ca7e8b1..da2b0d1bf7b 100644 --- a/.github/workflows/add-checks.yml +++ b/.github/workflows/add-checks.yml @@ -16,10 +16,4 @@ jobs: - name: Add branch protection rule run: | - curl -L \ - -X POST \ - -H "Accept: application/vnd.github+json" \ - -H "Authorization: Bearer ${{ secrets.SSTOKEN }}" \ - -H "X-GitHub-Api-Version: 2022-11-28" \ - https://api.github.com/repos/Rakshithb1/commons/branches/develop/protection/required_status_checks/contexts \ - -d '{"contexts":["build-commons / maven-build","kernel-notification-service / build-dockers"]}' + curl -L -X POST -H "Accept: application/vnd.github+json" -H "Authorization: Bearer ${{ secrets.SSTOKEN }}" -H "X-GitHub-Api-Version: 2022-11-28" https://api.github.com/repos/Rakshithb1/commons/branches/develop/protection/required_status_checks/contexts -d '{"contexts":["build-commons / maven-build","kernel-notification-service / build-dockers"]}' From acacc8dc86350058d90b39a39f8cb3fa63b0df77 Mon Sep 17 00:00:00 2001 From: Rakshith B <79500257+Rakshithb1@users.noreply.github.com> Date: Fri, 12 Jan 2024 20:54:21 +0530 Subject: [PATCH 41/89] Update add-checks.yml Signed-off-by: Rakshith B <79500257+Rakshithb1@users.noreply.github.com> --- .github/workflows/add-checks.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/add-checks.yml b/.github/workflows/add-checks.yml index da2b0d1bf7b..0c08ac17c73 100644 --- a/.github/workflows/add-checks.yml +++ b/.github/workflows/add-checks.yml @@ -16,4 +16,5 @@ jobs: - name: Add branch protection rule run: | - curl -L -X POST -H "Accept: application/vnd.github+json" -H "Authorization: Bearer ${{ secrets.SSTOKEN }}" -H "X-GitHub-Api-Version: 2022-11-28" https://api.github.com/repos/Rakshithb1/commons/branches/develop/protection/required_status_checks/contexts -d '{"contexts":["build-commons / maven-build","kernel-notification-service / build-dockers"]}' + G_TOKEN=${{ secrets.SSTOKEN }} + curl -L -X POST -H "Accept: application/vnd.github+json" -H "Authorization: Bearer $G_TOKEN" -H "X-GitHub-Api-Version: 2022-11-28" https://api.github.com/repos/Rakshithb1/commons/branches/develop/protection/required_status_checks/contexts -d '{"contexts":["build-commons / maven-build","kernel-notification-service / build-dockers"]}' From b3d1b1d02a819571d225a508f43d4e6c1da64791 Mon Sep 17 00:00:00 2001 From: Rakshith B <79500257+Rakshithb1@users.noreply.github.com> Date: Fri, 12 Jan 2024 21:00:23 +0530 Subject: [PATCH 42/89] Update add-checks.yml Signed-off-by: Rakshith B <79500257+Rakshithb1@users.noreply.github.com> --- .github/workflows/add-checks.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/add-checks.yml b/.github/workflows/add-checks.yml index 0c08ac17c73..553ca6fc6fd 100644 --- a/.github/workflows/add-checks.yml +++ b/.github/workflows/add-checks.yml @@ -8,7 +8,8 @@ on: jobs: add-branch-protection: runs-on: ubuntu-latest - + env: + G_TOKEN: ${{ secrets.SSTOKEN }} steps: - name: Checkout code uses: actions/checkout@v2 @@ -16,5 +17,5 @@ jobs: - name: Add branch protection rule run: | - G_TOKEN=${{ secrets.SSTOKEN }} + curl -L -X POST -H "Accept: application/vnd.github+json" -H "Authorization: Bearer $G_TOKEN" -H "X-GitHub-Api-Version: 2022-11-28" https://api.github.com/repos/Rakshithb1/commons/branches/develop/protection/required_status_checks/contexts -d '{"contexts":["build-commons / maven-build","kernel-notification-service / build-dockers"]}' From c5ec4eeadf40f9587cca3a789de69f0c0657500f Mon Sep 17 00:00:00 2001 From: Rakshith B <79500257+Rakshithb1@users.noreply.github.com> Date: Fri, 12 Jan 2024 21:03:47 +0530 Subject: [PATCH 43/89] Update add-checks.yml Signed-off-by: Rakshith B <79500257+Rakshithb1@users.noreply.github.com> --- .github/workflows/add-checks.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/add-checks.yml b/.github/workflows/add-checks.yml index 553ca6fc6fd..f6b2c6cfcd3 100644 --- a/.github/workflows/add-checks.yml +++ b/.github/workflows/add-checks.yml @@ -17,5 +17,9 @@ jobs: - name: Add branch protection rule run: | - - curl -L -X POST -H "Accept: application/vnd.github+json" -H "Authorization: Bearer $G_TOKEN" -H "X-GitHub-Api-Version: 2022-11-28" https://api.github.com/repos/Rakshithb1/commons/branches/develop/protection/required_status_checks/contexts -d '{"contexts":["build-commons / maven-build","kernel-notification-service / build-dockers"]}' + curl -L \ + -X POST \ + -H "Accept: application/vnd.github+json" \ + -H "Authorization: Bearer $G_TOKEN" \ + -H "X-GitHub-Api-Version: 2022-11-28" https://api.github.com/repos/Rakshithb1/commons/branches/develop/protection/required_status_checks/contexts \ + -d '{"contexts":["build-commons / maven-build","kernel-notification-service / build-dockers"]}' From eb4245cbaf86f04cb0a422645a15fabe815e4c50 Mon Sep 17 00:00:00 2001 From: Rakshith B <79500257+Rakshithb1@users.noreply.github.com> Date: Fri, 12 Jan 2024 21:05:45 +0530 Subject: [PATCH 44/89] Update add-checks.yml Signed-off-by: Rakshith B <79500257+Rakshithb1@users.noreply.github.com> --- .github/workflows/add-checks.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/add-checks.yml b/.github/workflows/add-checks.yml index f6b2c6cfcd3..bba33851de3 100644 --- a/.github/workflows/add-checks.yml +++ b/.github/workflows/add-checks.yml @@ -21,5 +21,6 @@ jobs: -X POST \ -H "Accept: application/vnd.github+json" \ -H "Authorization: Bearer $G_TOKEN" \ - -H "X-GitHub-Api-Version: 2022-11-28" https://api.github.com/repos/Rakshithb1/commons/branches/develop/protection/required_status_checks/contexts \ + -H "X-GitHub-Api-Version: 2022-11-28" \ + https://api.github.com/repos/Rakshithb1/commons/branches/develop/protection/required_status_checks/contexts \ -d '{"contexts":["build-commons / maven-build","kernel-notification-service / build-dockers"]}' From 5b41a995b403e7b70d2137c6f9a7aabfccecafc1 Mon Sep 17 00:00:00 2001 From: Rakshith B <79500257+Rakshithb1@users.noreply.github.com> Date: Fri, 12 Jan 2024 21:16:57 +0530 Subject: [PATCH 45/89] Update add-checks.yml Signed-off-by: Rakshith B <79500257+Rakshithb1@users.noreply.github.com> --- .github/workflows/add-checks.yml | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/.github/workflows/add-checks.yml b/.github/workflows/add-checks.yml index bba33851de3..f65945a10be 100644 --- a/.github/workflows/add-checks.yml +++ b/.github/workflows/add-checks.yml @@ -17,10 +17,11 @@ jobs: - name: Add branch protection rule run: | - curl -L \ - -X POST \ - -H "Accept: application/vnd.github+json" \ - -H "Authorization: Bearer $G_TOKEN" \ + curl -L \ + -X POST \ + -H "Accept: application/vnd.github+json" \ + -H "Authorization: Bearer $G_TOKEN" \ -H "X-GitHub-Api-Version: 2022-11-28" \ - https://api.github.com/repos/Rakshithb1/commons/branches/develop/protection/required_status_checks/contexts \ - -d '{"contexts":["build-commons / maven-build","kernel-notification-service / build-dockers"]}' + https://api.github.com/repos/Rakshithb1/commons/branches/develop/protection/required_status_checks/contexts \ + -d '{"contexts":["build-commons / maven-build","kernel-notification-service / build-dockers"]}' + From 51e3cf65b1656e8c52c66d1cabbf40ae3b03dd7d Mon Sep 17 00:00:00 2001 From: Rakshith B <79500257+Rakshithb1@users.noreply.github.com> Date: Tue, 16 Jan 2024 11:24:22 +0530 Subject: [PATCH 46/89] Create check.csv Signed-off-by: Rakshith B <79500257+Rakshithb1@users.noreply.github.com> --- .github/workflows/check.csv | 1 + 1 file changed, 1 insertion(+) create mode 100644 .github/workflows/check.csv diff --git a/.github/workflows/check.csv b/.github/workflows/check.csv new file mode 100644 index 00000000000..8b137891791 --- /dev/null +++ b/.github/workflows/check.csv @@ -0,0 +1 @@ + From bf741d9732f8dfd4dc2f15d55f1990d6517605d2 Mon Sep 17 00:00:00 2001 From: Rakshith B <79500257+Rakshithb1@users.noreply.github.com> Date: Tue, 16 Jan 2024 11:24:45 +0530 Subject: [PATCH 47/89] Update check.csv Signed-off-by: Rakshith B <79500257+Rakshithb1@users.noreply.github.com> --- .github/workflows/check.csv | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/check.csv b/.github/workflows/check.csv index 8b137891791..152decbfd7d 100644 --- a/.github/workflows/check.csv +++ b/.github/workflows/check.csv @@ -1 +1,7 @@ +repo_name,branch_name,checks +example-repo,main,context1 +example-repo,main,context2 +example-repo,feature-branch,context3 +example-repo,feature-branch,context4 +example-repo,bugfix-branch,context5 From 4a7249203f2d0a64fb391a3433250406a1415f3a Mon Sep 17 00:00:00 2001 From: Rakshith B <79500257+Rakshithb1@users.noreply.github.com> Date: Tue, 16 Jan 2024 11:33:01 +0530 Subject: [PATCH 48/89] Update check.csv Signed-off-by: Rakshith B <79500257+Rakshithb1@users.noreply.github.com> --- .github/workflows/check.csv | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/.github/workflows/check.csv b/.github/workflows/check.csv index 152decbfd7d..df74a9f0f09 100644 --- a/.github/workflows/check.csv +++ b/.github/workflows/check.csv @@ -1,7 +1,5 @@ repo_name,branch_name,checks -example-repo,main,context1 -example-repo,main,context2 -example-repo,feature-branch,context3 -example-repo,feature-branch,context4 -example-repo,bugfix-branch,context5 +commons,develop,kernel-salt-generator / build-dockers +commons,develop,kernel-ridgenerator-service / build-dockers + From 6a212373c69e9144adfd50591cd3ea1cfdcd730b Mon Sep 17 00:00:00 2001 From: Rakshith B <79500257+Rakshithb1@users.noreply.github.com> Date: Tue, 16 Jan 2024 11:38:16 +0530 Subject: [PATCH 49/89] Create newcheck.yml Signed-off-by: Rakshith B <79500257+Rakshithb1@users.noreply.github.com> --- .github/workflows/newcheck.yml | 50 ++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 .github/workflows/newcheck.yml diff --git a/.github/workflows/newcheck.yml b/.github/workflows/newcheck.yml new file mode 100644 index 00000000000..1b03c80f6f7 --- /dev/null +++ b/.github/workflows/newcheck.yml @@ -0,0 +1,50 @@ +name: Add Branch Protection + +on: + push: + branches: + - main + +jobs: + add-branch-protection: + runs-on: ubuntu-latest + env: + G_TOKEN: ${{ secrets.SSTOKEN }} + steps: + - name: Checkout code + uses: actions/checkout@v2 + + - name: Read values from CSV + id: read-values + run: | + CSV_CONTENT=$(tail -n +2 status_checks.csv) + REPO_NAMES=($(echo "$CSV_CONTENT" | cut -d ',' -f 1)) + BRANCH_NAMES=($(echo "$CSV_CONTENT" | cut -d ',' -f 2)) + CHECKS=($(echo "$CSV_CONTENT" | cut -d ',' -f 3)) + + echo "::set-output name=repo_names::${REPO_NAMES[@]}" + echo "::set-output name=branch_names::${BRANCH_NAMES[@]}" + echo "::set-output name=checks::${CHECKS[@]}" + + - name: Add branch protection rule + run: | + REPO_NAMES=(${{ steps.read-values.outputs.repo_names | toJson }}) + BRANCH_NAMES=(${{ steps.read-values.outputs.branch_names | toJson }}) + CHECKS=(${{ steps.read-values.outputs.checks | toJson }}) + + for i in $(seq 0 $((${#REPO_NAMES[@]} - 1))); do + REPO_NAME=${REPO_NAMES[$i]} + BRANCH_NAME=${BRANCH_NAMES[$i]} + CHECK=${CHECKS[$i]} + + # Create a branch protection rule + curl -X PUT \ + -H "Authorization: Bearer $G_TOKEN" \ + -H "Accept: application/vnd.github.v3+json" \ + https://api.github.com/repos/$REPO_NAME/$BRANCH_NAME/protection \ + -d "{ + \"required_status_checks\": { + \"contexts\": [\"$CHECK\"] + }, + }" + done From c78cc2bd9484c2cc29548dfeb75b865098d87eae Mon Sep 17 00:00:00 2001 From: Rakshith B <79500257+Rakshithb1@users.noreply.github.com> Date: Tue, 16 Jan 2024 11:40:22 +0530 Subject: [PATCH 50/89] Update newcheck.yml Signed-off-by: Rakshith B <79500257+Rakshithb1@users.noreply.github.com> --- .github/workflows/newcheck.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/newcheck.yml b/.github/workflows/newcheck.yml index 1b03c80f6f7..e4f1a98b76c 100644 --- a/.github/workflows/newcheck.yml +++ b/.github/workflows/newcheck.yml @@ -1,12 +1,12 @@ -name: Add Branch Protection +name: Branch Protection on: push: branches: - - main + - develop jobs: - add-branch-protection: + branch-protection: runs-on: ubuntu-latest env: G_TOKEN: ${{ secrets.SSTOKEN }} From 423951e6fbf5a77c4f1989332070980f39c990e9 Mon Sep 17 00:00:00 2001 From: Rakshith B <79500257+Rakshithb1@users.noreply.github.com> Date: Tue, 16 Jan 2024 11:50:57 +0530 Subject: [PATCH 51/89] Update newcheck.yml Signed-off-by: Rakshith B <79500257+Rakshithb1@users.noreply.github.com> --- .github/workflows/newcheck.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/newcheck.yml b/.github/workflows/newcheck.yml index e4f1a98b76c..0bc5193e1f0 100644 --- a/.github/workflows/newcheck.yml +++ b/.github/workflows/newcheck.yml @@ -17,7 +17,7 @@ jobs: - name: Read values from CSV id: read-values run: | - CSV_CONTENT=$(tail -n +2 status_checks.csv) + CSV_CONTENT=$(tail -n +2 checks.csv) REPO_NAMES=($(echo "$CSV_CONTENT" | cut -d ',' -f 1)) BRANCH_NAMES=($(echo "$CSV_CONTENT" | cut -d ',' -f 2)) CHECKS=($(echo "$CSV_CONTENT" | cut -d ',' -f 3)) From 508d00e9bd5bf669caec622ef647e3ff68f54648 Mon Sep 17 00:00:00 2001 From: Rakshith B <79500257+Rakshithb1@users.noreply.github.com> Date: Tue, 16 Jan 2024 11:57:15 +0530 Subject: [PATCH 52/89] Update newcheck.yml Signed-off-by: Rakshith B <79500257+Rakshithb1@users.noreply.github.com> --- .github/workflows/newcheck.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/newcheck.yml b/.github/workflows/newcheck.yml index 0bc5193e1f0..4113a7f631a 100644 --- a/.github/workflows/newcheck.yml +++ b/.github/workflows/newcheck.yml @@ -30,7 +30,7 @@ jobs: run: | REPO_NAMES=(${{ steps.read-values.outputs.repo_names | toJson }}) BRANCH_NAMES=(${{ steps.read-values.outputs.branch_names | toJson }}) - CHECKS=(${{ steps.read-values.outputs.checks | toJson }}) + CHECKS=(${ { steps.read-values.outputs.checks } | toJson }) for i in $(seq 0 $((${#REPO_NAMES[@]} - 1))); do REPO_NAME=${REPO_NAMES[$i]} From 487306d3b43d830e8bdffaee546e26651c161215 Mon Sep 17 00:00:00 2001 From: Rakshith B <79500257+Rakshithb1@users.noreply.github.com> Date: Tue, 16 Jan 2024 11:59:37 +0530 Subject: [PATCH 53/89] Update newcheck.yml Signed-off-by: Rakshith B <79500257+Rakshithb1@users.noreply.github.com> --- .github/workflows/newcheck.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/newcheck.yml b/.github/workflows/newcheck.yml index 4113a7f631a..5b04c12cc0a 100644 --- a/.github/workflows/newcheck.yml +++ b/.github/workflows/newcheck.yml @@ -28,9 +28,9 @@ jobs: - name: Add branch protection rule run: | - REPO_NAMES=(${{ steps.read-values.outputs.repo_names | toJson }}) - BRANCH_NAMES=(${{ steps.read-values.outputs.branch_names | toJson }}) - CHECKS=(${ { steps.read-values.outputs.checks } | toJson }) + REPO_NAMES=${{ steps.read-values.outputs.repo_names.toJson() }} + BRANCH_NAMES=${{ steps.read-values.outputs.branch_names.toJson() }} + CHECKS=${{ steps.read-values.outputs.checks.toJson() }} for i in $(seq 0 $((${#REPO_NAMES[@]} - 1))); do REPO_NAME=${REPO_NAMES[$i]} From 0e37aab7da87cb4bdaed557755399c0738301155 Mon Sep 17 00:00:00 2001 From: Rakshith B <79500257+Rakshithb1@users.noreply.github.com> Date: Tue, 16 Jan 2024 12:02:27 +0530 Subject: [PATCH 54/89] Update newcheck.yml Signed-off-by: Rakshith B <79500257+Rakshithb1@users.noreply.github.com> --- .github/workflows/newcheck.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/newcheck.yml b/.github/workflows/newcheck.yml index 5b04c12cc0a..d32c97a9270 100644 --- a/.github/workflows/newcheck.yml +++ b/.github/workflows/newcheck.yml @@ -28,9 +28,9 @@ jobs: - name: Add branch protection rule run: | - REPO_NAMES=${{ steps.read-values.outputs.repo_names.toJson() }} - BRANCH_NAMES=${{ steps.read-values.outputs.branch_names.toJson() }} - CHECKS=${{ steps.read-values.outputs.checks.toJson() }} + REPO_NAMES=("${{ fromJson(steps.read-values.outputs.repo_names) }}") + BRANCH_NAMES=("${{ fromJson(steps.read-values.outputs.branch_names) }}") + CHECKS=("${{ fromJson(steps.read-values.outputs.checks) }}") for i in $(seq 0 $((${#REPO_NAMES[@]} - 1))); do REPO_NAME=${REPO_NAMES[$i]} From 0f7307b2c1a6b24d633c27d315ada9452465d799 Mon Sep 17 00:00:00 2001 From: Rakshith B <79500257+Rakshithb1@users.noreply.github.com> Date: Tue, 16 Jan 2024 12:03:40 +0530 Subject: [PATCH 55/89] Update newcheck.yml Signed-off-by: Rakshith B <79500257+Rakshithb1@users.noreply.github.com> --- .github/workflows/newcheck.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/newcheck.yml b/.github/workflows/newcheck.yml index d32c97a9270..4fc5b5837ef 100644 --- a/.github/workflows/newcheck.yml +++ b/.github/workflows/newcheck.yml @@ -17,7 +17,7 @@ jobs: - name: Read values from CSV id: read-values run: | - CSV_CONTENT=$(tail -n +2 checks.csv) + CSV_CONTENT=$(tail -n +2 check.csv) REPO_NAMES=($(echo "$CSV_CONTENT" | cut -d ',' -f 1)) BRANCH_NAMES=($(echo "$CSV_CONTENT" | cut -d ',' -f 2)) CHECKS=($(echo "$CSV_CONTENT" | cut -d ',' -f 3)) From 836bab8aad2830603c48a73e6f3bd5af051014b6 Mon Sep 17 00:00:00 2001 From: Rakshith B <79500257+Rakshithb1@users.noreply.github.com> Date: Tue, 16 Jan 2024 12:05:18 +0530 Subject: [PATCH 56/89] Update newcheck.yml Signed-off-by: Rakshith B <79500257+Rakshithb1@users.noreply.github.com> --- .github/workflows/newcheck.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/newcheck.yml b/.github/workflows/newcheck.yml index 4fc5b5837ef..c7a3cda4979 100644 --- a/.github/workflows/newcheck.yml +++ b/.github/workflows/newcheck.yml @@ -17,6 +17,7 @@ jobs: - name: Read values from CSV id: read-values run: | + cd .github/workflows CSV_CONTENT=$(tail -n +2 check.csv) REPO_NAMES=($(echo "$CSV_CONTENT" | cut -d ',' -f 1)) BRANCH_NAMES=($(echo "$CSV_CONTENT" | cut -d ',' -f 2)) From 37667207d0a32f1d7a3e707256ff40b963e4b079 Mon Sep 17 00:00:00 2001 From: Rakshith B <79500257+Rakshithb1@users.noreply.github.com> Date: Tue, 16 Jan 2024 12:11:13 +0530 Subject: [PATCH 57/89] Update newcheck.yml Signed-off-by: Rakshith B <79500257+Rakshithb1@users.noreply.github.com> --- .github/workflows/newcheck.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/newcheck.yml b/.github/workflows/newcheck.yml index c7a3cda4979..469aaaf0d9b 100644 --- a/.github/workflows/newcheck.yml +++ b/.github/workflows/newcheck.yml @@ -19,9 +19,9 @@ jobs: run: | cd .github/workflows CSV_CONTENT=$(tail -n +2 check.csv) - REPO_NAMES=($(echo "$CSV_CONTENT" | cut -d ',' -f 1)) - BRANCH_NAMES=($(echo "$CSV_CONTENT" | cut -d ',' -f 2)) - CHECKS=($(echo "$CSV_CONTENT" | cut -d ',' -f 3)) + echo "::set-output name=repo_names::$(echo "$CSV_CONTENT" | cut -d ',' -f 1 | jq -R -s -c 'split("\n")[:-1]')" + echo "::set-output name=branch_names::$(echo "$CSV_CONTENT" | cut -d ',' -f 2 | jq -R -s -c 'split("\n")[:-1]')" + echo "::set-output name=checks::$(echo "$CSV_CONTENT" | cut -d ',' -f 3 | jq -R -s -c 'split("\n")[:-1]')" echo "::set-output name=repo_names::${REPO_NAMES[@]}" echo "::set-output name=branch_names::${BRANCH_NAMES[@]}" @@ -29,9 +29,9 @@ jobs: - name: Add branch protection rule run: | - REPO_NAMES=("${{ fromJson(steps.read-values.outputs.repo_names) }}") - BRANCH_NAMES=("${{ fromJson(steps.read-values.outputs.branch_names) }}") - CHECKS=("${{ fromJson(steps.read-values.outputs.checks) }}") + REPO_NAMES=(${{ steps.read-values.outputs.repo_names }}) + BRANCH_NAMES=(${{ steps.read-values.outputs.branch_names }}) + CHECKS=(${{ steps.read-values.outputs.checks }}) for i in $(seq 0 $((${#REPO_NAMES[@]} - 1))); do REPO_NAME=${REPO_NAMES[$i]} From c24c348717965cd78f3e25c1fc168e8230fff739 Mon Sep 17 00:00:00 2001 From: Rakshith B <79500257+Rakshithb1@users.noreply.github.com> Date: Tue, 16 Jan 2024 12:57:29 +0530 Subject: [PATCH 58/89] Update newcheck.yml Signed-off-by: Rakshith B <79500257+Rakshithb1@users.noreply.github.com> --- .github/workflows/newcheck.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/newcheck.yml b/.github/workflows/newcheck.yml index 469aaaf0d9b..46cfecb1ac3 100644 --- a/.github/workflows/newcheck.yml +++ b/.github/workflows/newcheck.yml @@ -42,7 +42,7 @@ jobs: curl -X PUT \ -H "Authorization: Bearer $G_TOKEN" \ -H "Accept: application/vnd.github.v3+json" \ - https://api.github.com/repos/$REPO_NAME/$BRANCH_NAME/protection \ + https://api.github.com/repos/$REPO_NAME/branches/$BRANCH_NAME/protection \ -d "{ \"required_status_checks\": { \"contexts\": [\"$CHECK\"] From 0fafa029c9967ed51c9c7b347f6642ae6f65924a Mon Sep 17 00:00:00 2001 From: Rakshith B <79500257+Rakshithb1@users.noreply.github.com> Date: Tue, 16 Jan 2024 12:57:58 +0530 Subject: [PATCH 59/89] Update check.csv Signed-off-by: Rakshith B <79500257+Rakshithb1@users.noreply.github.com> --- .github/workflows/check.csv | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/check.csv b/.github/workflows/check.csv index df74a9f0f09..d3a2771d714 100644 --- a/.github/workflows/check.csv +++ b/.github/workflows/check.csv @@ -1,5 +1,5 @@ repo_name,branch_name,checks -commons,develop,kernel-salt-generator / build-dockers -commons,develop,kernel-ridgenerator-service / build-dockers +Rakshithb1/commons,develop,kernel-salt-generator / build-dockers +Rakshithb1/commons,develop,kernel-ridgenerator-service / build-dockers From e2b81f79f1ffea5f8491645eda67731f667bbf75 Mon Sep 17 00:00:00 2001 From: Rakshith B <79500257+Rakshithb1@users.noreply.github.com> Date: Tue, 16 Jan 2024 13:03:29 +0530 Subject: [PATCH 60/89] Update newcheck.yml Signed-off-by: Rakshith B <79500257+Rakshithb1@users.noreply.github.com> --- .github/workflows/newcheck.yml | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/.github/workflows/newcheck.yml b/.github/workflows/newcheck.yml index 46cfecb1ac3..11654f652f7 100644 --- a/.github/workflows/newcheck.yml +++ b/.github/workflows/newcheck.yml @@ -19,19 +19,17 @@ jobs: run: | cd .github/workflows CSV_CONTENT=$(tail -n +2 check.csv) - echo "::set-output name=repo_names::$(echo "$CSV_CONTENT" | cut -d ',' -f 1 | jq -R -s -c 'split("\n")[:-1]')" - echo "::set-output name=branch_names::$(echo "$CSV_CONTENT" | cut -d ',' -f 2 | jq -R -s -c 'split("\n")[:-1]')" - echo "::set-output name=checks::$(echo "$CSV_CONTENT" | cut -d ',' -f 3 | jq -R -s -c 'split("\n")[:-1]')" + echo "REPO_NAMES=$(echo "$CSV_CONTENT" | cut -d ',' -f 1 | jq -R -s -c 'split("\n")[:-1]')" >> $GITHUB_ENV + echo "BRANCH_NAMES=$(echo "$CSV_CONTENT" | cut -d ',' -f 2 | jq -R -s -c 'split("\n")[:-1]')" >> $GITHUB_ENV + echo "CHECKS=$(echo "$CSV_CONTENT" | cut -d ',' -f 3 | jq -R -s -c 'split("\n")[:-1]')" >> $GITHUB_ENV + - echo "::set-output name=repo_names::${REPO_NAMES[@]}" - echo "::set-output name=branch_names::${BRANCH_NAMES[@]}" - echo "::set-output name=checks::${CHECKS[@]}" - name: Add branch protection rule run: | - REPO_NAMES=(${{ steps.read-values.outputs.repo_names }}) - BRANCH_NAMES=(${{ steps.read-values.outputs.branch_names }}) - CHECKS=(${{ steps.read-values.outputs.checks }}) + REPO_NAMES=($REPO_NAMES) + BRANCH_NAMES=($BRANCH_NAMES) + CHECKS=($CHECKS) for i in $(seq 0 $((${#REPO_NAMES[@]} - 1))); do REPO_NAME=${REPO_NAMES[$i]} From ffdaa31ea6dee2aef1cce796ad60f056d553fce3 Mon Sep 17 00:00:00 2001 From: Rakshith B <79500257+Rakshithb1@users.noreply.github.com> Date: Tue, 16 Jan 2024 13:06:56 +0530 Subject: [PATCH 61/89] Update newcheck.yml Signed-off-by: Rakshith B <79500257+Rakshithb1@users.noreply.github.com> --- .github/workflows/newcheck.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/newcheck.yml b/.github/workflows/newcheck.yml index 11654f652f7..83b3e834c52 100644 --- a/.github/workflows/newcheck.yml +++ b/.github/workflows/newcheck.yml @@ -40,10 +40,11 @@ jobs: curl -X PUT \ -H "Authorization: Bearer $G_TOKEN" \ -H "Accept: application/vnd.github.v3+json" \ - https://api.github.com/repos/$REPO_NAME/branches/$BRANCH_NAME/protection \ + "https://api.github.com/repos/$REPO_NAME/branches/$BRANCH_NAME/protection" \ -d "{ \"required_status_checks\": { \"contexts\": [\"$CHECK\"] - }, + } }" done + From a826e195c23060d5467d17d6a476107ee1cd99cc Mon Sep 17 00:00:00 2001 From: Rakshith B <79500257+Rakshithb1@users.noreply.github.com> Date: Tue, 16 Jan 2024 13:09:58 +0530 Subject: [PATCH 62/89] Update newcheck.yml Signed-off-by: Rakshith B <79500257+Rakshithb1@users.noreply.github.com> --- .github/workflows/newcheck.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/newcheck.yml b/.github/workflows/newcheck.yml index 83b3e834c52..56fadddd1da 100644 --- a/.github/workflows/newcheck.yml +++ b/.github/workflows/newcheck.yml @@ -48,3 +48,4 @@ jobs: }" done + From cfc50b01b6b3745d8b1579965b7b28661334f64f Mon Sep 17 00:00:00 2001 From: Rakshith B <79500257+Rakshithb1@users.noreply.github.com> Date: Tue, 16 Jan 2024 13:14:19 +0530 Subject: [PATCH 63/89] Update newcheck.yml Signed-off-by: Rakshith B <79500257+Rakshithb1@users.noreply.github.com> --- .github/workflows/newcheck.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/newcheck.yml b/.github/workflows/newcheck.yml index 56fadddd1da..c2b2b4208f4 100644 --- a/.github/workflows/newcheck.yml +++ b/.github/workflows/newcheck.yml @@ -49,3 +49,4 @@ jobs: done + From b77592f81444e093bcd739f1ed311da25c1ce4e4 Mon Sep 17 00:00:00 2001 From: Rakshith B <79500257+Rakshithb1@users.noreply.github.com> Date: Tue, 16 Jan 2024 13:17:01 +0530 Subject: [PATCH 64/89] Update newcheck.yml Signed-off-by: Rakshith B <79500257+Rakshithb1@users.noreply.github.com> --- .github/workflows/newcheck.yml | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/.github/workflows/newcheck.yml b/.github/workflows/newcheck.yml index c2b2b4208f4..f5f9dd0a377 100644 --- a/.github/workflows/newcheck.yml +++ b/.github/workflows/newcheck.yml @@ -27,14 +27,10 @@ jobs: - name: Add branch protection rule run: | - REPO_NAMES=($REPO_NAMES) - BRANCH_NAMES=($BRANCH_NAMES) - CHECKS=($CHECKS) - - for i in $(seq 0 $((${#REPO_NAMES[@]} - 1))); do - REPO_NAME=${REPO_NAMES[$i]} - BRANCH_NAME=${BRANCH_NAMES[$i]} - CHECK=${CHECKS[$i]} + for line in $(tail -n +2 .github/workflows/check.csv); do + REPO_NAME=$(echo $line | cut -d ',' -f 1) + BRANCH_NAME=$(echo $line | cut -d ',' -f 2) + CHECK=$(echo $line | cut -d ',' -f 3) # Create a branch protection rule curl -X PUT \ @@ -50,3 +46,4 @@ jobs: + From c887d1d8a7768c385eca6f5c9f3d11672991af8b Mon Sep 17 00:00:00 2001 From: Rakshith B <79500257+Rakshithb1@users.noreply.github.com> Date: Tue, 16 Jan 2024 13:20:02 +0530 Subject: [PATCH 65/89] Update newcheck.yml Signed-off-by: Rakshith B <79500257+Rakshithb1@users.noreply.github.com> --- .github/workflows/newcheck.yml | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/.github/workflows/newcheck.yml b/.github/workflows/newcheck.yml index f5f9dd0a377..bf75d04a8c2 100644 --- a/.github/workflows/newcheck.yml +++ b/.github/workflows/newcheck.yml @@ -14,15 +14,7 @@ jobs: - name: Checkout code uses: actions/checkout@v2 - - name: Read values from CSV - id: read-values - run: | - cd .github/workflows - CSV_CONTENT=$(tail -n +2 check.csv) - echo "REPO_NAMES=$(echo "$CSV_CONTENT" | cut -d ',' -f 1 | jq -R -s -c 'split("\n")[:-1]')" >> $GITHUB_ENV - echo "BRANCH_NAMES=$(echo "$CSV_CONTENT" | cut -d ',' -f 2 | jq -R -s -c 'split("\n")[:-1]')" >> $GITHUB_ENV - echo "CHECKS=$(echo "$CSV_CONTENT" | cut -d ',' -f 3 | jq -R -s -c 'split("\n")[:-1]')" >> $GITHUB_ENV - + - name: Add branch protection rule From e1a2b4717243c74e3ba1c6d02c08e2a8142d0093 Mon Sep 17 00:00:00 2001 From: Rakshith B <79500257+Rakshithb1@users.noreply.github.com> Date: Tue, 16 Jan 2024 13:26:41 +0530 Subject: [PATCH 66/89] Update newcheck.yml Signed-off-by: Rakshith B <79500257+Rakshithb1@users.noreply.github.com> --- .github/workflows/newcheck.yml | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/.github/workflows/newcheck.yml b/.github/workflows/newcheck.yml index bf75d04a8c2..51acd35e10d 100644 --- a/.github/workflows/newcheck.yml +++ b/.github/workflows/newcheck.yml @@ -24,16 +24,16 @@ jobs: BRANCH_NAME=$(echo $line | cut -d ',' -f 2) CHECK=$(echo $line | cut -d ',' -f 3) - # Create a branch protection rule - curl -X PUT \ - -H "Authorization: Bearer $G_TOKEN" \ - -H "Accept: application/vnd.github.v3+json" \ - "https://api.github.com/repos/$REPO_NAME/branches/$BRANCH_NAME/protection" \ - -d "{ - \"required_status_checks\": { - \"contexts\": [\"$CHECK\"] - } - }" + curl -L \ + -X POST \ + -H "Accept: application/vnd.github+json" \ + -H "Authorization: Bearer $G_TOKEN" \ + -H "X-GitHub-Api-Version: 2022-11-28" \ + https://api.github.com/repos/$REPO_NAME/branches/$BRANCH_NAME/protection/required_status_checks/contexts \ + -d '{"contexts":[\"$CHECK\"]}' + + + done From 3d785e366307dae04c251cb6b6ace63a8719d592 Mon Sep 17 00:00:00 2001 From: Rakshith B <79500257+Rakshithb1@users.noreply.github.com> Date: Tue, 16 Jan 2024 13:33:20 +0530 Subject: [PATCH 67/89] Update newcheck.yml Signed-off-by: Rakshith B <79500257+Rakshithb1@users.noreply.github.com> --- .github/workflows/newcheck.yml | 23 +++++++++-------------- 1 file changed, 9 insertions(+), 14 deletions(-) diff --git a/.github/workflows/newcheck.yml b/.github/workflows/newcheck.yml index 51acd35e10d..ddfcb085edd 100644 --- a/.github/workflows/newcheck.yml +++ b/.github/workflows/newcheck.yml @@ -24,18 +24,13 @@ jobs: BRANCH_NAME=$(echo $line | cut -d ',' -f 2) CHECK=$(echo $line | cut -d ',' -f 3) - curl -L \ - -X POST \ - -H "Accept: application/vnd.github+json" \ - -H "Authorization: Bearer $G_TOKEN" \ - -H "X-GitHub-Api-Version: 2022-11-28" \ - https://api.github.com/repos/$REPO_NAME/branches/$BRANCH_NAME/protection/required_status_checks/contexts \ - -d '{"contexts":[\"$CHECK\"]}' - - - + set -x # Enable debugging + + curl -L \ + -X POST \ + -H "Accept: application/vnd.github+json" \ + -H "Authorization: Bearer $G_TOKEN" \ + -H "X-GitHub-Api-Version: 2022-11-28" \ + "https://api.github.com/repos/$REPO_NAME/branches/$BRANCH_NAME/protection/required_status_checks/contexts" \ + -d '{"contexts":["'$CHECK'"]}' done - - - - From f0f9c9e6fdcc7cfc5a526955fa059236f28a296a Mon Sep 17 00:00:00 2001 From: Rakshith B <79500257+Rakshithb1@users.noreply.github.com> Date: Tue, 16 Jan 2024 13:38:22 +0530 Subject: [PATCH 68/89] Update check.csv Signed-off-by: Rakshith B <79500257+Rakshithb1@users.noreply.github.com> --- .github/workflows/check.csv | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/check.csv b/.github/workflows/check.csv index d3a2771d714..990bd079996 100644 --- a/.github/workflows/check.csv +++ b/.github/workflows/check.csv @@ -1,5 +1,6 @@ -repo_name,branch_name,checks +REPO,TAG,BRANCH,CHECKS Rakshithb1/commons,develop,kernel-salt-generator / build-dockers Rakshithb1/commons,develop,kernel-ridgenerator-service / build-dockers + From 239f4e435731d198379b25348d04dcd9c48d88de Mon Sep 17 00:00:00 2001 From: Rakshith B <79500257+Rakshithb1@users.noreply.github.com> Date: Tue, 16 Jan 2024 13:39:40 +0530 Subject: [PATCH 69/89] Update check.csv Signed-off-by: Rakshith B <79500257+Rakshithb1@users.noreply.github.com> --- .github/workflows/check.csv | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/check.csv b/.github/workflows/check.csv index 990bd079996..3aba6bda786 100644 --- a/.github/workflows/check.csv +++ b/.github/workflows/check.csv @@ -1,4 +1,4 @@ -REPO,TAG,BRANCH,CHECKS +REPO,BRANCH,CHECKS Rakshithb1/commons,develop,kernel-salt-generator / build-dockers Rakshithb1/commons,develop,kernel-ridgenerator-service / build-dockers From 1f08f73b6f0011c771d205699d331855e1134f16 Mon Sep 17 00:00:00 2001 From: Rakshith B <79500257+Rakshithb1@users.noreply.github.com> Date: Tue, 16 Jan 2024 13:42:28 +0530 Subject: [PATCH 70/89] Update newcheck.yml Signed-off-by: Rakshith B <79500257+Rakshithb1@users.noreply.github.com> --- .github/workflows/newcheck.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/newcheck.yml b/.github/workflows/newcheck.yml index ddfcb085edd..6c35f5c74da 100644 --- a/.github/workflows/newcheck.yml +++ b/.github/workflows/newcheck.yml @@ -31,6 +31,6 @@ jobs: -H "Accept: application/vnd.github+json" \ -H "Authorization: Bearer $G_TOKEN" \ -H "X-GitHub-Api-Version: 2022-11-28" \ - "https://api.github.com/repos/$REPO_NAME/branches/$BRANCH_NAME/protection/required_status_checks/contexts" \ + "https://api.github.com/repos/$REPOE/branches/$BRANCH/protection/required_status_checks/contexts" \ -d '{"contexts":["'$CHECK'"]}' done From 1ad6038152936e87cdbd1739491895783ba9670f Mon Sep 17 00:00:00 2001 From: Rakshith B <79500257+Rakshithb1@users.noreply.github.com> Date: Tue, 16 Jan 2024 14:01:54 +0530 Subject: [PATCH 71/89] Update newcheck.yml Signed-off-by: Rakshith B <79500257+Rakshithb1@users.noreply.github.com> --- .github/workflows/newcheck.yml | 27 ++++++++++++++------------- 1 file changed, 14 insertions(+), 13 deletions(-) diff --git a/.github/workflows/newcheck.yml b/.github/workflows/newcheck.yml index 6c35f5c74da..3936ac8b442 100644 --- a/.github/workflows/newcheck.yml +++ b/.github/workflows/newcheck.yml @@ -19,18 +19,19 @@ jobs: - name: Add branch protection rule run: | - for line in $(tail -n +2 .github/workflows/check.csv); do - REPO_NAME=$(echo $line | cut -d ',' -f 1) - BRANCH_NAME=$(echo $line | cut -d ',' -f 2) - CHECK=$(echo $line | cut -d ',' -f 3) + tail -n +2 .github/workflows/check.csv | while IFS=, read -r REPO_NAME BRANCH_NAME CHECKS; do + IFS=' / ' read -ra CHECKS_ARRAY <<< "$CHECKS" + + for CHECK in "${CHECKS_ARRAY[@]}"; do + set -x # Enable debugging - set -x # Enable debugging - - curl -L \ - -X POST \ - -H "Accept: application/vnd.github+json" \ - -H "Authorization: Bearer $G_TOKEN" \ - -H "X-GitHub-Api-Version: 2022-11-28" \ - "https://api.github.com/repos/$REPOE/branches/$BRANCH/protection/required_status_checks/contexts" \ - -d '{"contexts":["'$CHECK'"]}' + curl -L \ + -X POST \ + -H "Accept: application/vnd.github+json" \ + -H "Authorization: Bearer $G_TOKEN" \ + -H "X-GitHub-Api-Version: 2022-11-28" \ + "https://api.github.com/repos/$REPO_NAME/branches/$BRANCH_NAME/protection/required_status_checks/contexts" \ + -d "{\"contexts\":[\"$CHECK\"]}" + done done + From fab2ee1f3e7660994fd33d403d8371d014283736 Mon Sep 17 00:00:00 2001 From: Rakshith B <79500257+Rakshithb1@users.noreply.github.com> Date: Tue, 16 Jan 2024 14:16:24 +0530 Subject: [PATCH 72/89] Update newcheck.yml Signed-off-by: Rakshith B <79500257+Rakshithb1@users.noreply.github.com> --- .github/workflows/newcheck.yml | 21 ++++++++------------- 1 file changed, 8 insertions(+), 13 deletions(-) diff --git a/.github/workflows/newcheck.yml b/.github/workflows/newcheck.yml index 3936ac8b442..448ad040342 100644 --- a/.github/workflows/newcheck.yml +++ b/.github/workflows/newcheck.yml @@ -20,18 +20,13 @@ jobs: - name: Add branch protection rule run: | tail -n +2 .github/workflows/check.csv | while IFS=, read -r REPO_NAME BRANCH_NAME CHECKS; do - IFS=' / ' read -ra CHECKS_ARRAY <<< "$CHECKS" - - for CHECK in "${CHECKS_ARRAY[@]}"; do - set -x # Enable debugging + set -x # Enable debugging - curl -L \ - -X POST \ - -H "Accept: application/vnd.github+json" \ - -H "Authorization: Bearer $G_TOKEN" \ - -H "X-GitHub-Api-Version: 2022-11-28" \ - "https://api.github.com/repos/$REPO_NAME/branches/$BRANCH_NAME/protection/required_status_checks/contexts" \ - -d "{\"contexts\":[\"$CHECK\"]}" - done + curl -L \ + -X POST \ + -H "Accept: application/vnd.github+json" \ + -H "Authorization: Bearer $G_TOKEN" \ + -H "X-GitHub-Api-Version: 2022-11-28" \ + "https://api.github.com/repos/$REPO_NAME/branches/$BRANCH_NAME/protection/required_status_checks/contexts" \ + -d "{\"contexts\":[\"$CHECKS\"]}" done - From db9c258e5f3df4eae21ef620f94c578eff5fcdc4 Mon Sep 17 00:00:00 2001 From: Rakshith B <79500257+Rakshithb1@users.noreply.github.com> Date: Tue, 16 Jan 2024 14:17:50 +0530 Subject: [PATCH 73/89] Update check.csv Signed-off-by: Rakshith B <79500257+Rakshithb1@users.noreply.github.com> --- .github/workflows/check.csv | 3 --- 1 file changed, 3 deletions(-) diff --git a/.github/workflows/check.csv b/.github/workflows/check.csv index 3aba6bda786..308e35fc4ae 100644 --- a/.github/workflows/check.csv +++ b/.github/workflows/check.csv @@ -1,6 +1,3 @@ REPO,BRANCH,CHECKS Rakshithb1/commons,develop,kernel-salt-generator / build-dockers Rakshithb1/commons,develop,kernel-ridgenerator-service / build-dockers - - - From c935a93170fa0eb97c44207ce9cb778a32d384d7 Mon Sep 17 00:00:00 2001 From: Rakshith B <79500257+Rakshithb1@users.noreply.github.com> Date: Tue, 16 Jan 2024 14:31:20 +0530 Subject: [PATCH 74/89] Update check.csv Signed-off-by: Rakshith B <79500257+Rakshithb1@users.noreply.github.com> --- .github/workflows/check.csv | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/check.csv b/.github/workflows/check.csv index 308e35fc4ae..beba0ad5aed 100644 --- a/.github/workflows/check.csv +++ b/.github/workflows/check.csv @@ -1,3 +1,3 @@ REPO,BRANCH,CHECKS -Rakshithb1/commons,develop,kernel-salt-generator / build-dockers +Rakshithb1/commons,develop,kernel-salt-generator / build-dockers,build-commons / maven-build Rakshithb1/commons,develop,kernel-ridgenerator-service / build-dockers From d300676a617434cabcf954ac029ec79539c61ad4 Mon Sep 17 00:00:00 2001 From: Rakshith B <79500257+Rakshithb1@users.noreply.github.com> Date: Tue, 16 Jan 2024 14:32:30 +0530 Subject: [PATCH 75/89] Update check.csv Signed-off-by: Rakshith B <79500257+Rakshithb1@users.noreply.github.com> --- .github/workflows/check.csv | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/check.csv b/.github/workflows/check.csv index beba0ad5aed..308e35fc4ae 100644 --- a/.github/workflows/check.csv +++ b/.github/workflows/check.csv @@ -1,3 +1,3 @@ REPO,BRANCH,CHECKS -Rakshithb1/commons,develop,kernel-salt-generator / build-dockers,build-commons / maven-build +Rakshithb1/commons,develop,kernel-salt-generator / build-dockers Rakshithb1/commons,develop,kernel-ridgenerator-service / build-dockers From 2152c772203a7d9509de8c695e783d8256ab9f85 Mon Sep 17 00:00:00 2001 From: Rakshith B <79500257+Rakshithb1@users.noreply.github.com> Date: Tue, 16 Jan 2024 15:02:59 +0530 Subject: [PATCH 76/89] Update newcheck.yml Signed-off-by: Rakshith B <79500257+Rakshithb1@users.noreply.github.com> --- .github/workflows/newcheck.yml | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/.github/workflows/newcheck.yml b/.github/workflows/newcheck.yml index 448ad040342..695456bdbc8 100644 --- a/.github/workflows/newcheck.yml +++ b/.github/workflows/newcheck.yml @@ -13,15 +13,18 @@ jobs: steps: - name: Checkout code uses: actions/checkout@v2 - - - + + - name: Get branch protection rule + run: | + curl -L \ + -H "Accept: application/vnd.github+json" \ + -H "Authorization: Bearer $G_TOKEN" \ + -H "X-GitHub-Api-Version: 2022-11-28" \ + https://api.github.com/repos/$REPO_NAME/branches/$BRANCH_NAME/protection/required_status_checks/contexts - name: Add branch protection rule run: | tail -n +2 .github/workflows/check.csv | while IFS=, read -r REPO_NAME BRANCH_NAME CHECKS; do - set -x # Enable debugging - curl -L \ -X POST \ -H "Accept: application/vnd.github+json" \ From 1963fc568ba4d132027524cf33fce61077203e63 Mon Sep 17 00:00:00 2001 From: Rakshith B <79500257+Rakshithb1@users.noreply.github.com> Date: Tue, 16 Jan 2024 15:08:42 +0530 Subject: [PATCH 77/89] Update newcheck.yml Signed-off-by: Rakshith B <79500257+Rakshithb1@users.noreply.github.com> --- .github/workflows/newcheck.yml | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/.github/workflows/newcheck.yml b/.github/workflows/newcheck.yml index 695456bdbc8..d1875c5dfe4 100644 --- a/.github/workflows/newcheck.yml +++ b/.github/workflows/newcheck.yml @@ -16,11 +16,13 @@ jobs: - name: Get branch protection rule run: | - curl -L \ - -H "Accept: application/vnd.github+json" \ - -H "Authorization: Bearer $G_TOKEN" \ - -H "X-GitHub-Api-Version: 2022-11-28" \ - https://api.github.com/repos/$REPO_NAME/branches/$BRANCH_NAME/protection/required_status_checks/contexts + tail -n +2 .github/workflows/check.csv | while IFS=, read -r REPO_NAME BRANCH_NAME CHECKS; do + curl -L \ + -H "Accept: application/vnd.github+json" \ + -H "Authorization: Bearer $G_TOKEN" \ + -H "X-GitHub-Api-Version: 2022-11-28" \ + https://api.github.com/repos/$REPO_NAME/branches/$BRANCH_NAME/protection/required_status_checks/contexts + done - name: Add branch protection rule run: | From 97e6ae05d8b8dfe54d13d3165dd10a1b8e5bc149 Mon Sep 17 00:00:00 2001 From: Rakshith B <79500257+Rakshithb1@users.noreply.github.com> Date: Tue, 16 Jan 2024 15:53:33 +0530 Subject: [PATCH 78/89] Update newcheck.yml Signed-off-by: Rakshith B <79500257+Rakshithb1@users.noreply.github.com> --- .github/workflows/newcheck.yml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/workflows/newcheck.yml b/.github/workflows/newcheck.yml index d1875c5dfe4..08cff6dce48 100644 --- a/.github/workflows/newcheck.yml +++ b/.github/workflows/newcheck.yml @@ -1,9 +1,13 @@ name: Branch Protection on: - push: - branches: - - develop + workflow_dispatch: + inputs: + api_method: + description: 'Provide API method (ADD, GET, DELETE)' + required: true + default: '' + type: string jobs: branch-protection: From 5dbb828197ac9979f98186d7179c65f730e7f593 Mon Sep 17 00:00:00 2001 From: Rakshith B <79500257+Rakshithb1@users.noreply.github.com> Date: Tue, 16 Jan 2024 17:48:23 +0530 Subject: [PATCH 79/89] Update newcheck.yml Signed-off-by: Rakshith B <79500257+Rakshithb1@users.noreply.github.com> --- .github/workflows/newcheck.yml | 37 ++++++++++++++++++++++++---------- 1 file changed, 26 insertions(+), 11 deletions(-) diff --git a/.github/workflows/newcheck.yml b/.github/workflows/newcheck.yml index 08cff6dce48..7bd131cb6ab 100644 --- a/.github/workflows/newcheck.yml +++ b/.github/workflows/newcheck.yml @@ -4,7 +4,7 @@ on: workflow_dispatch: inputs: api_method: - description: 'Provide API method (ADD, GET, DELETE)' + description: 'Provide API method (Add, Get, Delete)' required: true default: '' type: string @@ -18,17 +18,8 @@ jobs: - name: Checkout code uses: actions/checkout@v2 - - name: Get branch protection rule - run: | - tail -n +2 .github/workflows/check.csv | while IFS=, read -r REPO_NAME BRANCH_NAME CHECKS; do - curl -L \ - -H "Accept: application/vnd.github+json" \ - -H "Authorization: Bearer $G_TOKEN" \ - -H "X-GitHub-Api-Version: 2022-11-28" \ - https://api.github.com/repos/$REPO_NAME/branches/$BRANCH_NAME/protection/required_status_checks/contexts - done - - name: Add branch protection rule + if: "${{ contains(github.event.inputs.api_method, 'ADD') }}" run: | tail -n +2 .github/workflows/check.csv | while IFS=, read -r REPO_NAME BRANCH_NAME CHECKS; do curl -L \ @@ -39,3 +30,27 @@ jobs: "https://api.github.com/repos/$REPO_NAME/branches/$BRANCH_NAME/protection/required_status_checks/contexts" \ -d "{\"contexts\":[\"$CHECKS\"]}" done + + - name: Get branch protection rule + if: "${{ contains(github.event.inputs.api_method, 'Delete') }}" + run: | + tail -n +2 .github/workflows/check.csv | while IFS=, read -r REPO_NAME BRANCH_NAME CHECKS; do + curl -L \ + -X DELETE \ + -H "Accept: application/vnd.github+json" \ + -H "Authorization: Bearer " \ + -H "X-GitHub-Api-Version: 2022-11-28" \ + https://api.github.com/repos/OWNER/REPO/branches/BRANCH/protection/required_status_checks/contexts \ + -d '{"contexts":["continuous-integration/jenkins"]}' + done + + - name: Get branch protection rule + if: "${{ contains(github.event.inputs.api_method, 'Get') || false }}" + run: | + tail -n +2 .github/workflows/check.csv | while IFS=, read -r REPO_NAME BRANCH_NAME CHECKS; do + curl -L \ + -H "Accept: application/vnd.github+json" \ + -H "Authorization: Bearer $G_TOKEN" \ + -H "X-GitHub-Api-Version: 2022-11-28" \ + https://api.github.com/repos/$REPO_NAME/branches/$BRANCH_NAME/protection/required_status_checks/contexts + done From 28d2a0647f1345e8b43761cbcfc9fe3ebbc480c5 Mon Sep 17 00:00:00 2001 From: Rakshith B <79500257+Rakshithb1@users.noreply.github.com> Date: Tue, 16 Jan 2024 17:49:33 +0530 Subject: [PATCH 80/89] Update newcheck.yml Signed-off-by: Rakshith B <79500257+Rakshithb1@users.noreply.github.com> --- .github/workflows/newcheck.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/newcheck.yml b/.github/workflows/newcheck.yml index 7bd131cb6ab..856028f1cc5 100644 --- a/.github/workflows/newcheck.yml +++ b/.github/workflows/newcheck.yml @@ -31,7 +31,7 @@ jobs: -d "{\"contexts\":[\"$CHECKS\"]}" done - - name: Get branch protection rule + - name: Delete branch protection rule if: "${{ contains(github.event.inputs.api_method, 'Delete') }}" run: | tail -n +2 .github/workflows/check.csv | while IFS=, read -r REPO_NAME BRANCH_NAME CHECKS; do From 5a0cde799aac65844639594d587e8f178a9d5c17 Mon Sep 17 00:00:00 2001 From: Rakshith B <79500257+Rakshithb1@users.noreply.github.com> Date: Tue, 16 Jan 2024 17:52:23 +0530 Subject: [PATCH 81/89] Update newcheck.yml Signed-off-by: Rakshith B <79500257+Rakshithb1@users.noreply.github.com> --- .github/workflows/newcheck.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/newcheck.yml b/.github/workflows/newcheck.yml index 856028f1cc5..999ff0cb5ef 100644 --- a/.github/workflows/newcheck.yml +++ b/.github/workflows/newcheck.yml @@ -38,10 +38,10 @@ jobs: curl -L \ -X DELETE \ -H "Accept: application/vnd.github+json" \ - -H "Authorization: Bearer " \ + -H "Authorization: Bearer $G_TOKEN" \ -H "X-GitHub-Api-Version: 2022-11-28" \ - https://api.github.com/repos/OWNER/REPO/branches/BRANCH/protection/required_status_checks/contexts \ - -d '{"contexts":["continuous-integration/jenkins"]}' + https://api.github.com/repos/$REPO_NAME/branches/$BRANCH_NAME/protection/required_status_checks/contexts \ + -d "{\"contexts\":[\"$CHECKS\"]}" done - name: Get branch protection rule From 3a4090faa8795627cac720ef1baedcca423a93d9 Mon Sep 17 00:00:00 2001 From: Rakshith B <79500257+Rakshithb1@users.noreply.github.com> Date: Tue, 16 Jan 2024 17:58:13 +0530 Subject: [PATCH 82/89] Update newcheck.yml Signed-off-by: Rakshith B <79500257+Rakshithb1@users.noreply.github.com> --- .github/workflows/newcheck.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/newcheck.yml b/.github/workflows/newcheck.yml index 999ff0cb5ef..83c4209f31c 100644 --- a/.github/workflows/newcheck.yml +++ b/.github/workflows/newcheck.yml @@ -32,7 +32,7 @@ jobs: done - name: Delete branch protection rule - if: "${{ contains(github.event.inputs.api_method, 'Delete') }}" + if: "${{ !github.event.inputs.api_method || contains(github.event.inputs.api_method, 'Get') }}" run: | tail -n +2 .github/workflows/check.csv | while IFS=, read -r REPO_NAME BRANCH_NAME CHECKS; do curl -L \ From 911fc792b94c33cbf165ef5605a8c798952c0453 Mon Sep 17 00:00:00 2001 From: Rakshith B <79500257+Rakshithb1@users.noreply.github.com> Date: Tue, 16 Jan 2024 18:03:32 +0530 Subject: [PATCH 83/89] Update newcheck.yml Signed-off-by: Rakshith B <79500257+Rakshithb1@users.noreply.github.com> --- .github/workflows/newcheck.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/newcheck.yml b/.github/workflows/newcheck.yml index 83c4209f31c..b817f23e476 100644 --- a/.github/workflows/newcheck.yml +++ b/.github/workflows/newcheck.yml @@ -19,7 +19,7 @@ jobs: uses: actions/checkout@v2 - name: Add branch protection rule - if: "${{ contains(github.event.inputs.api_method, 'ADD') }}" + if: "${{ contains(github.event.inputs.api_method, 'Add') }}" run: | tail -n +2 .github/workflows/check.csv | while IFS=, read -r REPO_NAME BRANCH_NAME CHECKS; do curl -L \ @@ -32,7 +32,7 @@ jobs: done - name: Delete branch protection rule - if: "${{ !github.event.inputs.api_method || contains(github.event.inputs.api_method, 'Get') }}" + if: "${{ contains(github.event.inputs.api_method, 'Delete') }}" run: | tail -n +2 .github/workflows/check.csv | while IFS=, read -r REPO_NAME BRANCH_NAME CHECKS; do curl -L \ @@ -45,7 +45,7 @@ jobs: done - name: Get branch protection rule - if: "${{ contains(github.event.inputs.api_method, 'Get') || false }}" + if: "${{ !github.event.inputs.api_method || contains(github.event.inputs.api_method, 'Get') }}" run: | tail -n +2 .github/workflows/check.csv | while IFS=, read -r REPO_NAME BRANCH_NAME CHECKS; do curl -L \ From a034b34c377ea1ff90c9358b76c7560d59319ee8 Mon Sep 17 00:00:00 2001 From: Rakshith B <79500257+Rakshithb1@users.noreply.github.com> Date: Tue, 16 Jan 2024 18:06:35 +0530 Subject: [PATCH 84/89] Update newcheck.yml Signed-off-by: Rakshith B <79500257+Rakshithb1@users.noreply.github.com> --- .github/workflows/newcheck.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/newcheck.yml b/.github/workflows/newcheck.yml index b817f23e476..6d65ecf68a0 100644 --- a/.github/workflows/newcheck.yml +++ b/.github/workflows/newcheck.yml @@ -45,7 +45,7 @@ jobs: done - name: Get branch protection rule - if: "${{ !github.event.inputs.api_method || contains(github.event.inputs.api_method, 'Get') }}" + if: "${{contains(github.event.inputs.api_method, 'Get') github.event.inputs.api_method == 'Add' || github.event.inputs.api_method == 'Delete' }}" run: | tail -n +2 .github/workflows/check.csv | while IFS=, read -r REPO_NAME BRANCH_NAME CHECKS; do curl -L \ From 73c9f84704b012e905b5dcfe4f6ae9c5279cd68b Mon Sep 17 00:00:00 2001 From: Rakshith B <79500257+Rakshithb1@users.noreply.github.com> Date: Tue, 16 Jan 2024 18:08:23 +0530 Subject: [PATCH 85/89] Update newcheck.yml Signed-off-by: Rakshith B <79500257+Rakshithb1@users.noreply.github.com> --- .github/workflows/newcheck.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/newcheck.yml b/.github/workflows/newcheck.yml index 6d65ecf68a0..431369a7043 100644 --- a/.github/workflows/newcheck.yml +++ b/.github/workflows/newcheck.yml @@ -45,7 +45,7 @@ jobs: done - name: Get branch protection rule - if: "${{contains(github.event.inputs.api_method, 'Get') github.event.inputs.api_method == 'Add' || github.event.inputs.api_method == 'Delete' }}" + if: "${{contains(github.event.inputs.api_method, 'Get') || github.event.inputs.api_method == 'Add' || github.event.inputs.api_method == 'Delete' }}" run: | tail -n +2 .github/workflows/check.csv | while IFS=, read -r REPO_NAME BRANCH_NAME CHECKS; do curl -L \ From 1b189b0bd842f98bd6460cd57ceadc49569fb37b Mon Sep 17 00:00:00 2001 From: Rakshith B <79500257+Rakshithb1@users.noreply.github.com> Date: Tue, 16 Jan 2024 18:21:00 +0530 Subject: [PATCH 86/89] Update add-checks.yml Signed-off-by: Rakshith B <79500257+Rakshithb1@users.noreply.github.com> --- .github/workflows/add-checks.yml | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/.github/workflows/add-checks.yml b/.github/workflows/add-checks.yml index f65945a10be..1a73408e001 100644 --- a/.github/workflows/add-checks.yml +++ b/.github/workflows/add-checks.yml @@ -13,15 +13,12 @@ jobs: steps: - name: Checkout code uses: actions/checkout@v2 - - - name: Add branch protection rule + - name: uuuu branch protection rule run: | curl -L \ - -X POST \ - -H "Accept: application/vnd.github+json" \ - -H "Authorization: Bearer $G_TOKEN" \ - -H "X-GitHub-Api-Version: 2022-11-28" \ - https://api.github.com/repos/Rakshithb1/commons/branches/develop/protection/required_status_checks/contexts \ - -d '{"contexts":["build-commons / maven-build","kernel-notification-service / build-dockers"]}' - + -H "Accept: application/vnd.github+json" \ + -H "Authorization: Bearer $G_TOKEN" \ + -H "X-GitHub-Api-Version: 2022-11-28" \ + https://api.github.com/repos/Rakshithb1/commons/branches/develop/protection/required_status_checks + From 00a5e54d468d807cc3b536fa9d88194afde9426e Mon Sep 17 00:00:00 2001 From: Rakshith B <79500257+Rakshithb1@users.noreply.github.com> Date: Tue, 16 Jan 2024 18:38:09 +0530 Subject: [PATCH 87/89] Update newcheck.yml Signed-off-by: Rakshith B <79500257+Rakshithb1@users.noreply.github.com> --- .github/workflows/newcheck.yml | 25 +++++++++++++------------ 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/.github/workflows/newcheck.yml b/.github/workflows/newcheck.yml index 431369a7043..3e8ac09b810 100644 --- a/.github/workflows/newcheck.yml +++ b/.github/workflows/newcheck.yml @@ -1,4 +1,4 @@ -name: Branch Protection +name: Require status checks to pass before merging on: workflow_dispatch: @@ -10,47 +10,48 @@ on: type: string jobs: - branch-protection: + status-checks: runs-on: ubuntu-latest env: - G_TOKEN: ${{ secrets.SSTOKEN }} + Status_TOKEN: ${{ secrets.SSTOKEN }} + CSV_LOCATION: .github/workflows/check.csv steps: - name: Checkout code uses: actions/checkout@v2 - - name: Add branch protection rule + - name: Add status checks if: "${{ contains(github.event.inputs.api_method, 'Add') }}" run: | - tail -n +2 .github/workflows/check.csv | while IFS=, read -r REPO_NAME BRANCH_NAME CHECKS; do + tail -n +2 $CSV_LOCATION | while IFS=, read -r REPO_NAME BRANCH_NAME CHECKS; do curl -L \ -X POST \ -H "Accept: application/vnd.github+json" \ - -H "Authorization: Bearer $G_TOKEN" \ + -H "Authorization: Bearer $Status_TOKEN" \ -H "X-GitHub-Api-Version: 2022-11-28" \ "https://api.github.com/repos/$REPO_NAME/branches/$BRANCH_NAME/protection/required_status_checks/contexts" \ -d "{\"contexts\":[\"$CHECKS\"]}" done - - name: Delete branch protection rule + - name: Delete status checks if: "${{ contains(github.event.inputs.api_method, 'Delete') }}" run: | - tail -n +2 .github/workflows/check.csv | while IFS=, read -r REPO_NAME BRANCH_NAME CHECKS; do + tail -n +2 $CSV_LOCATION | while IFS=, read -r REPO_NAME BRANCH_NAME CHECKS; do curl -L \ -X DELETE \ -H "Accept: application/vnd.github+json" \ - -H "Authorization: Bearer $G_TOKEN" \ + -H "Authorization: Bearer $Status_TOKEN" \ -H "X-GitHub-Api-Version: 2022-11-28" \ https://api.github.com/repos/$REPO_NAME/branches/$BRANCH_NAME/protection/required_status_checks/contexts \ -d "{\"contexts\":[\"$CHECKS\"]}" done - - name: Get branch protection rule + - name: Get status checks if: "${{contains(github.event.inputs.api_method, 'Get') || github.event.inputs.api_method == 'Add' || github.event.inputs.api_method == 'Delete' }}" run: | - tail -n +2 .github/workflows/check.csv | while IFS=, read -r REPO_NAME BRANCH_NAME CHECKS; do + tail -n +2 $CSV_LOCATION | while IFS=, read -r REPO_NAME BRANCH_NAME CHECKS; do curl -L \ -H "Accept: application/vnd.github+json" \ - -H "Authorization: Bearer $G_TOKEN" \ + -H "Authorization: Bearer $Status_TOKEN" \ -H "X-GitHub-Api-Version: 2022-11-28" \ https://api.github.com/repos/$REPO_NAME/branches/$BRANCH_NAME/protection/required_status_checks/contexts done From 9b2e4a5722248c13f40b2430b91c6c1aafb8bdf1 Mon Sep 17 00:00:00 2001 From: Rakshith B <79500257+Rakshithb1@users.noreply.github.com> Date: Tue, 16 Jan 2024 18:50:36 +0530 Subject: [PATCH 88/89] Update check.csv Signed-off-by: Rakshith B <79500257+Rakshithb1@users.noreply.github.com> --- .github/workflows/check.csv | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/check.csv b/.github/workflows/check.csv index 308e35fc4ae..03ccc118dcc 100644 --- a/.github/workflows/check.csv +++ b/.github/workflows/check.csv @@ -1,3 +1,3 @@ REPO,BRANCH,CHECKS -Rakshithb1/commons,develop,kernel-salt-generator / build-dockers +Rakshithb1/commons,develop,"kernel-salt-generator / build-dockers","kernel-notification-service / build-dockers" Rakshithb1/commons,develop,kernel-ridgenerator-service / build-dockers From 142da0654a5a0e987f3ee8dba9b9199204117db0 Mon Sep 17 00:00:00 2001 From: Rakshith B <79500257+Rakshithb1@users.noreply.github.com> Date: Tue, 16 Jan 2024 18:52:09 +0530 Subject: [PATCH 89/89] Update check.csv Signed-off-by: Rakshith B <79500257+Rakshithb1@users.noreply.github.com> --- .github/workflows/check.csv | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/check.csv b/.github/workflows/check.csv index 03ccc118dcc..308e35fc4ae 100644 --- a/.github/workflows/check.csv +++ b/.github/workflows/check.csv @@ -1,3 +1,3 @@ REPO,BRANCH,CHECKS -Rakshithb1/commons,develop,"kernel-salt-generator / build-dockers","kernel-notification-service / build-dockers" +Rakshithb1/commons,develop,kernel-salt-generator / build-dockers Rakshithb1/commons,develop,kernel-ridgenerator-service / build-dockers