Skip to content

Commit c13f779

Browse files
committed
chore: rollback to ci github token
1 parent 3d6ad3a commit c13f779

File tree

4 files changed

+2
-112
lines changed

4 files changed

+2
-112
lines changed

.github/workflows/auto-merge-generated-prs.yml

Lines changed: 0 additions & 67 deletions
This file was deleted.

.github/workflows/sdk_generation.yaml

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -18,28 +18,14 @@ permissions:
1818
schedule:
1919
- cron: 0 0 * * *
2020
jobs:
21-
generate-token:
22-
runs-on: ubuntu-latest
23-
outputs:
24-
token: ${{ steps.app-token.outputs.token }}
25-
steps:
26-
- name: Generate GitHub App Token
27-
id: app-token
28-
uses: actions/create-github-app-token@v1
29-
with:
30-
app-id: ${{ secrets.GH_CI_BOT_APP_ID }}
31-
private-key: ${{ secrets.GH_CI_BOT_APP_PRIVATE_KEY }}
32-
owner: apideck-io
33-
3421
generate:
35-
needs: generate-token
3622
uses: speakeasy-api/sdk-generation-action/.github/workflows/workflow-executor.yaml@v15
3723
with:
3824
force: ${{ github.event.inputs.force }}
3925
mode: pr
4026
set_version: ${{ github.event.inputs.set_version }}
4127
speakeasy_version: latest
4228
secrets:
43-
github_access_token: ${{ needs.generate-token.outputs.token }}
29+
github_access_token: ${{ secrets.GITHUB_TOKEN }}
4430
npm_token: ${{ secrets.NPM_TOKEN }}
4531
speakeasy_api_key: ${{ secrets.SPEAKEASY_API_KEY }}

.github/workflows/sdk_publish.yaml

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -13,25 +13,10 @@ permissions:
1313
- .speakeasy/gen.lock
1414
workflow_dispatch: {}
1515
jobs:
16-
generate-token:
17-
runs-on: ubuntu-latest
18-
outputs:
19-
token: ${{ steps.app-token.outputs.token }}
20-
steps:
21-
- name: Generate GitHub App Token
22-
id: app-token
23-
uses: actions/create-github-app-token@v1
24-
with:
25-
app-id: ${{ secrets.GH_CI_BOT_APP_ID }}
26-
private-key: ${{ secrets.GH_CI_BOT_APP_PRIVATE_KEY }}
27-
owner: apideck-io
28-
2916
publish:
30-
needs: generate-token
3117
uses: speakeasy-api/sdk-generation-action/.github/workflows/sdk-publish.yaml@v15
3218
with:
3319
target: apideck
3420
secrets:
35-
github_access_token: ${{ needs.generate-token.outputs.token }}
36-
npm_token: ${{ secrets.NPM_TOKEN }}
21+
github_access_token: ${{ secrets.GITHUB_TOKEN }}
3722
speakeasy_api_key: ${{ secrets.SPEAKEASY_API_KEY }}

.github/workflows/sdk_test.yaml

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -17,21 +17,7 @@ permissions:
1717
description: Provided SDK target to run tests for, (all) is valid
1818
type: string
1919
jobs:
20-
generate-token:
21-
runs-on: ubuntu-latest
22-
outputs:
23-
token: ${{ steps.app-token.outputs.token }}
24-
steps:
25-
- name: Generate GitHub App Token
26-
id: app-token
27-
uses: actions/create-github-app-token@v1
28-
with:
29-
app-id: ${{ secrets.GH_CI_BOT_APP_ID }}
30-
private-key: ${{ secrets.GH_CI_BOT_APP_PRIVATE_KEY }}
31-
owner: apideck-io
32-
3320
test:
34-
needs: generate-token
3521
uses: speakeasy-api/sdk-generation-action/.github/workflows/sdk-test.yaml@v15
3622
with:
3723
target: ${{ github.event.inputs.target || 'apideck' }}

0 commit comments

Comments
 (0)