[BUG] Using permissions
key to set GITHUB_TOKEN when running the action
#32
Labels
bug
Something isn't working
Summary
At the minute, I pass a PAT with
public_repo
scope totest-this-pr-action
which allows me to push a new branch to a repo I have write access to and leave a comment on the open PR.I was playing around with setting the permissions of the
GITHUB_TOKEN
to see if I could grant it just enough to do the above instead of my account. The following permissions can create the branch and leave the comment:But seemingly with these permissions to push to a branch, does not seem to trigger the a separate action that is set to trigger on pushes to
main
andtest-this-pr/**
branches. Seems counter-intuitive to me!I have been testing the action in this repo: https://github.com/binderhub-test-org/pr-test
Refs:
The text was updated successfully, but these errors were encountered: