moorepants / learn-multibody-dynamics

Interactive computational book on multibody dynamics
https://moorepants.github.io/learn-multibody-dynamics/
Other
112 stars 27 forks source link

The preview html view comment addition fails if users other than moorepants submit #64

Open moorepants opened 2 years ago

moorepants commented 2 years ago

See: https://github.com/moorepants/learn-multibody-dynamics/pull/63

moorepants commented 2 years ago

The docs for the action says: "Note: In public repositories this action does not work in pull_request workflows when triggered by forks. Any attempt will be met with the error, Resource not accessible by integration. This is due to token restrictions put in place by GitHub Actions. Private repositories can be configured to enable workflows from forks to run without restriction. See here for further explanation. Alternatively, use the pull_request_target event to comment on pull requests."

moorepants commented 1 year ago

This action has been updated some over the year. It does say this now for the token:

"GITHUB_TOKEN (issues: write, pull-requests: write) or a repo scoped PAT."

So maybe I can make a "repo scoped PAT".