Skip to content

Commit 89ad120

Browse files
committed
fix: use org OPENAPI secret for sync workflow
The workflow previously referenced secrets.OPENAPI_SYNC_TOKEN, which does not exist in the org or repo and caused both post-merge runs of 'TinyNode Shared OpenAPI Sync' to fail at the receiver checkout step. Switching to secrets.OPENAPI reuses the already-working org-level secret that rerum_server_nodejs's sync workflows use. TinyNode must be added to that secret's selected-repos list for the sync to succeed.
1 parent c57090d commit 89ad120

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

.github/workflows/shared_openapi_sync.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
with:
2525
repository: cubap/rerum_openapi
2626
ref: main
27-
token: ${{ secrets.OPENAPI_SYNC_TOKEN }}
27+
token: ${{ secrets.OPENAPI }}
2828
path: receiver
2929

3030
- name: Verify receiver stub exists
@@ -36,7 +36,7 @@ jobs:
3636
- name: Create or update sync pull request
3737
uses: peter-evans/create-pull-request@v8
3838
with:
39-
token: ${{ secrets.OPENAPI_SYNC_TOKEN }}
39+
token: ${{ secrets.OPENAPI }}
4040
path: receiver
4141
add-paths: schemas/openapi/tinynode-shared-components.openapi.yaml
4242
commit-message: "chore: sync TinyNode shared OpenAPI artifact"

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ npm run ci:full
6262

6363
### Shared OpenAPI Artifact
6464
TinyNode owns the canonical shared OpenAPI artifact at `openapi/components/tinynode-shared-components.openapi.yaml`.
65-
When that file changes on `main`, the `TinyNode Shared OpenAPI Sync` workflow copies it into `cubap/rerum_openapi` at `schemas/openapi/tinynode-shared-components.openapi.yaml` and opens or updates the sync pull request there. The workflow expects a repository secret named `OPENAPI_SYNC_TOKEN` with permission to push a sync branch and open pull requests in `cubap/rerum_openapi`.
65+
When that file changes on `main`, the `TinyNode Shared OpenAPI Sync` workflow copies it into `cubap/rerum_openapi` at `schemas/openapi/tinynode-shared-components.openapi.yaml` and opens or updates the sync pull request there. The workflow uses the organization secret `OPENAPI` (already in use by `rerum_server_nodejs`); TinyNode must be in that secret's selected-repos list.
6666

6767
And start the app
6868
```shell

0 commit comments

Comments
 (0)