actions / add-to-project

Automate adding issues and pull requests to GitHub projects

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Possible to use secrets.GITHUB_TOKEN?

bashfulrobot opened this issue · comments

Hi there, I was wondering if it is possible to use the automated secrets.GITHUB_TOKEN instead of a PAT? I do not see any reference to it in the docs, so I assume not, but wanted to confirm.

Thank you!

This can be closed as I just came across this in the GitHub docs:

Note: GITHUB_TOKEN is scoped to the repository level and cannot access projects. To access projects you can either create a GitHub App (recommended for organization projects) or a personal access token (recommended for user projects). Workflow examples for both approaches are shown below.

I had the same question so thanks for opening the issue.

We have a new GitHub Project (not Projects Classic) and wanted to automate new issues in our repository to our project but it's a bit cumbersome having to ask organization admins to create a PAT for us