ci: use PROJECT_TOKEN for org project access

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Snider 2026-01-31 22:07:51 +00:00
parent 00543713ce
commit 0b13370e90

View file

@ -4,10 +4,6 @@ on:
issues: issues:
types: [opened, labeled] types: [opened, labeled]
permissions:
issues: read
repository-projects: write
jobs: jobs:
add-to-project: add-to-project:
runs-on: ubuntu-latest runs-on: ubuntu-latest
@ -17,18 +13,18 @@ jobs:
uses: actions/add-to-project@v1.0.2 uses: actions/add-to-project@v1.0.2
with: with:
project-url: https://github.com/orgs/host-uk/projects/2 project-url: https://github.com/orgs/host-uk/projects/2
github-token: ${{ secrets.GITHUB_TOKEN }} github-token: ${{ secrets.PROJECT_TOKEN }}
- name: Add to Core.GO (lang:go label) - name: Add to Core.GO (lang:go label)
if: contains(github.event.issue.labels.*.name, 'lang:go') if: contains(github.event.issue.labels.*.name, 'lang:go')
uses: actions/add-to-project@v1.0.2 uses: actions/add-to-project@v1.0.2
with: with:
project-url: https://github.com/orgs/host-uk/projects/4 project-url: https://github.com/orgs/host-uk/projects/4
github-token: ${{ secrets.GITHUB_TOKEN }} github-token: ${{ secrets.PROJECT_TOKEN }}
- name: Add to Core.Framework (scope:arch label) - name: Add to Core.Framework (scope:arch label)
if: contains(github.event.issue.labels.*.name, 'scope:arch') if: contains(github.event.issue.labels.*.name, 'scope:arch')
uses: actions/add-to-project@v1.0.2 uses: actions/add-to-project@v1.0.2
with: with:
project-url: https://github.com/orgs/host-uk/projects/1 project-url: https://github.com/orgs/host-uk/projects/1
github-token: ${{ secrets.GITHUB_TOKEN }} github-token: ${{ secrets.PROJECT_TOKEN }}