Menu

Python Devs Document 'De-fanging Dangerous Triggers In GitHub Actions' - Slashdot

it.slashdot.org·14 days ago
#bsRCCJbV
#workflow#github#pull#request#runs
Long article (347 words) — no AI summary yet.
Reading 0:00
15s threshold

"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 access to your repository and organization secrets. GitHub built it for chores like labeling pull requests from forks, where the workflow never touches the contributor's code. The trouble starts when a workflow checks out the pull request and runs it anyway... Anyone with a GitHub account can open that pull request.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.