-
Select Topic AreaQuestion BodyA part of the docs claim, that
But in the other part of the docs I see that there is a permission called Unfortunately, it does not work. Here is a demo: https://github.com/Dzieni/github-actions-permission-test It contains a really simple workflow based on the minimal example of name: Log repository projects
on:
push:
branches:
- main
permissions: read-all
jobs:
logRepoProjects:
runs-on: ubuntu-latest
steps:
- uses: octokit/graphql-action@v2.x
id: get_projects
with:
query: |
query projects($owner: String!, $repo: String!) {
repository(owner: $owner, name: $repo) {
projectsV2(first: 50) {
nodes {
id
title
}
}
}
}
owner: ${{ github.event.repository.owner.name }}
repo: ${{ github.event.repository.name }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- run: "echo 'project release: ${{ steps.get_projects.outputs.data }}'"When you go to the projects section, you can see that the repo has at least one project: Then the workflow run has following permissions (note However, the result is an empty list of projects. It does work when using a personal token instead of the Therefore - if |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
Beta Was this translation helpful? Give feedback.
-
|
On writing this, this permission has been removed from both the workflow syntax and REST API docs. See github/docs@1d7c2fe (Remove mentions of Projects (classic) and associated features (#55017), 2025-04-10). Also according to this GitHub changelog, the Projects (classic)
Remaining docs found in |
Beta Was this translation helpful? Give feedback.

https://docs.github.com/en/rest/overview/permissions-required-for-github-apps?apiVersion=2022-11-28#repository-projects