Skip to main content

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

16 hours 33 minutes ago
"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. Their code now runs with your credentials. This is called a "pwn request", and GitHub's docs describe it as the root cause of multiple supply-chain compromises. The issue_comment trigger carries the same risk. This trigger fires when anyone comments on an issue or pull request, and the workflow runs with the repository's token and secrets... Sometimes the workflow pastes the comment text into a templated shell command, and the comment turns out to inject different instructions into the workflow shell. Python's official security developer in residence Seth Larson joined PyPI safety/security engineer Mike Fiedler to remove these dangerous trigger, also applying the policies Python Software Foundation-stewarded GitHub organizations (psf, python, and pypi). "They also wrote up technical documentation on how to roll these policies out to your own projects and organizations. "On a GitHub Team or Enterprise plan, you can turn them off for every repository in your organization with one policy. On a Free plan, you can do it one repository at a time. Set the policy up, check what it would block, then enforce it."

Read more of this story at Slashdot.

EditorDavid

Ask Slashdot: Should an Indie Game Developer Outsource Their Art?

17 hours 33 minutes ago
Slashdot reader MillerMark has been working on his own small indie game "for about eight months now. And the art side is honestly killing me..." I can draw basic stuff, but nothing close to what I had in mind when I started this project. Is it even worth outsourcing 2D character and environment art at this stage, or should I just push through and do it myself? He's "looking for advice from people who've actually dealt with this" to share their stories in the comments. And Slashdot reader AlexKrav says "Outsourcing saved my project honestly... Quality held from first asset to last. If your vision is clear but the execution is not there yet, handing it off is the right call." Someone on a thread had suggested game art studios specializing in 3D and 2D game art, and he'd discovered there were lots of choices — 2D Game Art service, VSQUAD Studio. I've also successfully hired digital artists through freelancing platforms likes Upwork. Any Slashdot readers want to share their own experiences in hiring artists? Leave your stories and opinions in the comments. Should an indie game developer outsource their art?

Read more of this story at Slashdot.

EditorDavid