mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 09:19:04 -04:00
Remove PAT token (#153589)
## Summary Actions to add issues to specific projects are failing with the following: ```Project label assigner action failed with error: Error querying project ID for project number 669: Your token has not been granted the required scopes to execute this query. The 'projectV2' field requires one of the following scopes: ['read:project'], but your token has only been granted the: ['repo', 'workflow', 'write:org'] scopes. Please modify your token's scopes at: https://github.com/settings/tokens. ``` This PR attempts to fix it by removing the offending token and relying on `GITHUB_TOKEN` instead as recommended in [https://github.com/richkuz/projectnext-label-assigner#github-token](https://github.com/richkuz/projectnext-label-assigner#github-token)
This commit is contained in:
parent
4531ee489f
commit
89a57434ec
2 changed files with 2 additions and 4 deletions
5
.github/workflows/add-to-ao-project.yml
vendored
5
.github/workflows/add-to-ao-project.yml
vendored
|
@ -3,9 +3,9 @@ on:
|
|||
issues:
|
||||
types: [labeled]
|
||||
jobs:
|
||||
sync_issues_with_table:
|
||||
runs-on: ubuntu-latest
|
||||
add_to_project:
|
||||
name: Add issues to project
|
||||
runs-on: ubuntu-latest
|
||||
if: |
|
||||
github.event.label.name == 'Team: Actionable Observability'
|
||||
steps:
|
||||
|
@ -19,5 +19,4 @@ jobs:
|
|||
]
|
||||
env:
|
||||
GRAPHQL_API_BASE: 'https://api.github.com'
|
||||
PAT_TOKEN: ${{ secrets.PROJECT_ASSIGNER_TOKEN }}
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
|
1
.github/workflows/add-to-imui-project.yml
vendored
1
.github/workflows/add-to-imui-project.yml
vendored
|
@ -23,5 +23,4 @@ jobs:
|
|||
]
|
||||
env:
|
||||
GRAPHQL_API_BASE: 'https://api.github.com'
|
||||
PAT_TOKEN: ${{ secrets.PROJECT_ASSIGNER_TOKEN }}
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue