Skip to content

Commit 99f3112

Browse files
authored
fix(workflow): Replace getSantry with dedicated GH app for api schema workflow (#17155)
We added the new default rulesets that requires all commit to go through PRs and that breaks this workflow. Added the following changes to fix it - created a new dedicated github app for this - added the github app to allowlist in the ruleset - update the workflow to use the new github app instead of `getSantry` - added the app-id and private key through org secrets and variables - update the git commit info to use the github app
1 parent 31b8525 commit 99f3112

1 file changed

Lines changed: 7 additions & 4 deletions

File tree

.github/workflows/bump-api-schema-sha.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,11 @@ jobs:
1616
id: token
1717
uses: actions/create-github-app-token@29824e69f54612133e76f7eaac726eef6c875baf # v2.2.1
1818
with:
19-
app-id: ${{ vars.SENTRY_INTERNAL_APP_ID }}
20-
private-key: ${{ secrets.SENTRY_INTERNAL_APP_PRIVATE_KEY }}
19+
app-id: ${{ vars.SENTRY_API_SCHEMA_UPDATER_APP_CLIENT_ID }}
20+
private-key: ${{ secrets.SENTRY_API_SCHEMA_UPDATER_PRIVATE_KEY }}
21+
repositories: |
22+
sentry-docs
23+
sentry-api-schema
2124
- name: 'Bump API Schema SHA'
2225
shell: bash
2326
env:
@@ -28,8 +31,8 @@ jobs:
2831
run: |
2932
set -euo pipefail
3033
31-
git config user.email "bot@getsentry.com"
32-
git config user.name "openapi-getsentry-bot"
34+
git config user.email "271575301+sentry-api-schema-updater[bot]@users.noreply.github.com"
35+
git config user.name "sentry-api-schema-updater[bot]"
3336
3437
filepath="src/build/resolveOpenAPI.ts"
3538

0 commit comments

Comments
 (0)