]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
.github: fix add to dashboard failing 52988/head
authorNizamudeen A <nia@redhat.com>
Mon, 14 Aug 2023 17:53:11 +0000 (23:23 +0530)
committerNizamudeen A <nia@redhat.com>
Mon, 14 Aug 2023 17:53:11 +0000 (23:23 +0530)
```
Error: Request failed due to following response errors:
 - Could not resolve to a ProjectV2 with the number 2.
```

On further investigation, it looks like it could be a permission issue.
I followed the recommendation in their documentation to fix it: https://github.com/actions/add-to-project#creating-a-pat-and-adding-it-to-your-repository

Signed-off-by: Nizamudeen A <nia@redhat.com>
.github/workflows/pr-triage.yml

index 4e318c12594e7865b9db9fcacf57dbf925553e52..24b1c97db708aa5881408f16c89185c7712275e5 100644 (file)
@@ -18,7 +18,7 @@ jobs:
         uses: actions/add-to-project@31b3f3ccdc584546fc445612dec3f38ff5edb41c
         with:
           project-url: https://github.com/orgs/ceph/projects/2
-          github-token: ${{ secrets.GITHUB_TOKEN }}
+          github-token: ${{ secrets.ADD_TO_PROJECT_PAT }}
           labeled: dashboard
       - name: Assign milestone based on target brach name
         # https://github.com/marketplace/actions/pull-request-milestone?version=v1.3.0