publish-jazzy-docs
publish-jazzy-docs copied to clipboard
No need for PAT?
I think this action can work without a PAT, just using the GITHUB_TOKEN that's already provisioned when running the workflow. I've configured this action like so:
- name: Publish Jazzy Docs
uses: Steven0351/[email protected]
with:
personal_access_token: ${{ github.actor }}:${{ secrets.GITHUB_TOKEN }}
Anything against this? I'd rather not provide actions with a broad PAT, only something scoped to the repo it's running against.
Performing a commit without a PAT will work, but it will not trigger a GitHub pages build which would entirely defeat the purpose of the action
Indeed not a bug, it came with the template, I should've used the blank instead.
I'm seeing my GitHub page being updated when using the GITHUB_TOKEN as shown above. The push is succeeding just fine: https://github.com/Bouke/HAP/runs/745668855?check_suite_focus=true#step:3:462. Is there anything not working in my setup that I'm not aware of?
This discussion along with your experience does appear to ring true, though it was not the case when I originally created the action. Thanks for opening the issue and bringing it to my attention
I think that's still true, as my pages don't get published with GITHUB_TOKEN.
It does work, as also mentioned in the thread referenced in the readme.