Scheduling infrastructure for absolutely everyone.
chore: replace GH_ACCESS_TOKEN with GitHub App token (#25518)
Alex van Andel45fcabef8c4f
diff --git a/.github/workflows/cleanup-report.yml b/.github/workflows/cleanup-report.ymlindex 50f0716ee0b..e4012ca2ea2 100644--- a/.github/workflows/cleanup-report.yml+++ b/.github/workflows/cleanup-report.yml@@ -11,12 +11,20 @@ jobs:cleanup-report:runs-on: ubuntu-lateststeps:+ - name: Generate GitHub App token+ id: generate-token+ uses: actions/create-github-app-token@7e473efe3cb98aa54f8d4bac15400b15fad77d94+ with:+ app-id: ${{ secrets.CI_CAL_APP_ID }}+ private-key: ${{ secrets.CI_CAL_APP_PRIVATE_KEY }}+ repositories: 'test-results-2'+- name: Checkout GitHub Pages Branchuses: actions/checkout@v4with:repository: calcom/test-results-2ref: gh-pages- token: ${{ secrets.GH_ACCESS_TOKEN }}+ token: ${{ steps.generate-token.outputs.token }}- name: Set Git Userrun: |diff --git a/.github/workflows/cleanup.yml b/.github/workflows/cleanup.ymlindex 501c88c769e..6e7fd6140ee 100644--- a/.github/workflows/cleanup.yml+++ b/.github/workflows/cleanup.yml@@ -22,12 +22,20 @@ jobs:# Contains all reports for deleted branchBRANCH_REPORTS_DIR: reports/${{ github.event.ref }}steps:+ - name: Generate GitHub App token+ id: generate-token+ uses: actions/create-github-app-token@7e473efe3cb98aa54f8d4bac15400b15fad77d94+ with:+ app-id: ${{ secrets.CI_CAL_APP_ID }}+ private-key: ${{ secrets.CI_CAL_APP_PRIVATE_KEY }}+ repositories: 'test-results-2'+- name: Checkout GitHub Pages Branch- uses: actions/checkout@v2+ uses: actions/checkout@v4with:repository: calcom/test-results-2ref: gh-pages- token: ${{ secrets.GH_ACCESS_TOKEN }}+ token: ${{ steps.generate-token.outputs.token }}- name: Set Git User# see: https://github.com/actions/checkout/issues/13#issuecomment-724415212run: |diff --git a/.github/workflows/draft-release.yml b/.github/workflows/draft-release.ymlindex 40ab791c4ef..d56a64542a9 100644--- a/.github/workflows/draft-release.yml+++ b/.github/workflows/draft-release.yml@@ -17,13 +17,20 @@ jobs:runs-on: ubuntu-lateststeps:-+ - name: Generate GitHub App token+ id: generate-token+ uses: actions/create-github-app-token@7e473efe3cb98aa54f8d4bac15400b15fad77d94+ with:+ app-id: ${{ secrets.CI_CAL_APP_ID }}+ private-key: ${{ secrets.CI_CAL_APP_PRIVATE_KEY }}+ repositories: 'cal.com'+- name: Checkout codeuses: actions/checkout@v4with:fetch-depth: 0ref: 'main'- token: ${{ secrets.GH_ACCESS_TOKEN }}+ token: ${{ steps.generate-token.outputs.token }}- name: Configure gitrun: |diff --git a/.github/workflows/i18n.yml b/.github/workflows/i18n.ymlindex b3b0d99c13a..b3118bc5b27 100644--- a/.github/workflows/i18n.yml+++ b/.github/workflows/i18n.yml@@ -16,6 +16,14 @@ jobs:contents: writepull-requests: writesteps:+ - name: Generate GitHub App token+ id: generate-token+ uses: actions/create-github-app-token@7e473efe3cb98aa54f8d4bac15400b15fad77d94+ with:+ app-id: ${{ secrets.CI_CAL_APP_ID }}+ private-key: ${{ secrets.CI_CAL_APP_PRIVATE_KEY }}+ repositories: 'cal.com'+- uses: actions/checkout@v4- uses: actions/setup-node@v4with:@@ -23,7 +31,7 @@ jobs:cache: 'npm'- uses: lingodotdev/lingo.dev@mainenv:- GH_TOKEN: ${{ secrets.GH_ACCESS_TOKEN }}+ GH_TOKEN: ${{ steps.generate-token.outputs.token }}with:api-key: ${{ secrets.CI_LINGO_DOT_DEV_API_KEY }}pull-request: truediff --git a/.github/workflows/post-release.yml b/.github/workflows/post-release.ymlindex 252df829c31..ddcef9f5ce8 100644--- a/.github/workflows/post-release.yml+++ b/.github/workflows/post-release.yml@@ -6,16 +6,27 @@ on:tags:- "*"+permissions:+ contents: write+jobs:release:runs-on: ubuntu-lateststeps:+ - name: Generate GitHub App token+ id: generate-token+ uses: actions/create-github-app-token@7e473efe3cb98aa54f8d4bac15400b15fad77d94+ with:+ app-id: ${{ secrets.CI_CAL_APP_ID }}+ private-key: ${{ secrets.CI_CAL_APP_PRIVATE_KEY }}+ repositories: 'cal.com'+- name: Checkout codeuses: actions/checkout@v4with:fetch-depth: 0ref: 'main'- token: ${{ secrets.GH_ACCESS_TOKEN }}+ token: ${{ steps.generate-token.outputs.token }}- name: Configure gitrun: |diff --git a/.github/workflows/publish-report.yml b/.github/workflows/publish-report.ymlindex decfc26cf94..f3af9ee335f 100644--- a/.github/workflows/publish-report.yml+++ b/.github/workflows/publish-report.yml@@ -13,12 +13,20 @@ jobs:HTML_REPORT_URL_PATH: reports/${{ github.head_ref }}/${{ github.run_id }}/${{ github.run_attempt }}BRANCH_REPORTS_DIR: reports/${{ github.head_ref }}steps:+ - name: Generate GitHub App token+ id: generate-token+ uses: actions/create-github-app-token@7e473efe3cb98aa54f8d4bac15400b15fad77d94+ with:+ app-id: ${{ secrets.CI_CAL_APP_ID }}+ private-key: ${{ secrets.CI_CAL_APP_PRIVATE_KEY }}+ repositories: 'test-results-2'+- name: Checkout GitHub Pages Branchuses: actions/checkout@v4with:repository: calcom/test-results-2ref: gh-pages- token: ${{ secrets.GH_ACCESS_TOKEN }}+ token: ${{ steps.generate-token.outputs.token }}- name: Set Git User# see: https://github.com/actions/checkout/issues/13#issuecomment-724415212run: |