Skip to content

Commit aa31711

Browse files
authored
Merge pull request #2090 from cescoffier/fix-working-group-permissions
Working Group Sync - Update token to have the project:read permission
2 parents 9bd60c8 + d199dea commit aa31711

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

.github/workflows/sync-working-groups.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@ on:
88
- cron: '0 * * * *'
99
workflow_dispatch:
1010

11-
permissions: read-all
12-
1311
jobs:
1412
sync:
1513
runs-on: ubuntu-latest
@@ -31,7 +29,7 @@ jobs:
3129
jbangargs: --verbose -Dworking-groups.output=_data/wg.yaml
3230
env:
3331
JBANG_REPO: /root/.jbang/repository
34-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
32+
GITHUB_TOKEN: ${{ secrets.SYNC_WORKING_GROUP_TOKEN }}
3533

3634
- name: Configure Git author
3735
run: |

working-groups/main.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,10 @@ public List<Board> getAllProjectsForOrganization(String org) throws ExecutionExc
118118
}
119119
""", variables);
120120

121+
122+
System.out.println("Response: " + response);
123+
System.out.println("Errors: " + response.getErrors());
124+
System.out.println("Data:\n" + response.getData());
121125
JsonArray array = response.getData().getJsonObject("organization").getJsonObject("projectsV2")
122126
.getJsonArray("nodes");
123127
for (JsonValue value : array) {

0 commit comments

Comments
 (0)