googleapis / googleapis/release-please-action

GITHUB_TOKEN requires `repository-projects: read` to work properly

Open
#1,072 9 comments 1 reaction 1 assignee Claimed by @chingor13 View on GitHub
priority: p2 type: bug
Dominant language
TypeScript
Stars
2.5k
Forks
327
PR merge metrics
No merged PRs in 30d

Description

#### Environment details

- Programming language: release-type simple
- OS: ubuntu-latest
- Package version: release-please-action@v4.1.3

#### Steps to reproduce

Create a basic workflow with release-please-action with secrets.GITHUB_TOKEN as a token and release-type simple.

Set the suggested permissions:
```
permissions:
contents: write
pull-requests: write
```

The workflow will create a PR but not be able to set a label and sub-sequential can't set a tag and create a release either.

When adding the additional permission it starts to work:
```
repository-projects: read
```

no clue why.. this is why i tried it: https://github.com/cli/cli/discussions/5307 all thought my repository is not private but public.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.