Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(IDX): replace PAT with GitHub App #3689

Open
wants to merge 8 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion .github/workflows/auto-format.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,19 @@ jobs:
runs-on: ubuntu-24.04

steps:
- name: Create GitHub App Token
uses: actions/create-github-app-token@v1
id: app-token
with:
app-id: ${{ vars.PR_AUTOMATION_BOT_PUBLIC_APP_ID }}
private-key: ${{ secrets.PR_AUTOMATION_BOT_PUBLIC_PRIVATE_KEY }}

- name: Checkout code
uses: actions/checkout@v4
with:
repository: ${{ github.event.pull_request.head.repo.full_name }}
ref: ${{ github.event.pull_request.head.ref }}
token: ${{ secrets.GIX_CREATE_PR_PAT }}
token: ${{ steps.app-token.outputs.token }}

- name: Prepare
uses: ./.github/actions/prepare
Expand Down
8 changes: 7 additions & 1 deletion .github/workflows/auto-update-i18n.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,18 @@ jobs:
runs-on: ubuntu-24.04

steps:
- name: Create GitHub App Token
uses: actions/create-github-app-token@v1
id: app-token
with:
app-id: ${{ vars.PR_AUTOMATION_BOT_PUBLIC_APP_ID }}
private-key: ${{ secrets.PR_AUTOMATION_BOT_PUBLIC_PRIVATE_KEY }}
- name: Checkout code
uses: actions/checkout@v4
with:
repository: ${{ github.event.pull_request.head.repo.full_name }}
ref: ${{ github.event.pull_request.head.ref }}
token: ${{ secrets.GIX_CREATE_PR_PAT }}
token: ${{ steps.app-token.outputs.token }}

- name: Prepare
uses: ./.github/actions/prepare
Expand Down
8 changes: 7 additions & 1 deletion .github/workflows/bump-version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,12 @@ jobs:
runs-on: ubuntu-24.04

steps:
- name: Create GitHub App Token
uses: actions/create-github-app-token@v1
id: app-token
with:
app-id: ${{ vars.PR_AUTOMATION_BOT_PUBLIC_APP_ID }}
private-key: ${{ secrets.PR_AUTOMATION_BOT_PUBLIC_PRIVATE_KEY }}

- name: Checkout repository
uses: actions/checkout@v4
Expand All @@ -43,7 +49,7 @@ jobs:
- name: Create Pull Request
uses: ./.github/actions/create-pr
with:
token: ${{ secrets.GIX_CREATE_PR_PAT }}
token: ${{ steps.app-token.outputs.token }}
branch: "chore(release)/v${{ steps.bump_version.outputs.new_version }}"
title: "chore(release): v${{ steps.bump_version.outputs.new_version }}"
body: |
Expand Down
8 changes: 7 additions & 1 deletion .github/workflows/frontend-remove-unused-components.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,12 @@ jobs:
runs-on: ubuntu-24.04

steps:
- name: Create GitHub App Token
uses: actions/create-github-app-token@v1
id: app-token
with:
app-id: ${{ vars.PR_AUTOMATION_BOT_PUBLIC_APP_ID }}
private-key: ${{ secrets.PR_AUTOMATION_BOT_PUBLIC_PRIVATE_KEY }}
- name: Checkout
uses: actions/checkout@v4
- name: Prepare
Expand Down Expand Up @@ -37,7 +43,7 @@ jobs:
if: env.CHANGES_DETECTED == 'true'
uses: ./.github/actions/create-pr
with:
token: ${{ secrets.GIX_CREATE_PR_PAT }}
token: ${{ steps.app-token.outputs.token }}
branch: bot-frontend-remove-unused-svelte-files
title: 'chore(frontend): Remove Unused Svelte Files'
body: |
Expand Down
8 changes: 7 additions & 1 deletion .github/workflows/tag-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,12 @@ jobs:
runs-on: ubuntu-24.04

steps:
- name: Create GitHub App Token
uses: actions/create-github-app-token@v1
id: app-token
with:
app-id: ${{ vars.PR_AUTOMATION_BOT_PUBLIC_APP_ID }}
private-key: ${{ secrets.PR_AUTOMATION_BOT_PUBLIC_PRIVATE_KEY }}

