Skip to content

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

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.yml
index 6105486643..2a2c96fa60 100644
--- a/.github/workflows/CI-pr.yml
+++ b/.github/workflows/CI-pr.yml
@@ -28,9 +28,11 @@ jobs:
- name: Generate a token
if: ${{ 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 token
if: ${{ 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 fork
diff --git a/.github/workflows/api-migrations-compatibility.yml b/.github/workflows/api-migrations-compatibility.yml
index 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@v7
with:
fetch-depth: 0
@@ -125,7 +125,7 @@ jobs:
steps:
- name: Checkout repository
- uses: actions/checkout@v5
+ uses: actions/checkout@v7
with:
fetch-depth: 0
diff --git a/.github/workflows/archive/connector-sanity-tests.yml b/.github/workflows/archive/connector-sanity-tests.yml
index 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 Rust
uses: dtolnay/rust-toolchain@master
diff --git a/.github/workflows/archive/connector-ui-sanity-tests.yml b/.github/workflows/archive/connector-ui-sanity-tests.yml
index 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 repository
if: ${{ (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 Decrypt
if: ${{ (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.yml
index 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 token
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
- uses: actions/checkout@v6
+ uses: actions/checkout@v7
with:
fetch-depth: 0
token: ${{ steps.generate_token.outputs.token }}
diff --git a/.github/workflows/create-hotfix-tag.yml b/.github/workflows/create-hotfix-tag.yml
index 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 token
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
- uses: actions/checkout@v6
+ uses: actions/checkout@v7
with:
fetch-depth: 0
token: ${{ steps.generate_token.outputs.token }}
diff --git a/.github/workflows/cypress-tests-runner.yml b/.github/workflows/cypress-tests-runner.yml
index 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 token
if: ${{ github.event.pull_request.head.repo.full_name == github.event.pull_request.base.repo.full_name }}
- uses: actions/checkout@v6
+ uses: actions/checkout@v7
with:
fetch-depth: 0
ref: ${{ github.event.pull_request.head.ref }}
@@ -64,7 +64,7 @@ jobs:
- name: Checkout repository for fork
if: ${{ 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.js
uses: actions/setup-node@v6
@@ -165,7 +165,7 @@ jobs:
- name: Checkout repository
if: ${{ env.RUN_TESTS == 'true' }}
- uses: actions/checkout@v6
+ uses: actions/checkout@v7
- name: Install mold linker
if: ${{ env.RUN_TESTS == 'true' }}
@@ -322,7 +322,7 @@ jobs:
- name: Checkout repository
if: ${{ env.RUN_TESTS == 'true' }}
- uses: actions/checkout@v6
+ uses: actions/checkout@v7
- name: Install Rust
if: ${{ env.RUN_TESTS == 'true' }}
@@ -605,7 +605,7 @@ jobs:
steps:
- name: Checkout repository
- uses: actions/checkout@v6
+ uses: actions/checkout@v7
- name: Install Rust
uses: dtolnay/rust-toolchain@master
@@ -882,7 +882,7 @@ jobs:
- name: Checkout repository
if: ${{ env.RUN_TESTS == 'true' }}
- uses: actions/checkout@v6
+ uses: actions/checkout@v7
- name: Install Rust
if: ${{ env.RUN_TESTS == 'true' }}
@@ -1315,7 +1315,7 @@ jobs:
steps:
- name: Checkout repository
- uses: actions/checkout@v6
+ uses: actions/checkout@v7
- name: Install Rust
uses: dtolnay/rust-toolchain@master
@@ -1510,7 +1510,7 @@ jobs:
- name: Checkout repository
if: ${{ env.RUN_TESTS == 'true' }}
- uses: actions/checkout@v6
+ uses: actions/checkout@v7
- name: Mask S3 cache location in job logs
shell: bash
@@ -1738,7 +1738,7 @@ jobs:
- name: Checkout repository
if: ${{ env.RUN_TESTS == 'true' }}
- uses: actions/checkout@v6
+ uses: actions/checkout@v7
- name: Download Encrypted TOML from S3 and Decrypt
if: ${{ env.RUN_TESTS == 'true' }}
diff --git a/.github/workflows/hotfix-pr-check.yml b/.github/workflows/hotfix-pr-check.yml
index 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 jq
shell: bash
diff --git a/.github/workflows/migration-check.yaml b/.github/workflows/migration-check.yaml
index 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 Rust
uses: dtolnay/rust-toolchain@master
diff --git a/.github/workflows/nix.yaml b/.github/workflows/nix.yaml
index 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.yml
index 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 Decrypt
if: ${{ ((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.yml
index 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 token
id: generate_app_token
if: ${{ 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 token
id: 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.yml
index 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-runners
steps:
- name: Checkout repository
- uses: actions/checkout@v6
+ uses: actions/checkout@v7
- name: Store PR title in a file
shell: bash
diff --git a/.github/workflows/release-nightly-version-reusable.yml b/.github/workflows/release-nightly-version-reusable.yml
index 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 tag
on:
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 App
required: true
outputs:
tag:
@@ -28,11 +31,20 @@ jobs:
runs-on: ubuntu-latest
steps:
+ - 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@v7
with:
fetch-depth: 0
- token: ${{ secrets.token }}
+ token: ${{ steps.generate_token.outputs.token }}
- name: Check if the workflow is run on an allowed branch
shell: bash
@@ -142,8 +154,8 @@ jobs:
- name: Set git configuration
shell: bash
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, tag and push generated changelog
shell: bash
diff --git a/.github/workflows/release-nightly-version.yml b/.github/workflows/release-nightly-version.yml
index 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-latest
steps:
+ - 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@v7
with:
fetch-depth: 0
- token: ${{ secrets.AUTO_RELEASE_PAT }}
+ token: ${{ steps.generate_token.outputs.token }}
- name: Check if the workflow is run on an allowed branch
shell: bash
@@ -78,8 +87,8 @@ jobs:
shell: bash
if: ${{ 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 modified
shell: bash
@@ -96,4 +105,5 @@ jobs:
needs:
- update-postman-collections
secrets:
- 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.yml
index 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 token
id: 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@v7
with:
fetch-depth: 0
diff --git a/.github/workflows/validate-openapi-spec.yml b/.github/workflows/validate-openapi-spec.yml
index 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 token
if: ${{ 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 fork
if: ${{ (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
with:
ref: ${{ github.event.pull_request.head.ref }}
repository: ${{ github.event.pull_request.head.repo.full_name }}
- name: Checkout PR with token
if: ${{ (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
with:
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 commit
if: ${{ github.event_name == 'merge_group' }}
- uses: actions/checkout@v6
+ uses: actions/checkout@v7
with:
ref: ${{ github.event.merge_group.head_sha }}
diff --git a/.github/workflows/wasm-bulild-check.yml b/.github/workflows/wasm-bulild-check.yml
index 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 Rust
uses: dtolnay/rust-toolchain@master