From 82853742446256dd562ca0538d061bdaf0ddc0d7 Mon Sep 17 00:00:00 2001 From: pasant9 Date: Thu, 23 Nov 2023 11:05:57 +0530 Subject: [PATCH] Remove pull_request_target from workflows --- .github/workflows/adapter-release.yml | 6 ++-- .../admin-domain-service-release.yml | 6 ++-- .github/workflows/backoffice-release.yml | 6 ++-- .github/workflows/code-coverage.yaml | 2 +- .../workflows/common-controller-release.yml | 6 ++-- .github/workflows/config-deployer-release.yml | 6 ++-- .../devportal-domain-service-release.yml | 6 ++-- .github/workflows/enforcer-release.yml | 6 ++-- .../workflows/idp-domain-service-release.yml | 6 ++-- .github/workflows/idp-ui-release.yml | 6 ++-- .github/workflows/integration-test.yml | 34 +++++++++---------- .../workflows/management-server-release.yml | 6 ++-- .github/workflows/ratelimiter-release.yml | 6 ++-- .github/workflows/router-release.yml | 6 ++-- .github/workflows/run-integration-tests.yml | 4 +-- workflows/adapter-release.yml | 6 ++-- workflows/admin-domain-service-release.yml | 6 ++-- workflows/backoffice-release.yml | 6 ++-- workflows/code-coverage.yaml | 2 +- workflows/common-controller-release.yml | 6 ++-- workflows/config-deployer-release.yml | 6 ++-- .../devportal-domain-service-release.yml | 6 ++-- workflows/enforcer-release.yml | 6 ++-- workflows/idp-domain-service-release.yml | 6 ++-- workflows/idp-ui-release.yml | 6 ++-- workflows/integration-test.yml | 34 +++++++++---------- workflows/management-server-release.yml | 6 ++-- workflows/ratelimiter-release.yml | 6 ++-- workflows/router-release.yml | 6 ++-- workflows/run-integration-tests.yml | 4 +-- 30 files changed, 112 insertions(+), 112 deletions(-) diff --git a/.github/workflows/adapter-release.yml b/.github/workflows/adapter-release.yml index ed5d9a584..9fdbcc304 100644 --- a/.github/workflows/adapter-release.yml +++ b/.github/workflows/adapter-release.yml @@ -29,7 +29,7 @@ on: next_version: type: string description: "Next Development Version" - pull_request_target: + pull_request: types: - closed - opened @@ -68,7 +68,7 @@ jobs: git config --global user.email ${{ secrets.WSO2_BOT_EMAIL }} - name: checkout pull request and merge. shell: sh - if: github.event_name == 'pull_request_target' && github.event.action == 'opened' || github.event.action == 'synchronize' + if: github.event_name == 'pull_request' && github.event.action == 'opened' || github.event.action == 'synchronize' run: | cd apk-repo gh pr checkout ${{ github.event.number }} -b pr-${{ github.event.number }} @@ -84,7 +84,7 @@ jobs: cd apk-repo/adapter ./gradlew build - name: Run Gradle Build - if: github.event_name == 'pull_request_target' && github.event.action == 'closed' && github.event.pull_request.merged == true + if: github.event_name == 'pull_request' && github.event.action == 'closed' && github.event.pull_request.merged == true run: | cd apk-repo/adapter ./gradlew docker_push -Pdocker_organization=${{ secrets.DOCKER_ORGANIZATION }} -Pdocker_username=${{ secrets.DOCKER_USERNAME }} -Pdocker_password=${{ secrets.DOCKER_PASSWORD }} -Pimage_version=latest -PmultiArch=true diff --git a/.github/workflows/admin-domain-service-release.yml b/.github/workflows/admin-domain-service-release.yml index 211107e60..943468160 100644 --- a/.github/workflows/admin-domain-service-release.yml +++ b/.github/workflows/admin-domain-service-release.yml @@ -28,7 +28,7 @@ on: next_version: type: string description: "Next Development Version" - pull_request_target: + pull_request: types: - closed - opened @@ -83,7 +83,7 @@ jobs: git config --global user.email ${{ secrets.WSO2_BOT_EMAIL }} - name: checkout pull request and merge. shell: sh - if: github.event_name == 'pull_request_target' && github.event.action == 'opened' || github.event.action == 'synchronize' + if: github.event_name == 'pull_request' && github.event.action == 'opened' || github.event.action == 'synchronize' run: | cd apk-repo gh pr checkout ${{ github.event.number }} -b pr-${{ github.event.number }} @@ -106,7 +106,7 @@ jobs: cd apk-repo/admin/admin-domain-service ./gradlew build - name: Run Gradle Build - if: github.event_name == 'pull_request_target' && github.event.action == 'closed' && github.event.pull_request.merged == true + if: github.event_name == 'pull_request' && github.event.action == 'closed' && github.event.pull_request.merged == true run: | cd apk-repo/admin/admin-domain-service ./gradlew docker:docker_push -Pdocker_organization=${{ secrets.DOCKER_ORGANIZATION }} -Pdocker_username=${{ secrets.DOCKER_USERNAME }} -Pdocker_password=${{ secrets.DOCKER_PASSWORD }} -Pimage_version=latest -PmultiArch=true diff --git a/.github/workflows/backoffice-release.yml b/.github/workflows/backoffice-release.yml index 2087dff1b..700311144 100644 --- a/.github/workflows/backoffice-release.yml +++ b/.github/workflows/backoffice-release.yml @@ -29,7 +29,7 @@ on: next_version: type: string description: "Next Development Version" - pull_request_target: + pull_request: types: - closed - opened @@ -84,7 +84,7 @@ jobs: git config --global user.email ${{ secrets.WSO2_BOT_EMAIL }} - name: checkout pull request and merge. shell: sh - if: github.event_name == 'pull_request_target' && github.event.action == 'opened' || github.event.action == 'synchronize' + if: github.event_name == 'pull_request' && github.event.action == 'opened' || github.event.action == 'synchronize' run: | cd apk-repo gh pr checkout ${{ github.event.number }} -b pr-${{ github.event.number }} @@ -106,7 +106,7 @@ jobs: cd apk-repo/backoffice/backoffice-domain-service ./gradlew build - name: Run Gradle Build - if: github.event_name == 'pull_request_target' && github.event.action == 'closed' && github.event.pull_request.merged == true + if: github.event_name == 'pull_request' && github.event.action == 'closed' && github.event.pull_request.merged == true run: | cd apk-repo/backoffice/backoffice-domain-service ./gradlew docker:docker_push -Pdocker_organization=${{ secrets.DOCKER_ORGANIZATION }} -Pdocker_username=${{ secrets.DOCKER_USERNAME }} -Pdocker_password=${{ secrets.DOCKER_PASSWORD }} -Pimage_version=latest -PmultiArch=true diff --git a/.github/workflows/code-coverage.yaml b/.github/workflows/code-coverage.yaml index f5658a87f..d39e87173 100644 --- a/.github/workflows/code-coverage.yaml +++ b/.github/workflows/code-coverage.yaml @@ -1,7 +1,7 @@ name: Code Coverage on: workflow_dispatch: - pull_request_target: + pull_request: types: - closed branches: diff --git a/.github/workflows/common-controller-release.yml b/.github/workflows/common-controller-release.yml index 46ea5f2e4..f16a4d63d 100644 --- a/.github/workflows/common-controller-release.yml +++ b/.github/workflows/common-controller-release.yml @@ -29,7 +29,7 @@ on: next_version: type: string description: "Next Development Version" - pull_request_target: + pull_request: types: - closed - opened @@ -68,7 +68,7 @@ jobs: git config --global user.email ${{ secrets.WSO2_BOT_EMAIL }} - name: checkout pull request and merge. shell: sh - if: github.event_name == 'pull_request_target' && github.event.action == 'opened' || github.event.action == 'synchronize' + if: github.event_name == 'pull_request' && github.event.action == 'opened' || github.event.action == 'synchronize' run: | cd apk-repo gh pr checkout ${{ github.event.number }} -b pr-${{ github.event.number }} @@ -84,7 +84,7 @@ jobs: cd apk-repo/common-controller ./gradlew build - name: Run Gradle Build - if: github.event_name == 'pull_request_target' && github.event.action == 'closed' && github.event.pull_request.merged == true + if: github.event_name == 'pull_request' && github.event.action == 'closed' && github.event.pull_request.merged == true run: | cd apk-repo/common-controller ./gradlew docker_push -Pdocker_organization=${{ secrets.DOCKER_ORGANIZATION }} -Pdocker_username=${{ secrets.DOCKER_USERNAME }} -Pdocker_password=${{ secrets.DOCKER_PASSWORD }} -Pimage_version=latest -PmultiArch=true diff --git a/.github/workflows/config-deployer-release.yml b/.github/workflows/config-deployer-release.yml index 61c22a395..0395380f6 100644 --- a/.github/workflows/config-deployer-release.yml +++ b/.github/workflows/config-deployer-release.yml @@ -29,7 +29,7 @@ on: next_version: type: string description: "Next Development Version" - pull_request_target: + pull_request: types: - closed - opened @@ -85,7 +85,7 @@ jobs: git config --global user.email ${{ secrets.WSO2_BOT_EMAIL }} - name: checkout pull request and merge. shell: sh - if: github.event_name == 'pull_request_target' && github.event.action == 'opened' || github.event.action == 'synchronize' + if: github.event_name == 'pull_request' && github.event.action == 'opened' || github.event.action == 'synchronize' run: | cd apk-repo gh pr checkout ${{ github.event.number }} -b pr-${{ github.event.number }} @@ -108,7 +108,7 @@ jobs: cd apk-repo/runtime/config-deployer-service ./gradlew build - name: Run Gradle Build - if: github.event_name == 'pull_request_target' && github.event.action == 'closed' && github.event.pull_request.merged == true + if: github.event_name == 'pull_request' && github.event.action == 'closed' && github.event.pull_request.merged == true run: | cd apk-repo/runtime/config-deployer-service ./gradlew docker:docker_push -Pdocker_organization=${{ secrets.DOCKER_ORGANIZATION }} -Pdocker_username=${{ secrets.DOCKER_USERNAME }} -Pdocker_password=${{ secrets.DOCKER_PASSWORD }} -Pimage_version=latest -PmultiArch=true diff --git a/.github/workflows/devportal-domain-service-release.yml b/.github/workflows/devportal-domain-service-release.yml index 9e037b3f6..8c4fcefcb 100644 --- a/.github/workflows/devportal-domain-service-release.yml +++ b/.github/workflows/devportal-domain-service-release.yml @@ -29,7 +29,7 @@ on: next_version: type: string description: "Next Development Version" - pull_request_target: + pull_request: types: - closed - opened @@ -84,7 +84,7 @@ jobs: git config --global user.email ${{ secrets.WSO2_BOT_EMAIL }} - name: checkout pull request and merge. shell: sh - if: github.event_name == 'pull_request_target' && github.event.action == 'opened' || github.event.action == 'synchronize' + if: github.event_name == 'pull_request' && github.event.action == 'opened' || github.event.action == 'synchronize' run: | cd apk-repo gh pr checkout ${{ github.event.number }} -b pr-${{ github.event.number }} @@ -106,7 +106,7 @@ jobs: cd apk-repo/devportal/devportal-domain-service ./gradlew build - name: Run Gradle Build - if: github.event_name == 'pull_request_target' && github.event.action == 'closed' && github.event.pull_request.merged == true + if: github.event_name == 'pull_request' && github.event.action == 'closed' && github.event.pull_request.merged == true run: | cd apk-repo/devportal/devportal-domain-service ./gradlew docker:docker_push -Pdocker_organization=${{ secrets.DOCKER_ORGANIZATION }} -Pdocker_username=${{ secrets.DOCKER_USERNAME }} -Pdocker_password=${{ secrets.DOCKER_PASSWORD }} -Pimage_version=latest -PmultiArch=true diff --git a/.github/workflows/enforcer-release.yml b/.github/workflows/enforcer-release.yml index 09a53b234..391b4c740 100644 --- a/.github/workflows/enforcer-release.yml +++ b/.github/workflows/enforcer-release.yml @@ -29,7 +29,7 @@ on: next_version: type: string description: "Next Development Version" - pull_request_target: + pull_request: types: - closed - opened @@ -68,7 +68,7 @@ jobs: git config --global user.email ${{ secrets.WSO2_BOT_EMAIL }} - name: checkout pull request and merge. shell: sh - if: github.event_name == 'pull_request_target' && github.event.action == 'opened' || github.event.action == 'synchronize' + if: github.event_name == 'pull_request' && github.event.action == 'opened' || github.event.action == 'synchronize' run: | cd apk-repo gh pr checkout ${{ github.event.number }} -b pr-${{ github.event.number }} @@ -85,7 +85,7 @@ jobs: cd apk-repo/gateway/enforcer ./gradlew build - name: Run Gradle Build - if: github.event_name == 'pull_request_target' && github.event.action == 'closed' && github.event.pull_request.merged == true + if: github.event_name == 'pull_request' && github.event.action == 'closed' && github.event.pull_request.merged == true run: | cd apk-repo/gateway/enforcer ./gradlew docker_push -Pdocker_organization=${{ secrets.DOCKER_ORGANIZATION }} -Pdocker_username=${{ secrets.DOCKER_USERNAME }} -Pdocker_password=${{ secrets.DOCKER_PASSWORD }} -Pimage_version=latest -PmultiArch=true diff --git a/.github/workflows/idp-domain-service-release.yml b/.github/workflows/idp-domain-service-release.yml index 221513313..ce2d163ef 100644 --- a/.github/workflows/idp-domain-service-release.yml +++ b/.github/workflows/idp-domain-service-release.yml @@ -29,7 +29,7 @@ on: next_version: type: string description: "Next Development Version" - pull_request_target: + pull_request: types: - closed - opened @@ -84,7 +84,7 @@ jobs: git config --global user.email ${{ secrets.WSO2_BOT_EMAIL }} - name: checkout pull request and merge. shell: sh - if: github.event_name == 'pull_request_target' && github.event.action == 'opened' || github.event.action == 'synchronize' + if: github.event_name == 'pull_request' && github.event.action == 'opened' || github.event.action == 'synchronize' run: | cd apk-repo gh pr checkout ${{ github.event.number }} -b pr-${{ github.event.number }} @@ -102,7 +102,7 @@ jobs: cd apk-repo/idp/idp-domain-service ./gradlew build - name: Run Gradle Build - if: github.event_name == 'pull_request_target' && github.event.action == 'closed' && github.event.pull_request.merged == true + if: github.event_name == 'pull_request' && github.event.action == 'closed' && github.event.pull_request.merged == true run: | cd apk-repo/idp/idp-domain-service ./gradlew docker:docker_push -Pdocker_organization=${{ secrets.DOCKER_ORGANIZATION }} -Pdocker_username=${{ secrets.DOCKER_USERNAME }} -Pdocker_password=${{ secrets.DOCKER_PASSWORD }} -Pimage_version=latest -PmultiArch=true diff --git a/.github/workflows/idp-ui-release.yml b/.github/workflows/idp-ui-release.yml index 16deb663b..c9021a435 100644 --- a/.github/workflows/idp-ui-release.yml +++ b/.github/workflows/idp-ui-release.yml @@ -30,7 +30,7 @@ on: next_version: type: string description: "Next Development Version" - pull_request_target: + pull_request: types: - closed - opened @@ -62,7 +62,7 @@ jobs: git config --global user.email ${{ secrets.WSO2_BOT_EMAIL }} - name: checkout pull request and merge. shell: sh - if: github.event_name == 'pull_request_target' && github.event.action == 'opened' || github.event.action == 'synchronize' + if: github.event_name == 'pull_request' && github.event.action == 'opened' || github.event.action == 'synchronize' run: | cd apk-repo gh pr checkout ${{ github.event.number }} -b pr-${{ github.event.number }} @@ -81,7 +81,7 @@ jobs: cd apk-repo/idp/idp-ui ./gradlew build - name: Run Gradle Build - if: github.event_name == 'pull_request_target' && github.event.action == 'closed' && github.event.pull_request.merged == true + if: github.event_name == 'pull_request' && github.event.action == 'closed' && github.event.pull_request.merged == true run: | cd apk-repo/idp/idp-ui ./gradlew docker_push -Pdocker_organization=${{ secrets.DOCKER_ORGANIZATION }} -Pdocker_username=${{ secrets.DOCKER_USERNAME }} -Pdocker_password=${{ secrets.DOCKER_PASSWORD }} -Pimage_version=latest -PmultiArch=true diff --git a/.github/workflows/integration-test.yml b/.github/workflows/integration-test.yml index 73c204d78..d8ca768dd 100644 --- a/.github/workflows/integration-test.yml +++ b/.github/workflows/integration-test.yml @@ -1,7 +1,7 @@ name: start and run cucumber and go integration tests on: workflow_dispatch: - pull_request_target: + pull_request: types: [opened, synchronize, reopened] concurrency: group: integration-test-${{ github.event.number || github.run_id }} @@ -9,7 +9,7 @@ env: GH_TOKEN: ${{ secrets.WSO2_BOT_TOKEN }} jobs: build_adapter: - if: github.event_name == 'pull_request_target' && github.event.action == 'opened' || github.event.action == 'synchronize' + if: github.event_name == 'pull_request' && github.event.action == 'opened' || github.event.action == 'synchronize' uses: ./.github/workflows/adapter-release.yml with: aks_deployment: true @@ -21,7 +21,7 @@ jobs: AZURE_ACR_NAME: ${{ secrets.AZURE_ACR_NAME }} AZURE_CREDENTIALS: ${{ secrets.AZURE_CREDENTIALS }} build_common_controller: - if: github.event_name == 'pull_request_target' && github.event.action == 'opened' || github.event.action == 'synchronize' + if: github.event_name == 'pull_request' && github.event.action == 'opened' || github.event.action == 'synchronize' uses: ./.github/workflows/common-controller-release.yml with: aks_deployment: true @@ -33,7 +33,7 @@ jobs: AZURE_ACR_NAME: ${{ secrets.AZURE_ACR_NAME }} AZURE_CREDENTIALS: ${{ secrets.AZURE_CREDENTIALS }} build_enforcer: - if: github.event_name == 'pull_request_target' && github.event.action == 'opened' || github.event.action == 'synchronize' + if: github.event_name == 'pull_request' && github.event.action == 'opened' || github.event.action == 'synchronize' uses: ./.github/workflows/enforcer-release.yml with: aks_deployment: true @@ -46,7 +46,7 @@ jobs: AZURE_CREDENTIALS: ${{ secrets.AZURE_CREDENTIALS }} build_router: - if: github.event_name == 'pull_request_target' && github.event.action == 'opened' || github.event.action == 'synchronize' + if: github.event_name == 'pull_request' && github.event.action == 'opened' || github.event.action == 'synchronize' uses: ./.github/workflows/router-release.yml with: aks_deployment: true @@ -58,7 +58,7 @@ jobs: AZURE_ACR_NAME: ${{ secrets.AZURE_ACR_NAME }} AZURE_CREDENTIALS: ${{ secrets.AZURE_CREDENTIALS }} build_ratelimiter: - if: github.event_name == 'pull_request_target' && github.event.action == 'opened' || github.event.action == 'synchronize' + if: github.event_name == 'pull_request' && github.event.action == 'opened' || github.event.action == 'synchronize' uses: ./.github/workflows/ratelimiter-release.yml with: aks_deployment: true @@ -70,7 +70,7 @@ jobs: AZURE_ACR_NAME: ${{ secrets.AZURE_ACR_NAME }} AZURE_CREDENTIALS: ${{ secrets.AZURE_CREDENTIALS }} build_config: - if: github.event_name == 'pull_request_target' && github.event.action == 'opened' || github.event.action == 'synchronize' + if: github.event_name == 'pull_request' && github.event.action == 'opened' || github.event.action == 'synchronize' uses: ./.github/workflows/config-deployer-release.yml with: aks_deployment: true @@ -82,7 +82,7 @@ jobs: AZURE_ACR_NAME: ${{ secrets.AZURE_ACR_NAME }} AZURE_CREDENTIALS: ${{ secrets.AZURE_CREDENTIALS }} build_idpds: - if: github.event_name == 'pull_request_target' && github.event.action == 'opened' || github.event.action == 'synchronize' + if: github.event_name == 'pull_request' && github.event.action == 'opened' || github.event.action == 'synchronize' uses: ./.github/workflows/idp-domain-service-release.yml with: aks_deployment: true @@ -94,7 +94,7 @@ jobs: AZURE_ACR_NAME: ${{ secrets.AZURE_ACR_NAME }} AZURE_CREDENTIALS: ${{ secrets.AZURE_CREDENTIALS }} build_idpui: - if: github.event_name == 'pull_request_target' && github.event.action == 'opened' || github.event.action == 'synchronize' + if: github.event_name == 'pull_request' && github.event.action == 'opened' || github.event.action == 'synchronize' uses: ./.github/workflows/idp-ui-release.yml with: aks_deployment: true @@ -106,8 +106,8 @@ jobs: AZURE_ACR_NAME: ${{ secrets.AZURE_ACR_NAME }} AZURE_CREDENTIALS: ${{ secrets.AZURE_CREDENTIALS }} - runs_go_integration_tests_on_pull_request_target: - if: github.event_name == 'pull_request_target' && github.event.action == 'opened' || github.event.action == 'synchronize' || github.event.action == 'reopened' + runs_go_integration_tests_on_pull_request: + if: github.event_name == 'pull_request' && github.event.action == 'opened' || github.event.action == 'synchronize' || github.event.action == 'reopened' needs: [build_adapter, build_common_controller, build_enforcer, build_router, build_config,build_idpds,build_idpui,build_ratelimiter] runs-on: ubuntu-latest steps: @@ -147,7 +147,7 @@ jobs: - name: checkout pull request and merge. shell: sh - if: github.event_name == 'pull_request_target' && github.event.action == 'opened' || github.event.action == 'synchronize' || github.event.action == 'reopened' + if: github.event_name == 'pull_request' && github.event.action == 'opened' || github.event.action == 'synchronize' || github.event.action == 'reopened' run: | cd apk-repo gh pr checkout ${{ github.event.number }} -b pr-${{ github.event.number }} @@ -155,7 +155,7 @@ jobs: git merge origin/main - name: Helm release deploy - if: github.event_name == 'pull_request_target' && github.event.action == 'opened' || github.event.action == 'synchronize' || github.event.action == 'reopened' + if: github.event_name == 'pull_request' && github.event.action == 'opened' || github.event.action == 'synchronize' || github.event.action == 'reopened' shell: sh run: | cd apk-repo/helm-charts @@ -209,8 +209,8 @@ jobs: report_paths: 'apk-repo/test/postman-tests/build/*.xml' fail_on_test_failures: true - runs_cucumber_integration_tests_on_pull_request_target: - if: github.event_name == 'pull_request_target' && github.event.action == 'opened' || github.event.action == 'synchronize' || github.event.action == 'reopened' + runs_cucumber_integration_tests_on_pull_request: + if: github.event_name == 'pull_request' && github.event.action == 'opened' || github.event.action == 'synchronize' || github.event.action == 'reopened' needs: [build_adapter, build_common_controller, build_enforcer, build_router, build_config,build_idpds,build_idpui,build_ratelimiter] runs-on: ubuntu-latest steps: @@ -250,7 +250,7 @@ jobs: - name: checkout pull request and merge. shell: sh - if: github.event_name == 'pull_request_target' && github.event.action == 'opened' || github.event.action == 'synchronize' || github.event.action == 'reopened' + if: github.event_name == 'pull_request' && github.event.action == 'opened' || github.event.action == 'synchronize' || github.event.action == 'reopened' run: | cd apk-repo gh pr checkout ${{ github.event.number }} -b pr-${{ github.event.number }} @@ -258,7 +258,7 @@ jobs: git merge origin/main - name: Helm release deploy - if: github.event_name == 'pull_request_target' && github.event.action == 'opened' || github.event.action == 'synchronize' || github.event.action == 'reopened' + if: github.event_name == 'pull_request' && github.event.action == 'opened' || github.event.action == 'synchronize' || github.event.action == 'reopened' shell: sh run: | cd apk-repo/helm-charts diff --git a/.github/workflows/management-server-release.yml b/.github/workflows/management-server-release.yml index 5b6b6aed1..893092db2 100644 --- a/.github/workflows/management-server-release.yml +++ b/.github/workflows/management-server-release.yml @@ -29,7 +29,7 @@ on: next_version: type: string description: "Next Development Version" - pull_request_target: + pull_request: types: - closed - opened @@ -70,7 +70,7 @@ jobs: git config --global user.email ${{ secrets.WSO2_BOT_EMAIL }} - name: checkout pull request and merge. shell: sh - if: github.event_name == 'pull_request_target' && github.event.action == 'opened' || github.event.action == 'synchronize' + if: github.event_name == 'pull_request' && github.event.action == 'opened' || github.event.action == 'synchronize' run: | cd apk-repo gh pr checkout ${{ github.event.number }} -b pr-${{ github.event.number }} @@ -89,7 +89,7 @@ jobs: cd apk-repo/management-server ./gradlew build - name: Run Gradle Build - if: github.event_name == 'pull_request_target' && github.event.action == 'closed' && github.event.pull_request.merged == true + if: github.event_name == 'pull_request' && github.event.action == 'closed' && github.event.pull_request.merged == true run: | cd apk-repo/management-server ./gradlew docker_push -Pdocker_organization=${{ secrets.DOCKER_ORGANIZATION }} -Pdocker_username=${{ secrets.DOCKER_USERNAME }} -Pdocker_password=${{ secrets.DOCKER_PASSWORD }} -Pimage_version=latest -PmultiArch=true diff --git a/.github/workflows/ratelimiter-release.yml b/.github/workflows/ratelimiter-release.yml index dcc4c5c13..62e52fa2f 100644 --- a/.github/workflows/ratelimiter-release.yml +++ b/.github/workflows/ratelimiter-release.yml @@ -29,7 +29,7 @@ on: next_version: type: string description: "Next Development Version" - pull_request_target: + pull_request: types: - closed - opened @@ -68,7 +68,7 @@ jobs: git config --global user.email ${{ secrets.WSO2_BOT_EMAIL }} - name: checkout pull request and merge. shell: sh - if: github.event_name == 'pull_request_target' && github.event.action == 'opened' || github.event.action == 'synchronize' + if: github.event_name == 'pull_request' && github.event.action == 'opened' || github.event.action == 'synchronize' run: | cd apk-repo gh pr checkout ${{ github.event.number }} -b pr-${{ github.event.number }} @@ -84,7 +84,7 @@ jobs: cd apk-repo/ratelimiter ./gradlew build - name: Run Gradle Build - if: github.event_name == 'pull_request_target' && github.event.action == 'closed' && github.event.pull_request.merged == true + if: github.event_name == 'pull_request' && github.event.action == 'closed' && github.event.pull_request.merged == true run: | cd apk-repo/ratelimiter ./gradlew docker_push -Pdocker_organization=${{ secrets.DOCKER_ORGANIZATION }} -Pdocker_username=${{ secrets.DOCKER_USERNAME }} -Pdocker_password=${{ secrets.DOCKER_PASSWORD }} -Pimage_version=latest -PmultiArch=true diff --git a/.github/workflows/router-release.yml b/.github/workflows/router-release.yml index 19757fcf2..4b3cf1747 100644 --- a/.github/workflows/router-release.yml +++ b/.github/workflows/router-release.yml @@ -29,7 +29,7 @@ on: next_version: type: string description: "Next Development Version" - pull_request_target: + pull_request: types: - closed - opened @@ -61,7 +61,7 @@ jobs: git config --global user.email ${{ secrets.WSO2_BOT_EMAIL }} - name: checkout pull request and merge. shell: sh - if: github.event_name == 'pull_request_target' && github.event.action == 'opened' || github.event.action == 'synchronize' + if: github.event_name == 'pull_request' && github.event.action == 'opened' || github.event.action == 'synchronize' run: | cd apk-repo gh pr checkout ${{ github.event.number }} -b pr-${{ github.event.number }} @@ -78,7 +78,7 @@ jobs: cd apk-repo/gateway/router ./gradlew build - name: Run Gradle Build - if: github.event_name == 'pull_request_target' && github.event.action == 'closed' && github.event.pull_request.merged == true + if: github.event_name == 'pull_request' && github.event.action == 'closed' && github.event.pull_request.merged == true run: | cd apk-repo/gateway/router ./gradlew docker_push -Pdocker_organization=${{ secrets.DOCKER_ORGANIZATION }} -Pdocker_username=${{ secrets.DOCKER_USERNAME }} -Pdocker_password=${{ secrets.DOCKER_PASSWORD }} -Pimage_version=latest -PmultiArch=true diff --git a/.github/workflows/run-integration-tests.yml b/.github/workflows/run-integration-tests.yml index b12f90d89..7bddcbd4e 100644 --- a/.github/workflows/run-integration-tests.yml +++ b/.github/workflows/run-integration-tests.yml @@ -1,7 +1,7 @@ name: Run Gateway Integration Tests. on: workflow_dispatch: - pull_request_target: + pull_request: types: - closed - opened @@ -43,7 +43,7 @@ jobs: git config --global user.email ${{ secrets.WSO2_BOT_EMAIL }} - name: checkout pull request and merge. shell: sh - if: github.event_name == 'pull_request_target' && github.event.action == 'opened' || github.event.action == 'synchronize' + if: github.event_name == 'pull_request' && github.event.action == 'opened' || github.event.action == 'synchronize' run: | cd apk-repo gh pr checkout ${{ github.event.number }} -b pr-${{ github.event.number }} diff --git a/workflows/adapter-release.yml b/workflows/adapter-release.yml index ed5d9a584..9fdbcc304 100644 --- a/workflows/adapter-release.yml +++ b/workflows/adapter-release.yml @@ -29,7 +29,7 @@ on: next_version: type: string description: "Next Development Version" - pull_request_target: + pull_request: types: - closed - opened @@ -68,7 +68,7 @@ jobs: git config --global user.email ${{ secrets.WSO2_BOT_EMAIL }} - name: checkout pull request and merge. shell: sh - if: github.event_name == 'pull_request_target' && github.event.action == 'opened' || github.event.action == 'synchronize' + if: github.event_name == 'pull_request' && github.event.action == 'opened' || github.event.action == 'synchronize' run: | cd apk-repo gh pr checkout ${{ github.event.number }} -b pr-${{ github.event.number }} @@ -84,7 +84,7 @@ jobs: cd apk-repo/adapter ./gradlew build - name: Run Gradle Build - if: github.event_name == 'pull_request_target' && github.event.action == 'closed' && github.event.pull_request.merged == true + if: github.event_name == 'pull_request' && github.event.action == 'closed' && github.event.pull_request.merged == true run: | cd apk-repo/adapter ./gradlew docker_push -Pdocker_organization=${{ secrets.DOCKER_ORGANIZATION }} -Pdocker_username=${{ secrets.DOCKER_USERNAME }} -Pdocker_password=${{ secrets.DOCKER_PASSWORD }} -Pimage_version=latest -PmultiArch=true diff --git a/workflows/admin-domain-service-release.yml b/workflows/admin-domain-service-release.yml index 211107e60..943468160 100644 --- a/workflows/admin-domain-service-release.yml +++ b/workflows/admin-domain-service-release.yml @@ -28,7 +28,7 @@ on: next_version: type: string description: "Next Development Version" - pull_request_target: + pull_request: types: - closed - opened @@ -83,7 +83,7 @@ jobs: git config --global user.email ${{ secrets.WSO2_BOT_EMAIL }} - name: checkout pull request and merge. shell: sh - if: github.event_name == 'pull_request_target' && github.event.action == 'opened' || github.event.action == 'synchronize' + if: github.event_name == 'pull_request' && github.event.action == 'opened' || github.event.action == 'synchronize' run: | cd apk-repo gh pr checkout ${{ github.event.number }} -b pr-${{ github.event.number }} @@ -106,7 +106,7 @@ jobs: cd apk-repo/admin/admin-domain-service ./gradlew build - name: Run Gradle Build - if: github.event_name == 'pull_request_target' && github.event.action == 'closed' && github.event.pull_request.merged == true + if: github.event_name == 'pull_request' && github.event.action == 'closed' && github.event.pull_request.merged == true run: | cd apk-repo/admin/admin-domain-service ./gradlew docker:docker_push -Pdocker_organization=${{ secrets.DOCKER_ORGANIZATION }} -Pdocker_username=${{ secrets.DOCKER_USERNAME }} -Pdocker_password=${{ secrets.DOCKER_PASSWORD }} -Pimage_version=latest -PmultiArch=true diff --git a/workflows/backoffice-release.yml b/workflows/backoffice-release.yml index 2087dff1b..700311144 100644 --- a/workflows/backoffice-release.yml +++ b/workflows/backoffice-release.yml @@ -29,7 +29,7 @@ on: next_version: type: string description: "Next Development Version" - pull_request_target: + pull_request: types: - closed - opened @@ -84,7 +84,7 @@ jobs: git config --global user.email ${{ secrets.WSO2_BOT_EMAIL }} - name: checkout pull request and merge. shell: sh - if: github.event_name == 'pull_request_target' && github.event.action == 'opened' || github.event.action == 'synchronize' + if: github.event_name == 'pull_request' && github.event.action == 'opened' || github.event.action == 'synchronize' run: | cd apk-repo gh pr checkout ${{ github.event.number }} -b pr-${{ github.event.number }} @@ -106,7 +106,7 @@ jobs: cd apk-repo/backoffice/backoffice-domain-service ./gradlew build - name: Run Gradle Build - if: github.event_name == 'pull_request_target' && github.event.action == 'closed' && github.event.pull_request.merged == true + if: github.event_name == 'pull_request' && github.event.action == 'closed' && github.event.pull_request.merged == true run: | cd apk-repo/backoffice/backoffice-domain-service ./gradlew docker:docker_push -Pdocker_organization=${{ secrets.DOCKER_ORGANIZATION }} -Pdocker_username=${{ secrets.DOCKER_USERNAME }} -Pdocker_password=${{ secrets.DOCKER_PASSWORD }} -Pimage_version=latest -PmultiArch=true diff --git a/workflows/code-coverage.yaml b/workflows/code-coverage.yaml index f5658a87f..d39e87173 100644 --- a/workflows/code-coverage.yaml +++ b/workflows/code-coverage.yaml @@ -1,7 +1,7 @@ name: Code Coverage on: workflow_dispatch: - pull_request_target: + pull_request: types: - closed branches: diff --git a/workflows/common-controller-release.yml b/workflows/common-controller-release.yml index 46ea5f2e4..f16a4d63d 100644 --- a/workflows/common-controller-release.yml +++ b/workflows/common-controller-release.yml @@ -29,7 +29,7 @@ on: next_version: type: string description: "Next Development Version" - pull_request_target: + pull_request: types: - closed - opened @@ -68,7 +68,7 @@ jobs: git config --global user.email ${{ secrets.WSO2_BOT_EMAIL }} - name: checkout pull request and merge. shell: sh - if: github.event_name == 'pull_request_target' && github.event.action == 'opened' || github.event.action == 'synchronize' + if: github.event_name == 'pull_request' && github.event.action == 'opened' || github.event.action == 'synchronize' run: | cd apk-repo gh pr checkout ${{ github.event.number }} -b pr-${{ github.event.number }} @@ -84,7 +84,7 @@ jobs: cd apk-repo/common-controller ./gradlew build - name: Run Gradle Build - if: github.event_name == 'pull_request_target' && github.event.action == 'closed' && github.event.pull_request.merged == true + if: github.event_name == 'pull_request' && github.event.action == 'closed' && github.event.pull_request.merged == true run: | cd apk-repo/common-controller ./gradlew docker_push -Pdocker_organization=${{ secrets.DOCKER_ORGANIZATION }} -Pdocker_username=${{ secrets.DOCKER_USERNAME }} -Pdocker_password=${{ secrets.DOCKER_PASSWORD }} -Pimage_version=latest -PmultiArch=true diff --git a/workflows/config-deployer-release.yml b/workflows/config-deployer-release.yml index 61c22a395..0395380f6 100644 --- a/workflows/config-deployer-release.yml +++ b/workflows/config-deployer-release.yml @@ -29,7 +29,7 @@ on: next_version: type: string description: "Next Development Version" - pull_request_target: + pull_request: types: - closed - opened @@ -85,7 +85,7 @@ jobs: git config --global user.email ${{ secrets.WSO2_BOT_EMAIL }} - name: checkout pull request and merge. shell: sh - if: github.event_name == 'pull_request_target' && github.event.action == 'opened' || github.event.action == 'synchronize' + if: github.event_name == 'pull_request' && github.event.action == 'opened' || github.event.action == 'synchronize' run: | cd apk-repo gh pr checkout ${{ github.event.number }} -b pr-${{ github.event.number }} @@ -108,7 +108,7 @@ jobs: cd apk-repo/runtime/config-deployer-service ./gradlew build - name: Run Gradle Build - if: github.event_name == 'pull_request_target' && github.event.action == 'closed' && github.event.pull_request.merged == true + if: github.event_name == 'pull_request' && github.event.action == 'closed' && github.event.pull_request.merged == true run: | cd apk-repo/runtime/config-deployer-service ./gradlew docker:docker_push -Pdocker_organization=${{ secrets.DOCKER_ORGANIZATION }} -Pdocker_username=${{ secrets.DOCKER_USERNAME }} -Pdocker_password=${{ secrets.DOCKER_PASSWORD }} -Pimage_version=latest -PmultiArch=true diff --git a/workflows/devportal-domain-service-release.yml b/workflows/devportal-domain-service-release.yml index 9e037b3f6..8c4fcefcb 100644 --- a/workflows/devportal-domain-service-release.yml +++ b/workflows/devportal-domain-service-release.yml @@ -29,7 +29,7 @@ on: next_version: type: string description: "Next Development Version" - pull_request_target: + pull_request: types: - closed - opened @@ -84,7 +84,7 @@ jobs: git config --global user.email ${{ secrets.WSO2_BOT_EMAIL }} - name: checkout pull request and merge. shell: sh - if: github.event_name == 'pull_request_target' && github.event.action == 'opened' || github.event.action == 'synchronize' + if: github.event_name == 'pull_request' && github.event.action == 'opened' || github.event.action == 'synchronize' run: | cd apk-repo gh pr checkout ${{ github.event.number }} -b pr-${{ github.event.number }} @@ -106,7 +106,7 @@ jobs: cd apk-repo/devportal/devportal-domain-service ./gradlew build - name: Run Gradle Build - if: github.event_name == 'pull_request_target' && github.event.action == 'closed' && github.event.pull_request.merged == true + if: github.event_name == 'pull_request' && github.event.action == 'closed' && github.event.pull_request.merged == true run: | cd apk-repo/devportal/devportal-domain-service ./gradlew docker:docker_push -Pdocker_organization=${{ secrets.DOCKER_ORGANIZATION }} -Pdocker_username=${{ secrets.DOCKER_USERNAME }} -Pdocker_password=${{ secrets.DOCKER_PASSWORD }} -Pimage_version=latest -PmultiArch=true diff --git a/workflows/enforcer-release.yml b/workflows/enforcer-release.yml index 09a53b234..391b4c740 100644 --- a/workflows/enforcer-release.yml +++ b/workflows/enforcer-release.yml @@ -29,7 +29,7 @@ on: next_version: type: string description: "Next Development Version" - pull_request_target: + pull_request: types: - closed - opened @@ -68,7 +68,7 @@ jobs: git config --global user.email ${{ secrets.WSO2_BOT_EMAIL }} - name: checkout pull request and merge. shell: sh - if: github.event_name == 'pull_request_target' && github.event.action == 'opened' || github.event.action == 'synchronize' + if: github.event_name == 'pull_request' && github.event.action == 'opened' || github.event.action == 'synchronize' run: | cd apk-repo gh pr checkout ${{ github.event.number }} -b pr-${{ github.event.number }} @@ -85,7 +85,7 @@ jobs: cd apk-repo/gateway/enforcer ./gradlew build - name: Run Gradle Build - if: github.event_name == 'pull_request_target' && github.event.action == 'closed' && github.event.pull_request.merged == true + if: github.event_name == 'pull_request' && github.event.action == 'closed' && github.event.pull_request.merged == true run: | cd apk-repo/gateway/enforcer ./gradlew docker_push -Pdocker_organization=${{ secrets.DOCKER_ORGANIZATION }} -Pdocker_username=${{ secrets.DOCKER_USERNAME }} -Pdocker_password=${{ secrets.DOCKER_PASSWORD }} -Pimage_version=latest -PmultiArch=true diff --git a/workflows/idp-domain-service-release.yml b/workflows/idp-domain-service-release.yml index 221513313..ce2d163ef 100644 --- a/workflows/idp-domain-service-release.yml +++ b/workflows/idp-domain-service-release.yml @@ -29,7 +29,7 @@ on: next_version: type: string description: "Next Development Version" - pull_request_target: + pull_request: types: - closed - opened @@ -84,7 +84,7 @@ jobs: git config --global user.email ${{ secrets.WSO2_BOT_EMAIL }} - name: checkout pull request and merge. shell: sh - if: github.event_name == 'pull_request_target' && github.event.action == 'opened' || github.event.action == 'synchronize' + if: github.event_name == 'pull_request' && github.event.action == 'opened' || github.event.action == 'synchronize' run: | cd apk-repo gh pr checkout ${{ github.event.number }} -b pr-${{ github.event.number }} @@ -102,7 +102,7 @@ jobs: cd apk-repo/idp/idp-domain-service ./gradlew build - name: Run Gradle Build - if: github.event_name == 'pull_request_target' && github.event.action == 'closed' && github.event.pull_request.merged == true + if: github.event_name == 'pull_request' && github.event.action == 'closed' && github.event.pull_request.merged == true run: | cd apk-repo/idp/idp-domain-service ./gradlew docker:docker_push -Pdocker_organization=${{ secrets.DOCKER_ORGANIZATION }} -Pdocker_username=${{ secrets.DOCKER_USERNAME }} -Pdocker_password=${{ secrets.DOCKER_PASSWORD }} -Pimage_version=latest -PmultiArch=true diff --git a/workflows/idp-ui-release.yml b/workflows/idp-ui-release.yml index 16deb663b..c9021a435 100644 --- a/workflows/idp-ui-release.yml +++ b/workflows/idp-ui-release.yml @@ -30,7 +30,7 @@ on: next_version: type: string description: "Next Development Version" - pull_request_target: + pull_request: types: - closed - opened @@ -62,7 +62,7 @@ jobs: git config --global user.email ${{ secrets.WSO2_BOT_EMAIL }} - name: checkout pull request and merge. shell: sh - if: github.event_name == 'pull_request_target' && github.event.action == 'opened' || github.event.action == 'synchronize' + if: github.event_name == 'pull_request' && github.event.action == 'opened' || github.event.action == 'synchronize' run: | cd apk-repo gh pr checkout ${{ github.event.number }} -b pr-${{ github.event.number }} @@ -81,7 +81,7 @@ jobs: cd apk-repo/idp/idp-ui ./gradlew build - name: Run Gradle Build - if: github.event_name == 'pull_request_target' && github.event.action == 'closed' && github.event.pull_request.merged == true + if: github.event_name == 'pull_request' && github.event.action == 'closed' && github.event.pull_request.merged == true run: | cd apk-repo/idp/idp-ui ./gradlew docker_push -Pdocker_organization=${{ secrets.DOCKER_ORGANIZATION }} -Pdocker_username=${{ secrets.DOCKER_USERNAME }} -Pdocker_password=${{ secrets.DOCKER_PASSWORD }} -Pimage_version=latest -PmultiArch=true diff --git a/workflows/integration-test.yml b/workflows/integration-test.yml index 73c204d78..d8ca768dd 100644 --- a/workflows/integration-test.yml +++ b/workflows/integration-test.yml @@ -1,7 +1,7 @@ name: start and run cucumber and go integration tests on: workflow_dispatch: - pull_request_target: + pull_request: types: [opened, synchronize, reopened] concurrency: group: integration-test-${{ github.event.number || github.run_id }} @@ -9,7 +9,7 @@ env: GH_TOKEN: ${{ secrets.WSO2_BOT_TOKEN }} jobs: build_adapter: - if: github.event_name == 'pull_request_target' && github.event.action == 'opened' || github.event.action == 'synchronize' + if: github.event_name == 'pull_request' && github.event.action == 'opened' || github.event.action == 'synchronize' uses: ./.github/workflows/adapter-release.yml with: aks_deployment: true @@ -21,7 +21,7 @@ jobs: AZURE_ACR_NAME: ${{ secrets.AZURE_ACR_NAME }} AZURE_CREDENTIALS: ${{ secrets.AZURE_CREDENTIALS }} build_common_controller: - if: github.event_name == 'pull_request_target' && github.event.action == 'opened' || github.event.action == 'synchronize' + if: github.event_name == 'pull_request' && github.event.action == 'opened' || github.event.action == 'synchronize' uses: ./.github/workflows/common-controller-release.yml with: aks_deployment: true @@ -33,7 +33,7 @@ jobs: AZURE_ACR_NAME: ${{ secrets.AZURE_ACR_NAME }} AZURE_CREDENTIALS: ${{ secrets.AZURE_CREDENTIALS }} build_enforcer: - if: github.event_name == 'pull_request_target' && github.event.action == 'opened' || github.event.action == 'synchronize' + if: github.event_name == 'pull_request' && github.event.action == 'opened' || github.event.action == 'synchronize' uses: ./.github/workflows/enforcer-release.yml with: aks_deployment: true @@ -46,7 +46,7 @@ jobs: AZURE_CREDENTIALS: ${{ secrets.AZURE_CREDENTIALS }} build_router: - if: github.event_name == 'pull_request_target' && github.event.action == 'opened' || github.event.action == 'synchronize' + if: github.event_name == 'pull_request' && github.event.action == 'opened' || github.event.action == 'synchronize' uses: ./.github/workflows/router-release.yml with: aks_deployment: true @@ -58,7 +58,7 @@ jobs: AZURE_ACR_NAME: ${{ secrets.AZURE_ACR_NAME }} AZURE_CREDENTIALS: ${{ secrets.AZURE_CREDENTIALS }} build_ratelimiter: - if: github.event_name == 'pull_request_target' && github.event.action == 'opened' || github.event.action == 'synchronize' + if: github.event_name == 'pull_request' && github.event.action == 'opened' || github.event.action == 'synchronize' uses: ./.github/workflows/ratelimiter-release.yml with: aks_deployment: true @@ -70,7 +70,7 @@ jobs: AZURE_ACR_NAME: ${{ secrets.AZURE_ACR_NAME }} AZURE_CREDENTIALS: ${{ secrets.AZURE_CREDENTIALS }} build_config: - if: github.event_name == 'pull_request_target' && github.event.action == 'opened' || github.event.action == 'synchronize' + if: github.event_name == 'pull_request' && github.event.action == 'opened' || github.event.action == 'synchronize' uses: ./.github/workflows/config-deployer-release.yml with: aks_deployment: true @@ -82,7 +82,7 @@ jobs: AZURE_ACR_NAME: ${{ secrets.AZURE_ACR_NAME }} AZURE_CREDENTIALS: ${{ secrets.AZURE_CREDENTIALS }} build_idpds: - if: github.event_name == 'pull_request_target' && github.event.action == 'opened' || github.event.action == 'synchronize' + if: github.event_name == 'pull_request' && github.event.action == 'opened' || github.event.action == 'synchronize' uses: ./.github/workflows/idp-domain-service-release.yml with: aks_deployment: true @@ -94,7 +94,7 @@ jobs: AZURE_ACR_NAME: ${{ secrets.AZURE_ACR_NAME }} AZURE_CREDENTIALS: ${{ secrets.AZURE_CREDENTIALS }} build_idpui: - if: github.event_name == 'pull_request_target' && github.event.action == 'opened' || github.event.action == 'synchronize' + if: github.event_name == 'pull_request' && github.event.action == 'opened' || github.event.action == 'synchronize' uses: ./.github/workflows/idp-ui-release.yml with: aks_deployment: true @@ -106,8 +106,8 @@ jobs: AZURE_ACR_NAME: ${{ secrets.AZURE_ACR_NAME }} AZURE_CREDENTIALS: ${{ secrets.AZURE_CREDENTIALS }} - runs_go_integration_tests_on_pull_request_target: - if: github.event_name == 'pull_request_target' && github.event.action == 'opened' || github.event.action == 'synchronize' || github.event.action == 'reopened' + runs_go_integration_tests_on_pull_request: + if: github.event_name == 'pull_request' && github.event.action == 'opened' || github.event.action == 'synchronize' || github.event.action == 'reopened' needs: [build_adapter, build_common_controller, build_enforcer, build_router, build_config,build_idpds,build_idpui,build_ratelimiter] runs-on: ubuntu-latest steps: @@ -147,7 +147,7 @@ jobs: - name: checkout pull request and merge. shell: sh - if: github.event_name == 'pull_request_target' && github.event.action == 'opened' || github.event.action == 'synchronize' || github.event.action == 'reopened' + if: github.event_name == 'pull_request' && github.event.action == 'opened' || github.event.action == 'synchronize' || github.event.action == 'reopened' run: | cd apk-repo gh pr checkout ${{ github.event.number }} -b pr-${{ github.event.number }} @@ -155,7 +155,7 @@ jobs: git merge origin/main - name: Helm release deploy - if: github.event_name == 'pull_request_target' && github.event.action == 'opened' || github.event.action == 'synchronize' || github.event.action == 'reopened' + if: github.event_name == 'pull_request' && github.event.action == 'opened' || github.event.action == 'synchronize' || github.event.action == 'reopened' shell: sh run: | cd apk-repo/helm-charts @@ -209,8 +209,8 @@ jobs: report_paths: 'apk-repo/test/postman-tests/build/*.xml' fail_on_test_failures: true - runs_cucumber_integration_tests_on_pull_request_target: - if: github.event_name == 'pull_request_target' && github.event.action == 'opened' || github.event.action == 'synchronize' || github.event.action == 'reopened' + runs_cucumber_integration_tests_on_pull_request: + if: github.event_name == 'pull_request' && github.event.action == 'opened' || github.event.action == 'synchronize' || github.event.action == 'reopened' needs: [build_adapter, build_common_controller, build_enforcer, build_router, build_config,build_idpds,build_idpui,build_ratelimiter] runs-on: ubuntu-latest steps: @@ -250,7 +250,7 @@ jobs: - name: checkout pull request and merge. shell: sh - if: github.event_name == 'pull_request_target' && github.event.action == 'opened' || github.event.action == 'synchronize' || github.event.action == 'reopened' + if: github.event_name == 'pull_request' && github.event.action == 'opened' || github.event.action == 'synchronize' || github.event.action == 'reopened' run: | cd apk-repo gh pr checkout ${{ github.event.number }} -b pr-${{ github.event.number }} @@ -258,7 +258,7 @@ jobs: git merge origin/main - name: Helm release deploy - if: github.event_name == 'pull_request_target' && github.event.action == 'opened' || github.event.action == 'synchronize' || github.event.action == 'reopened' + if: github.event_name == 'pull_request' && github.event.action == 'opened' || github.event.action == 'synchronize' || github.event.action == 'reopened' shell: sh run: | cd apk-repo/helm-charts diff --git a/workflows/management-server-release.yml b/workflows/management-server-release.yml index 5b6b6aed1..893092db2 100644 --- a/workflows/management-server-release.yml +++ b/workflows/management-server-release.yml @@ -29,7 +29,7 @@ on: next_version: type: string description: "Next Development Version" - pull_request_target: + pull_request: types: - closed - opened @@ -70,7 +70,7 @@ jobs: git config --global user.email ${{ secrets.WSO2_BOT_EMAIL }} - name: checkout pull request and merge. shell: sh - if: github.event_name == 'pull_request_target' && github.event.action == 'opened' || github.event.action == 'synchronize' + if: github.event_name == 'pull_request' && github.event.action == 'opened' || github.event.action == 'synchronize' run: | cd apk-repo gh pr checkout ${{ github.event.number }} -b pr-${{ github.event.number }} @@ -89,7 +89,7 @@ jobs: cd apk-repo/management-server ./gradlew build - name: Run Gradle Build - if: github.event_name == 'pull_request_target' && github.event.action == 'closed' && github.event.pull_request.merged == true + if: github.event_name == 'pull_request' && github.event.action == 'closed' && github.event.pull_request.merged == true run: | cd apk-repo/management-server ./gradlew docker_push -Pdocker_organization=${{ secrets.DOCKER_ORGANIZATION }} -Pdocker_username=${{ secrets.DOCKER_USERNAME }} -Pdocker_password=${{ secrets.DOCKER_PASSWORD }} -Pimage_version=latest -PmultiArch=true diff --git a/workflows/ratelimiter-release.yml b/workflows/ratelimiter-release.yml index dcc4c5c13..62e52fa2f 100644 --- a/workflows/ratelimiter-release.yml +++ b/workflows/ratelimiter-release.yml @@ -29,7 +29,7 @@ on: next_version: type: string description: "Next Development Version" - pull_request_target: + pull_request: types: - closed - opened @@ -68,7 +68,7 @@ jobs: git config --global user.email ${{ secrets.WSO2_BOT_EMAIL }} - name: checkout pull request and merge. shell: sh - if: github.event_name == 'pull_request_target' && github.event.action == 'opened' || github.event.action == 'synchronize' + if: github.event_name == 'pull_request' && github.event.action == 'opened' || github.event.action == 'synchronize' run: | cd apk-repo gh pr checkout ${{ github.event.number }} -b pr-${{ github.event.number }} @@ -84,7 +84,7 @@ jobs: cd apk-repo/ratelimiter ./gradlew build - name: Run Gradle Build - if: github.event_name == 'pull_request_target' && github.event.action == 'closed' && github.event.pull_request.merged == true + if: github.event_name == 'pull_request' && github.event.action == 'closed' && github.event.pull_request.merged == true run: | cd apk-repo/ratelimiter ./gradlew docker_push -Pdocker_organization=${{ secrets.DOCKER_ORGANIZATION }} -Pdocker_username=${{ secrets.DOCKER_USERNAME }} -Pdocker_password=${{ secrets.DOCKER_PASSWORD }} -Pimage_version=latest -PmultiArch=true diff --git a/workflows/router-release.yml b/workflows/router-release.yml index 19757fcf2..4b3cf1747 100644 --- a/workflows/router-release.yml +++ b/workflows/router-release.yml @@ -29,7 +29,7 @@ on: next_version: type: string description: "Next Development Version" - pull_request_target: + pull_request: types: - closed - opened @@ -61,7 +61,7 @@ jobs: git config --global user.email ${{ secrets.WSO2_BOT_EMAIL }} - name: checkout pull request and merge. shell: sh - if: github.event_name == 'pull_request_target' && github.event.action == 'opened' || github.event.action == 'synchronize' + if: github.event_name == 'pull_request' && github.event.action == 'opened' || github.event.action == 'synchronize' run: | cd apk-repo gh pr checkout ${{ github.event.number }} -b pr-${{ github.event.number }} @@ -78,7 +78,7 @@ jobs: cd apk-repo/gateway/router ./gradlew build - name: Run Gradle Build - if: github.event_name == 'pull_request_target' && github.event.action == 'closed' && github.event.pull_request.merged == true + if: github.event_name == 'pull_request' && github.event.action == 'closed' && github.event.pull_request.merged == true run: | cd apk-repo/gateway/router ./gradlew docker_push -Pdocker_organization=${{ secrets.DOCKER_ORGANIZATION }} -Pdocker_username=${{ secrets.DOCKER_USERNAME }} -Pdocker_password=${{ secrets.DOCKER_PASSWORD }} -Pimage_version=latest -PmultiArch=true diff --git a/workflows/run-integration-tests.yml b/workflows/run-integration-tests.yml index b12f90d89..7bddcbd4e 100644 --- a/workflows/run-integration-tests.yml +++ b/workflows/run-integration-tests.yml @@ -1,7 +1,7 @@ name: Run Gateway Integration Tests. on: workflow_dispatch: - pull_request_target: + pull_request: types: - closed - opened @@ -43,7 +43,7 @@ jobs: git config --global user.email ${{ secrets.WSO2_BOT_EMAIL }} - name: checkout pull request and merge. shell: sh - if: github.event_name == 'pull_request_target' && github.event.action == 'opened' || github.event.action == 'synchronize' + if: github.event_name == 'pull_request' && github.event.action == 'opened' || github.event.action == 'synchronize' run: | cd apk-repo gh pr checkout ${{ github.event.number }} -b pr-${{ github.event.number }}