From bb26e75e0cea66c74cabda4790d5431335dab7b2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Marks?= Date: Mon, 30 Oct 2023 14:51:32 +0100 Subject: [PATCH] Use github token instead of personal one --- .github/workflows/lts-backport.yaml | 2 +- project/scripts/addToBackportingProject.scala | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/lts-backport.yaml b/.github/workflows/lts-backport.yaml index 64ad2a70a4d8..45638098c836 100644 --- a/.github/workflows/lts-backport.yaml +++ b/.github/workflows/lts-backport.yaml @@ -20,5 +20,5 @@ jobs: - uses: VirtusLab/scala-cli-setup@v1.0.5 - run: scala-cli ./project/scripts/addToBackportingProject.scala -- ${{ github.event.pull_request.number }} env: - GRAPHQL_API_TOKEN: ${{ secrets.GRAPHQL_API_TOKEN }} + GRAPHQL_API_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/project/scripts/addToBackportingProject.scala b/project/scripts/addToBackportingProject.scala index a703d43c2154..794975b16b14 100644 --- a/project/scripts/addToBackportingProject.scala +++ b/project/scripts/addToBackportingProject.scala @@ -30,7 +30,7 @@ def getPrData(number: Int): (ID, String) = |} """.send( uri"https://api.github.com/graphql", - "Kordyjan", + "DummyUser", apiToken ) (ID(res.repository.pullRequest.id), res.repository.pullRequest.mergedAt) @@ -51,7 +51,7 @@ def timestampItem(id: ID, date: String) = |} """.send( uri"https://api.github.com/graphql", - "Kordyjan", + "DummyUser", apiToken ) @@ -69,7 +69,7 @@ def addItem(id: ID) = |} """.send( uri"https://api.github.com/graphql", - "Kordyjan", + "DummyUser", apiToken ) - ID(res.addProjectV2ItemById.item.id) \ No newline at end of file + ID(res.addProjectV2ItemById.item.id)