From 19000a6a882fcc170ba0796aef0db7f84c6d80ff Mon Sep 17 00:00:00 2001 From: VOpandit <47119019+VOpandit@users.noreply.github.com> Date: Thu, 24 Mar 2022 12:30:03 +0530 Subject: [PATCH 1/7] Update ci.yml --- .github/workflows/ci.yml | 36 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f02131ce..a4a6a09e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -4,8 +4,8 @@ on: pull_request: branches: [ main ] -env: - DATREE_TOKEN: ${{ secrets.DATREE_TOKEN }} +#env: + # DATREE_TOKEN: ${{ secrets.DATREE_TOKEN }} jobs: build: @@ -24,21 +24,21 @@ jobs: run: chmod +x gradlew - name: Build with Gradle run: ./gradlew build - - name: SonarQube Scan - uses: sonarsource/sonarqube-scan-action@master - env: - SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} - SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }} - - name: SonarQube Quality Gate check - uses: sonarsource/sonarqube-quality-gate-action@master - # Force to fail step after specific time - timeout-minutes: 5 - env: - SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} - - name: Install Datree - run: curl https://get.datree.io | /bin/bash - - - name: Run Datree's policy check - run: datree test kube.yaml + # - name: SonarQube Scan + # uses: sonarsource/sonarqube-scan-action@master + # env: + # SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} + # SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }} + # - name: SonarQube Quality Gate check + # uses: sonarsource/sonarqube-quality-gate-action@master + # # Force to fail step after specific time + # timeout-minutes: 5 + # env: + # SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} + # - name: Install Datree + # run: curl https://get.datree.io | /bin/bash + # + # - name: Run Datree's policy check + # run: datree test kube.yaml From 2fd75ecaa0969da09d901c4186adb02c4f80fd92 Mon Sep 17 00:00:00 2001 From: VOpandit <47119019+VOpandit@users.noreply.github.com> Date: Thu, 24 Mar 2022 12:45:56 +0530 Subject: [PATCH 2/7] Update ci.yml --- .github/workflows/ci.yml | 36 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a4a6a09e..f02131ce 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -4,8 +4,8 @@ on: pull_request: branches: [ main ] -#env: - # DATREE_TOKEN: ${{ secrets.DATREE_TOKEN }} +env: + DATREE_TOKEN: ${{ secrets.DATREE_TOKEN }} jobs: build: @@ -24,21 +24,21 @@ jobs: run: chmod +x gradlew - name: Build with Gradle run: ./gradlew build - # - name: SonarQube Scan - # uses: sonarsource/sonarqube-scan-action@master - # env: - # SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} - # SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }} - # - name: SonarQube Quality Gate check - # uses: sonarsource/sonarqube-quality-gate-action@master - # # Force to fail step after specific time - # timeout-minutes: 5 - # env: - # SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} - # - name: Install Datree - # run: curl https://get.datree.io | /bin/bash - # - # - name: Run Datree's policy check - # run: datree test kube.yaml + - name: SonarQube Scan + uses: sonarsource/sonarqube-scan-action@master + env: + SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} + SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }} + - name: SonarQube Quality Gate check + uses: sonarsource/sonarqube-quality-gate-action@master + # Force to fail step after specific time + timeout-minutes: 5 + env: + SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} + - name: Install Datree + run: curl https://get.datree.io | /bin/bash + + - name: Run Datree's policy check + run: datree test kube.yaml From 2eb3214dc9a5a2c8fe1cb53182351f2fcdfc59a6 Mon Sep 17 00:00:00 2001 From: VOpandit <47119019+VOpandit@users.noreply.github.com> Date: Thu, 24 Mar 2022 13:03:22 +0530 Subject: [PATCH 3/7] Update ci.yml --- .github/workflows/ci.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f02131ce..b814c661 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -35,10 +35,10 @@ jobs: timeout-minutes: 5 env: SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} - - name: Install Datree - run: curl https://get.datree.io | /bin/bash + #- name: Install Datree + # run: curl https://get.datree.io | /bin/bash - - name: Run Datree's policy check - run: datree test kube.yaml + #- name: Run Datree's policy check + # run: datree test kube.yaml From ed1f66ee36192739023bf84988c14cad92c8357a Mon Sep 17 00:00:00 2001 From: VOpandit <47119019+VOpandit@users.noreply.github.com> Date: Thu, 24 Mar 2022 16:08:14 +0530 Subject: [PATCH 4/7] Update ci.yml --- .github/workflows/ci.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b814c661..f02131ce 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -35,10 +35,10 @@ jobs: timeout-minutes: 5 env: SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} - #- name: Install Datree - # run: curl https://get.datree.io | /bin/bash + - name: Install Datree + run: curl https://get.datree.io | /bin/bash - #- name: Run Datree's policy check - # run: datree test kube.yaml + - name: Run Datree's policy check + run: datree test kube.yaml From a0ffa7e56e1b95f328811fe119b6eed1c201e1d3 Mon Sep 17 00:00:00 2001 From: VOpandit <47119019+VOpandit@users.noreply.github.com> Date: Thu, 24 Mar 2022 17:28:04 +0530 Subject: [PATCH 5/7] Update ci.yml --- .github/workflows/ci.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f02131ce..37894950 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -40,5 +40,3 @@ jobs: - name: Run Datree's policy check run: datree test kube.yaml - - From e1882013f73feadc4bea51b9664ce10e4f95411e Mon Sep 17 00:00:00 2001 From: VOpandit <47119019+VOpandit@users.noreply.github.com> Date: Thu, 24 Mar 2022 17:37:50 +0530 Subject: [PATCH 6/7] Update ci.yml --- .github/workflows/ci.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 37894950..df32efc1 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -40,3 +40,4 @@ jobs: - name: Run Datree's policy check run: datree test kube.yaml + # From a1dbe962e7966932d45558b10ca8a40d7b7c75d7 Mon Sep 17 00:00:00 2001 From: VOpandit <47119019+VOpandit@users.noreply.github.com> Date: Thu, 24 Mar 2022 17:38:13 +0530 Subject: [PATCH 7/7] Update ci.yml --- .github/workflows/ci.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index df32efc1..37894950 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -40,4 +40,3 @@ jobs: - name: Run Datree's policy check run: datree test kube.yaml - #