- name: Checkout repository
uses: actions/checkout@v4
Expand All @@ -37,4 +43,4 @@ jobs:
uses: release-drafter/release-drafter@v6
with:
version: "v${{ steps.get_version.outputs.version }}"
token: ${{ secrets.GIX_CREATE_PR_PAT }}
token: ${{ steps.app-token.outputs.token }}
10 changes: 8 additions & 2 deletions .github/workflows/update-rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,12 @@ jobs:
rust-update:
runs-on: ubuntu-24.04
steps:
- name: Create GitHub App Token
uses: actions/create-github-app-token@v1
id: app-token
with:
app-id: ${{ vars.PR_AUTOMATION_BOT_PUBLIC_APP_ID }}
private-key: ${{ secrets.PR_AUTOMATION_BOT_PUBLIC_PRIVATE_KEY }}
- uses: actions/checkout@v4

# First, check rust GitHub releases for a new version. We assume that the
Expand Down Expand Up @@ -51,8 +57,8 @@ jobs:
if: ${{ steps.update.outputs.updated == '1' }}
uses: ./.github/actions/create-pr
with:
token: ${{ secrets.GIX_CREATE_PR_PAT }}
token: ${{ steps.app-token.outputs.token }}
branch: bot-rust-update
title: 'build(backend): Update Rust version'
body: |
A new Rust version available.
A new Rust version available.
9 changes: 8 additions & 1 deletion .github/workflows/update-snapshots.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,13 @@ jobs:
echo "This workflow should not be triggered with workflow_dispatch on main"
exit 1

- name: Create GitHub App Token
uses: actions/create-github-app-token@v1
id: app-token
with:
app-id: ${{ vars.PR_AUTOMATION_BOT_PUBLIC_APP_ID }}
private-key: ${{ secrets.PR_AUTOMATION_BOT_PUBLIC_PRIVATE_KEY }}

- name: Checkout
if: ${{ github.event_name != 'pull_request' }}
uses: actions/checkout@v4
Expand All @@ -46,7 +53,7 @@ jobs:
with:
repository: ${{ github.event.pull_request.head.repo.full_name }}
ref: ${{ github.event.pull_request.head.ref }}
token: ${{ secrets.GIX_CREATE_PR_PAT }}
token: ${{ steps.app-token.outputs.token }}


- name: Deploy the backend
Expand Down
16 changes: 14 additions & 2 deletions .github/workflows/update-tokens.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,12 @@ jobs:
update-tokens-sns:
runs-on: ubuntu-24.04
steps:
- name: Create GitHub App Token
uses: actions/create-github-app-token@v1
id: app-token
with:
app-id: ${{ vars.PR_AUTOMATION_BOT_PUBLIC_APP_ID }}
private-key: ${{ secrets.PR_AUTOMATION_BOT_PUBLIC_PRIVATE_KEY }}
- name: Checkout
uses: actions/checkout@v4
- name: Prepare
Expand All @@ -28,7 +34,7 @@ jobs:
if: env.CHANGES_DETECTED == 'true'
uses: ./.github/actions/create-pr
with:
token: ${{ secrets.GIX_CREATE_PR_PAT }}
token: ${{ steps.app-token.outputs.token }}
branch: bot-tokens-sns-update
title: 'feat(frontend): Update Sns Tokens'
body: |
Expand All @@ -37,6 +43,12 @@ jobs:
update-tokens-ckerc20:
runs-on: ubuntu-24.04
steps:
- name: Create GitHub App Token
uses: actions/create-github-app-token@v1
id: app-token
with:
app-id: ${{ vars.PR_AUTOMATION_BOT_PUBLIC_APP_ID }}
private-key: ${{ secrets.PR_AUTOMATION_BOT_PUBLIC_PRIVATE_KEY }}
- name: Checkout
uses: actions/checkout@v4
- name: Prepare
Expand All @@ -58,7 +70,7 @@ jobs:
if: env.CHANGES_DETECTED == 'true'
uses: ./.github/actions/create-pr
with:
token: ${{ secrets.GIX_CREATE_PR_PAT }}
token: ${{ steps.app-token.outputs.token }}
branch: bot-tokens-ckerc20-update
title: 'feat(frontend): Update ckErc20 Tokens'
body: |
Expand Down