ci: use PROJECT_TOKEN for org project access
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
00543713ce
commit
0b13370e90
1 changed files with 3 additions and 7 deletions
10
.github/workflows/auto-project.yml
vendored
10
.github/workflows/auto-project.yml
vendored
|
|
@ -4,10 +4,6 @@ on:
|
|||
issues:
|
||||
types: [opened, labeled]
|
||||
|
||||
permissions:
|
||||
issues: read
|
||||
repository-projects: write
|
||||
|
||||
jobs:
|
||||
add-to-project:
|
||||
runs-on: ubuntu-latest
|
||||
|
|
@ -17,18 +13,18 @@ jobs:
|
|||
uses: actions/add-to-project@v1.0.2
|
||||
with:
|
||||
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)
|
||||
if: contains(github.event.issue.labels.*.name, 'lang:go')
|
||||
uses: actions/add-to-project@v1.0.2
|
||||
with:
|
||||
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)
|
||||
if: contains(github.event.issue.labels.*.name, 'scope:arch')
|
||||
uses: actions/add-to-project@v1.0.2
|
||||
with:
|
||||
project-url: https://github.com/orgs/host-uk/projects/1
|
||||
github-token: ${{ secrets.GITHUB_TOKEN }}
|
||||
github-token: ${{ secrets.PROJECT_TOKEN }}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue