tibdex / autosquash

:package: GitHub Action to update PRs with outdated checks and squash and merge the ones matching all branch protections

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Can workflow_run allow the use of GITHUB_TOKEN?

paride opened this issue · comments

Hi, I was wondering if the new workflow_run (https://docs.github.com/en/actions/reference/events-that-trigger-workflows#workflow_run) can be used to (reverse-)trigger one workflow from another, thus allowing the use of secrets.GITHUB_TOKEN.

Hi Paride, it could work indeed. Are you willing to take some time to fork this action and see if that's the case?

Hi, I'll do some tests and comment back.

I realistically won't have much time for this in the short term, and parts of this action are outside of my comfort zone (TypeScript). I still plan to get to it eventually, but for the moment if anybody wants to step in, please do!