Skip to content

Commit

Permalink
Merge pull request #2090 from cescoffier/fix-working-group-permissions
Browse files Browse the repository at this point in the history
Working Group Sync - Update token to have the project:read permission
  • Loading branch information
cescoffier authored Aug 20, 2024
2 parents 9bd60c8 + d199dea commit aa31711
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/sync-working-groups.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ on:
- cron: '0 * * * *'
workflow_dispatch:

permissions: read-all

jobs:
sync:
runs-on: ubuntu-latest
Expand All @@ -31,7 +29,7 @@ jobs:
jbangargs: --verbose -Dworking-groups.output=_data/wg.yaml
env:
JBANG_REPO: /root/.jbang/repository
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.SYNC_WORKING_GROUP_TOKEN }}

- name: Configure Git author
run: |
Expand Down
4 changes: 4 additions & 0 deletions working-groups/main.java
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,10 @@ public List<Board> getAllProjectsForOrganization(String org) throws ExecutionExc
}
""", variables);


System.out.println("Response: " + response);
System.out.println("Errors: " + response.getErrors());
System.out.println("Data:\n" + response.getData());
JsonArray array = response.getData().getJsonObject("organization").getJsonObject("projectsV2")
.getJsonArray("nodes");
for (JsonValue value : array) {
Expand Down

0 comments on commit aa31711

Please sign in to comment.