You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/cloud/features/ci.mdx
+7-2Lines changed: 7 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -63,6 +63,7 @@ jobs:
63
63
elementary-review:
64
64
runs-on: ubuntu-latest
65
65
permissions:
66
+
contents: read
66
67
pull-requests: write
67
68
steps:
68
69
- uses: actions/checkout@v4
@@ -86,12 +87,16 @@ Go to **Settings > Secrets and variables > Actions** and add:
86
87
87
88
That's it. Open a PR that touches a model file and the review comment appears automatically.
88
89
90
+
<Warning>
91
+
This works for pull requests opened from branches within the same repository. GitHub does not pass repository secrets to `pull_request` workflows triggered by forks or Dependabot.
92
+
</Warning>
93
+
89
94
<Accordion title="Optional: customize the action">
90
95
91
96
| Input | Default | Description |
92
97
|---|---|---|
93
98
| `models-path` | `models/` | Path to your dbt models directory |
| `claude-model` | `claude-haiku-4-5-20251001` | Claude model to use. Switch to `claude-sonnet-4-6` for deeper analysis on complex changes |
96
101
| `base-ref` | PR base branch | Branch to diff against |
97
102
@@ -130,7 +135,7 @@ Open an MR that touches a model file and the review comment appears automaticall
130
135
131
136
**No comment appears after the job runs**
132
137
133
-
For GitHub, make sure `pull-requests: write` is set under `permissions` in the workflow file. GitHub Actions requires this explicitly to post PR comments.
138
+
Make sure both `contents: read` and `pull-requests: write` are set under `permissions` in the workflow. An explicit `permissions` block sets any unlisted scope to `none` — omitting `contents: read` causes the checkout step to fail before Elementary runs.
0 commit comments