Skip to content
Merged
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
12 changes: 9 additions & 3 deletions tools/ai-docs-sync/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,14 @@ on:
default: false

permissions:
contents: write
pull-requests: write
statuses: write
contents: read

jobs:
sync:
permissions:
contents: write
pull-requests: write
statuses: write
uses: acid-info/ai-tools/.github/workflows/ai-docs-sync.yml@ai-docs-sync/v1
with:
# Optional. Forces the target branch. Omitted: `develop` if it exists, else the default
Expand All @@ -54,6 +56,10 @@ jobs:

Then add a [configuration](#configuration) file on the target branch.

- The workflow defaults to `contents: read`, and only the `sync` job gets the three write scopes
the tool needs: `contents: write` for the rolling branch and the cursor ref, `pull-requests:
write` for the rolling PR, and `statuses: write` for the `docs-sync/gates` status. A job you add
to this file later starts read-only.
- `push` workflows run from the workflow file at the pushed commit, so you can try the tool end to
end by temporarily listing a feature branch under `branches:`.
- Pass the secrets explicitly. Do **not** use `secrets: inherit`: the tool has no business seeing
Expand Down