Skip to content

Commit 6b624b8

Browse files
committed
[BUG](ci) Issue fetching requires more broadly scoped permissions
Signed-off-by: John McCall <john@overturemaps.org>
1 parent 5efc8d2 commit 6b624b8

1 file changed

Lines changed: 2 additions & 6 deletions

File tree

.github/actions/overture-projection/action.yml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -201,8 +201,8 @@ runs:
201201
echo "name=${repo##*/}" >> "$GITHUB_OUTPUT"
202202
203203
# -- Step 0c: Generate an installation token for cross-repo context reads --
204-
# Scoped to exactly two repos: omf-devex (skills + context files) and the
205-
# target PR repo (posting the review). Avoids the default org-wide token.
204+
# App is already scoped, but we need access to all repositories to ensure we can fetch linked issues
205+
# Otherwise the API returns an empty result when trying to fetch linked issues, instead of an auth error.
206206
- name: Generate context token
207207
id: context-token
208208
if: ${{ inputs['app-private-key'] != '' }}
@@ -211,10 +211,6 @@ runs:
211211
app-id: ${{ inputs['app-id'] }}
212212
private-key: ${{ inputs['app-private-key'] }}
213213
owner: ${{ github.repository_owner }}
214-
repositories: |
215-
omf-devex
216-
operating-procedures
217-
${{ steps.target_repo.outputs.name }}
218214

219215
# -- Step 1a: Checkout skills from omf-devex --------------------------------
220216
# Sparse-checks out only the skills/ tree from omf-devex at a fixed ref.

0 commit comments

Comments
 (0)