Open source, composable payments platform | PCI compliant | SaaS and Self-host options | Enables connectivity to multiple payment, payout, fraud, vault and tokenization providers | Uplifts authorization with intelligent routing and revenue recovery | Reduce payment processing costs with cost observability | Reduces payment ops with reconciliation
Rust adyenbeginner-friendlyfeaturedfinancefintechhacktoberfesthigh-performanceopen-sourceorchestrationpaymentpayment-gatewaypayment-integrationpayment-processingpaymentspayments-platformrestful-apirustsdkstripeworks-with-react
ci(workflows): use hyperswitch-bot app token instead of PAT for nightly tag (#14989)
Sai Harsha Vardhan7025cb0a0e87
diff --git a/.github/workflows/CI-pr.yml b/.github/workflows/CI-pr.ymlindex 6105486643..2a2c96fa60 100644--- a/.github/workflows/CI-pr.yml+++ b/.github/workflows/CI-pr.yml@@ -28,9 +28,11 @@ jobs:- name: Generate a tokenif: ${{ github.event.pull_request.head.repo.full_name == github.event.pull_request.base.repo.full_name }}id: generate_token- uses: actions/create-github-app-token@v1+ uses: actions/create-github-app-token@v3+ env:+ NODE_USE_ENV_PROXY: "1"with:- app-id: ${{ secrets.HYPERSWITCH_BOT_APP_ID }}+ client-id: ${{ secrets.HYPERSWITCH_BOT_APP_ID }}private-key: ${{ secrets.HYPERSWITCH_BOT_APP_PRIVATE_KEY }}- name: Checkout repository with token@@ -169,9 +171,11 @@ jobs:- name: Generate a tokenif: ${{ github.event.pull_request.head.repo.full_name == github.event.pull_request.base.repo.full_name }}id: generate_token- uses: actions/create-github-app-token@v1+ uses: actions/create-github-app-token@v3+ env:+ NODE_USE_ENV_PROXY: "1"with:- app-id: ${{ secrets.HYPERSWITCH_BOT_APP_ID }}+ client-id: ${{ secrets.HYPERSWITCH_BOT_APP_ID }}private-key: ${{ secrets.HYPERSWITCH_BOT_APP_PRIVATE_KEY }}- name: Checkout repository for forkdiff --git a/.github/workflows/api-migrations-compatibility.yml b/.github/workflows/api-migrations-compatibility.ymlindex 14d45c4479..322f6ae37f 100644--- a/.github/workflows/api-migrations-compatibility.yml+++ b/.github/workflows/api-migrations-compatibility.yml@@ -32,7 +32,7 @@ jobs:steps:- name: Checkout repository- uses: actions/checkout@v5+ uses: actions/checkout@v7with:fetch-depth: 0@@ -125,7 +125,7 @@ jobs:steps:- name: Checkout repository- uses: actions/checkout@v5+ uses: actions/checkout@v7with:fetch-depth: 0diff --git a/.github/workflows/archive/connector-sanity-tests.yml b/.github/workflows/archive/connector-sanity-tests.ymlindex e05cee58b7..bbd388cfd8 100644--- a/.github/workflows/archive/connector-sanity-tests.yml+++ b/.github/workflows/archive/connector-sanity-tests.yml@@ -77,7 +77,7 @@ jobs:steps:- name: Checkout repository- uses: actions/checkout@v6+ uses: actions/checkout@v7- name: Install Rustuses: dtolnay/rust-toolchain@masterdiff --git a/.github/workflows/archive/connector-ui-sanity-tests.yml b/.github/workflows/archive/connector-ui-sanity-tests.ymlindex 644255a622..1be5273f01 100644--- a/.github/workflows/archive/connector-ui-sanity-tests.yml+++ b/.github/workflows/archive/connector-ui-sanity-tests.yml@@ -80,7 +80,7 @@ jobs:- name: Checkout repositoryif: ${{ (github.event_name == 'pull_request') && (github.event.pull_request.head.repo.full_name == github.event.pull_request.base.repo.full_name) }}- uses: actions/checkout@v6+ uses: actions/checkout@v7- name: Download Encrypted TOML from S3 and Decryptif: ${{ (github.event_name == 'pull_request') && (github.event.pull_request.head.repo.full_name == github.event.pull_request.base.repo.full_name) }}diff --git a/.github/workflows/create-hotfix-branch.yml b/.github/workflows/create-hotfix-branch.ymlindex f400f71d1f..f30b34cdfe 100644--- a/.github/workflows/create-hotfix-branch.yml+++ b/.github/workflows/create-hotfix-branch.yml@@ -10,13 +10,15 @@ jobs:steps:- name: Generate a tokenid: generate_token- uses: actions/create-github-app-token@v1+ uses: actions/create-github-app-token@v3+ env:+ NODE_USE_ENV_PROXY: "1"with:- app-id: ${{ secrets.HYPERSWITCH_BOT_APP_ID }}+ client-id: ${{ secrets.HYPERSWITCH_BOT_APP_ID }}private-key: ${{ secrets.HYPERSWITCH_BOT_APP_PRIVATE_KEY }}- name: Checkout repository- uses: actions/checkout@v6+ uses: actions/checkout@v7with:fetch-depth: 0token: ${{ steps.generate_token.outputs.token }}diff --git a/.github/workflows/create-hotfix-tag.yml b/.github/workflows/create-hotfix-tag.ymlindex 9d74d7ed6a..5031fa8dee 100644--- a/.github/workflows/create-hotfix-tag.yml+++ b/.github/workflows/create-hotfix-tag.yml@@ -10,13 +10,15 @@ jobs:steps:- name: Generate a tokenid: generate_token- uses: actions/create-github-app-token@v1+ uses: actions/create-github-app-token@v3+ env:+ NODE_USE_ENV_PROXY: "1"with:- app-id: ${{ secrets.HYPERSWITCH_BOT_APP_ID }}+ client-id: ${{ secrets.HYPERSWITCH_BOT_APP_ID }}private-key: ${{ secrets.HYPERSWITCH_BOT_APP_PRIVATE_KEY }}- name: Checkout repository- uses: actions/checkout@v6+ uses: actions/checkout@v7with:fetch-depth: 0token: ${{ steps.generate_token.outputs.token }}diff --git a/.github/workflows/cypress-tests-runner.yml b/.github/workflows/cypress-tests-runner.ymlindex 1bf0bd593b..b0631ade11 100644--- a/.github/workflows/cypress-tests-runner.yml+++ b/.github/workflows/cypress-tests-runner.yml@@ -51,12 +51,12 @@ jobs:# v3 refuses to run behind hypersage-runners' proxy without this.NODE_USE_ENV_PROXY: "1"with:- app-id: ${{ secrets.HYPERSWITCH_BOT_APP_ID }}+ client-id: ${{ secrets.HYPERSWITCH_BOT_APP_ID }}private-key: ${{ secrets.HYPERSWITCH_BOT_APP_PRIVATE_KEY }}- name: Checkout repository with tokenif: ${{ github.event.pull_request.head.repo.full_name == github.event.pull_request.base.repo.full_name }}- uses: actions/checkout@v6+ uses: actions/checkout@v7with:fetch-depth: 0ref: ${{ github.event.pull_request.head.ref }}@@ -64,7 +64,7 @@ jobs:- name: Checkout repository for forkif: ${{ github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name }}- uses: actions/checkout@v6+ uses: actions/checkout@v7- name: Install Node.jsuses: actions/setup-node@v6@@ -165,7 +165,7 @@ jobs:- name: Checkout repositoryif: ${{ env.RUN_TESTS == 'true' }}- uses: actions/checkout@v6+ uses: actions/checkout@v7- name: Install mold linkerif: ${{ env.RUN_TESTS == 'true' }}@@ -322,7 +322,7 @@ jobs:- name: Checkout repositoryif: ${{ env.RUN_TESTS == 'true' }}- uses: actions/checkout@v6+ uses: actions/checkout@v7- name: Install Rustif: ${{ env.RUN_TESTS == 'true' }}@@ -605,7 +605,7 @@ jobs:steps:- name: Checkout repository- uses: actions/checkout@v6+ uses: actions/checkout@v7- name: Install Rustuses: dtolnay/rust-toolchain@master@@ -882,7 +882,7 @@ jobs:- name: Checkout repositoryif: ${{ env.RUN_TESTS == 'true' }}- uses: actions/checkout@v6+ uses: actions/checkout@v7- name: Install Rustif: ${{ env.RUN_TESTS == 'true' }}@@ -1315,7 +1315,7 @@ jobs:steps:- name: Checkout repository- uses: actions/checkout@v6+ uses: actions/checkout@v7- name: Install Rustuses: dtolnay/rust-toolchain@master@@ -1510,7 +1510,7 @@ jobs:- name: Checkout repositoryif: ${{ env.RUN_TESTS == 'true' }}- uses: actions/checkout@v6+ uses: actions/checkout@v7- name: Mask S3 cache location in job logsshell: bash@@ -1738,7 +1738,7 @@ jobs:- name: Checkout repositoryif: ${{ env.RUN_TESTS == 'true' }}- uses: actions/checkout@v6+ uses: actions/checkout@v7- name: Download Encrypted TOML from S3 and Decryptif: ${{ env.RUN_TESTS == 'true' }}diff --git a/.github/workflows/hotfix-pr-check.yml b/.github/workflows/hotfix-pr-check.ymlindex 6935e07364..2b9a139163 100644--- a/.github/workflows/hotfix-pr-check.yml+++ b/.github/workflows/hotfix-pr-check.yml@@ -19,7 +19,7 @@ jobs:HOTFIX_PR_NEEDS_MAIN_BRANCH_PR_MERGED: ${{ vars.HOTFIX_PR_NEEDS_MAIN_BRANCH_PR_MERGED }}steps:- name: Checkout repository- uses: actions/checkout@v6+ uses: actions/checkout@v7- name: Install jqshell: bashdiff --git a/.github/workflows/migration-check.yaml b/.github/workflows/migration-check.yamlindex daedb726fa..eff1bb2302 100644--- a/.github/workflows/migration-check.yaml+++ b/.github/workflows/migration-check.yaml@@ -45,7 +45,7 @@ jobs:steps:- name: Checkout repository- uses: actions/checkout@v6+ uses: actions/checkout@v7- name: Install Rustuses: dtolnay/rust-toolchain@masterdiff --git a/.github/workflows/nix.yaml b/.github/workflows/nix.yamlindex d5c4cf4482..9385599a65 100644--- a/.github/workflows/nix.yaml+++ b/.github/workflows/nix.yaml@@ -13,5 +13,5 @@ jobs:matrix:system: [x86_64-linux, aarch64-darwin]steps:- - uses: actions/checkout@v6+ - uses: actions/checkout@v7- run: om ci run --extra-access-tokens ${{ secrets.GITHUB_TOKEN }} --systems "${{ matrix.system }}"diff --git a/.github/workflows/postman-collection-runner.yml b/.github/workflows/postman-collection-runner.ymlindex f9dd8bdd4b..b14c985bed 100644--- a/.github/workflows/postman-collection-runner.yml+++ b/.github/workflows/postman-collection-runner.yml@@ -49,7 +49,7 @@ jobs:steps:- name: Repository checkout- uses: actions/checkout@v6+ uses: actions/checkout@v7- name: Download Encrypted TOML from S3 and Decryptif: ${{ ((github.event_name == 'pull_request') && (github.event.pull_request.head.repo.full_name == github.event.pull_request.base.repo.full_name)) || (github.event_name == 'merge_group')}}diff --git a/.github/workflows/pr-convention-checks.yml b/.github/workflows/pr-convention-checks.ymlindex 9b969ecb80..9464cc2b43 100644--- a/.github/workflows/pr-convention-checks.yml+++ b/.github/workflows/pr-convention-checks.yml@@ -69,9 +69,11 @@ jobs:- name: Generate GitHub app tokenid: generate_app_tokenif: ${{ github.event_name == 'pull_request_target' }}- uses: actions/create-github-app-token@v1+ uses: actions/create-github-app-token@v3+ env:+ NODE_USE_ENV_PROXY: "1"with:- app-id: ${{ secrets.HYPERSWITCH_BOT_APP_ID }}+ client-id: ${{ secrets.HYPERSWITCH_BOT_APP_ID }}private-key: ${{ secrets.HYPERSWITCH_BOT_APP_PRIVATE_KEY }}owner: ${{ github.event.repository.owner.login }}@@ -141,9 +143,11 @@ jobs:steps:- name: Generate GitHub app tokenid: generate_app_token- uses: actions/create-github-app-token@v1+ uses: actions/create-github-app-token@v3+ env:+ NODE_USE_ENV_PROXY: "1"with:- app-id: ${{ secrets.HYPERSWITCH_BOT_APP_ID }}+ client-id: ${{ secrets.HYPERSWITCH_BOT_APP_ID }}private-key: ${{ secrets.HYPERSWITCH_BOT_APP_PRIVATE_KEY }}owner: ${{ github.event.repository.owner.login }}diff --git a/.github/workflows/pr-title-spell-check.yml b/.github/workflows/pr-title-spell-check.ymlindex ed18a26be2..b8a1a29e7a 100644--- a/.github/workflows/pr-title-spell-check.yml+++ b/.github/workflows/pr-title-spell-check.yml@@ -13,7 +13,7 @@ jobs:runs-on: hypersage-runnerssteps:- name: Checkout repository- uses: actions/checkout@v6+ uses: actions/checkout@v7- name: Store PR title in a fileshell: bashdiff --git a/.github/workflows/release-nightly-version-reusable.yml b/.github/workflows/release-nightly-version-reusable.ymlindex 8f1d0c56ac..1c3e1213d5 100644--- a/.github/workflows/release-nightly-version-reusable.yml+++ b/.github/workflows/release-nightly-version-reusable.yml@@ -3,8 +3,11 @@ name: Create a nightly tagon:workflow_call:secrets:- token:- description: GitHub token for authenticating with GitHub+ client_id:+ description: Client ID of the GitHub App+ required: true+ app_private_key:+ description: Private key of the GitHub Apprequired: trueoutputs:tag:@@ -28,11 +31,20 @@ jobs:runs-on: ubuntu-lateststeps:+ - name: Generate a token+ id: generate_token+ uses: actions/create-github-app-token@v3+ env:+ NODE_USE_ENV_PROXY: "1"+ with:+ client-id: ${{ secrets.client_id }}+ private-key: ${{ secrets.app_private_key }}+- name: Checkout repository- uses: actions/checkout@v6+ uses: actions/checkout@v7with:fetch-depth: 0- token: ${{ secrets.token }}+ token: ${{ steps.generate_token.outputs.token }}- name: Check if the workflow is run on an allowed branchshell: bash@@ -142,8 +154,8 @@ jobs:- name: Set git configurationshell: bashrun: |- git config --local user.name 'github-actions'- git config --local user.email '41898282+github-actions[bot]@users.noreply.github.com'+ git config --local user.name 'hyperswitch-bot[bot]'+ git config --local user.email '148525504+hyperswitch-bot[bot]@users.noreply.github.com'- name: Commit, tag and push generated changelogshell: bashdiff --git a/.github/workflows/release-nightly-version.yml b/.github/workflows/release-nightly-version.ymlindex dc1b09e288..efcdbbc36a 100644--- a/.github/workflows/release-nightly-version.yml+++ b/.github/workflows/release-nightly-version.yml@@ -27,11 +27,20 @@ jobs:runs-on: ubuntu-lateststeps:+ - name: Generate a token+ id: generate_token+ uses: actions/create-github-app-token@v3+ env:+ NODE_USE_ENV_PROXY: "1"+ with:+ client-id: ${{ secrets.HYPERSWITCH_BOT_APP_ID }}+ private-key: ${{ secrets.HYPERSWITCH_BOT_APP_PRIVATE_KEY }}+- name: Checkout repository- uses: actions/checkout@v6+ uses: actions/checkout@v7with:fetch-depth: 0- token: ${{ secrets.AUTO_RELEASE_PAT }}+ token: ${{ steps.generate_token.outputs.token }}- name: Check if the workflow is run on an allowed branchshell: bash@@ -78,8 +87,8 @@ jobs:shell: bashif: ${{ env.POSTMAN_COLLECTION_FILES_UPDATED == 'true' }}run: |- git config --local user.name 'github-actions'- git config --local user.email '41898282+github-actions[bot]@users.noreply.github.com'+ git config --local user.name 'hyperswitch-bot[bot]'+ git config --local user.email '148525504+hyperswitch-bot[bot]@users.noreply.github.com'- name: Commit and push updated Postman collections if modifiedshell: bash@@ -96,4 +105,5 @@ jobs:needs:- update-postman-collectionssecrets:- token: ${{ secrets.AUTO_RELEASE_PAT }}+ client_id: ${{ secrets.HYPERSWITCH_BOT_APP_ID }}+ app_private_key: ${{ secrets.HYPERSWITCH_BOT_APP_PRIVATE_KEY }}diff --git a/.github/workflows/release-stable-version.yml b/.github/workflows/release-stable-version.ymlindex 506218cd67..6273c26bc4 100644--- a/.github/workflows/release-stable-version.yml+++ b/.github/workflows/release-stable-version.yml@@ -19,13 +19,15 @@ jobs:steps:- name: Generate GitHub app tokenid: generate_app_token- uses: actions/create-github-app-token@v1+ uses: actions/create-github-app-token@v3+ env:+ NODE_USE_ENV_PROXY: "1"with:- app-id: ${{ secrets.HYPERSWITCH_BOT_APP_ID }}+ client-id: ${{ secrets.HYPERSWITCH_BOT_APP_ID }}private-key: ${{ secrets.HYPERSWITCH_BOT_APP_PRIVATE_KEY }}- name: Checkout repository- uses: actions/checkout@v6+ uses: actions/checkout@v7with:fetch-depth: 0diff --git a/.github/workflows/validate-openapi-spec.yml b/.github/workflows/validate-openapi-spec.ymlindex 140760c447..d9fbe555c0 100644--- a/.github/workflows/validate-openapi-spec.yml+++ b/.github/workflows/validate-openapi-spec.yml@@ -19,21 +19,23 @@ jobs:- name: Generate a tokenif: ${{ github.event.pull_request.head.repo.full_name == github.event.pull_request.base.repo.full_name }}id: generate_token- uses: actions/create-github-app-token@v1+ uses: actions/create-github-app-token@v3+ env:+ NODE_USE_ENV_PROXY: "1"with:- app-id: ${{ secrets.HYPERSWITCH_BOT_APP_ID }}+ client-id: ${{ secrets.HYPERSWITCH_BOT_APP_ID }}private-key: ${{ secrets.HYPERSWITCH_BOT_APP_PRIVATE_KEY }}- name: Checkout PR from forkif: ${{ (github.event_name == 'pull_request') && (github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name) }}- uses: actions/checkout@v6+ uses: actions/checkout@v7with:ref: ${{ github.event.pull_request.head.ref }}repository: ${{ github.event.pull_request.head.repo.full_name }}- name: Checkout PR with tokenif: ${{ (github.event_name == 'pull_request') && (github.event.pull_request.head.repo.full_name == github.event.pull_request.base.repo.full_name) }}- uses: actions/checkout@v6+ uses: actions/checkout@v7with:ref: ${{ github.event.pull_request.head.ref }}repository: ${{ github.event.pull_request.head.repo.full_name }}@@ -41,7 +43,7 @@ jobs:- name: Checkout merge group HEAD commitif: ${{ github.event_name == 'merge_group' }}- uses: actions/checkout@v6+ uses: actions/checkout@v7with:ref: ${{ github.event.merge_group.head_sha }}diff --git a/.github/workflows/wasm-bulild-check.yml b/.github/workflows/wasm-bulild-check.ymlindex 13d3e84273..87beb2ac36 100644--- a/.github/workflows/wasm-bulild-check.yml+++ b/.github/workflows/wasm-bulild-check.yml@@ -30,7 +30,7 @@ jobs:steps:- name: Checkout repository- uses: actions/checkout@v6+ uses: actions/checkout@v7- name: Install Rustuses: dtolnay/rust-toolchain@master