Python Devs Document 'De-fanging Dangerous Triggers In GitHub Actions'
"A handful of GitHub Actions triggers let a stranger on the internet start a workflow that may have access to your secrets," warn two security developers at the Python Software Foundation. Have dangerous triggers caused real incidents? Yes, repeatedly... The maintainers behind these projects weren't careless. These triggers look harmless in a workflow file, and the unsafe version is one line away from the safe one... When someone opens a pull request from a fork, the pull_request trigger runs their code with a read-only token and no secrets. That's the safe one. pull_request_target looks almost the same in a workflow file and behaves very differently. It runs with a read/write token and
…