-
-
Notifications
You must be signed in to change notification settings - Fork 126
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
docs: miss permission for statuses: write #233
Comments
Thanks for the report! In this repository the action works with the documented settings so I guess there's some difference in your environment? Are you using the In any case, a reproduction would be necessary to discuss this further. |
Hi @amannn, Indeed I'm using it, and I have missed this mention 🤦♂️ I just ran a test with only What's weird though, is that both workflows runs fine with
Any idea why ? |
joining this :) |
I'm into this discussion. My setup (it works!): name: Semantic Pull Request
on:
pull_request_target:
types:
- opened
- edited
- synchronize
permissions:
pull-requests: read
statuses: write
jobs:
semantic-pull-request:
runs-on: ubuntu-latest
steps:
- name: Check pull request title
uses: amannn/action-semantic-pull-request@v5.4.0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
wip: true @cebidhem - indeed, |
@cebidhem You didn't include |
Is your feature request related to a problem? Please describe.
It's not really a feature, but I was unable to make the action work with only
permissions.pull-requests: read
.I had to add
permissions.statuses: write
. Indeed, after trying a lot of combinations, I triedpermissions: write-all
and noticed a new status check added.I don't know why I seem to be the only one though 🤔 The action runs in a public repo with the Action
GITHUB_TOKEN
.Describe the solution you'd like
Add the mention in the docs. I'm willing to open a doc PR if you agree!
Describe alternatives you've considered
None.
The text was updated successfully, but these errors were encountered: