Conversation
|
This is still potentially unsafe. FreshRSS/.github/workflows/commands.yml Lines 98 to 106 in b733715 Also no idea if this is safe either: FreshRSS/.github/workflows/commands.yml Lines 35 to 44 in b733715 (and other |
maybe? But then this is concerning: |
I don't believe they can access environment variables from another step. There isn't some kind of "it can push to the PR but only the PR permission"? Or just make the bot post 'hey, please run make fix-all' instead of doing it unsupervised? |
|
I have made another attempt in #8106 |
All steps run on the same host in the context of the
Unfortunately there isn't |
I'd find that quite surprising. You mean this is what you found after testing? Of course it should be tested and not assumed, but my expectations would be:
|
|
replaced by #8123 |
See #8099
The commands action is currently disabled, needs some more improvement.
We need to make sure that the code within the PR cannot access
GITHUB_TOKEN.I am not happy with having to grant
contents: writepermission so that commits can be added into the current PR, so some workaround is needed if possible. Otherwise it is safer to restrict permissions to just owner/member, and check PR contents before running/fix-all.Current zizmor output: