grape icon indicating copy to clipboard operation
grape copied to clipboard

Reimplement Danger on pull_request_target

Open dblock opened this issue 1 month ago • 5 comments

Danger uses a hardcoded token, which gets revoked by GitHub.

Image

We need to split Danger work into a part that runs on pull_request to analyze the PR, and the part that comments on the pull request that uses a secret token.

https://code.dblock.org/2024/04/19/commenting-on-pull-requests-in-github-actions.html

dblock avatar Dec 01 '25 21:12 dblock

Something like this https://github.com/ruby-grape/grape/pull/2632/files ?

numbata avatar Dec 07 '25 02:12 numbata

Yes, if you can make it work @numbata !

dblock avatar Dec 07 '25 03:12 dblock

I’ve added some changes to danger-changelog#65, which means we won’t need to reimplement the changelog plugin in our Dangerfile as I did in my draft PR.

Once that is merged, we can move forward with merging this PR: https://github.com/ruby-grape/danger/pull/14, …and then bump the ruby-grape-danger version.

numbata avatar Dec 08 '25 22:12 numbata

For transparency, my plan is:

numbata avatar Dec 09 '25 09:12 numbata

Sounds great @numbata, I merged https://github.com/dblock/danger-changelog/pull/65

dblock avatar Dec 09 '25 21:12 dblock