De-fanging dangerous triggers in GitHub Actions across an organization (alpha-omega.dev)

14 points by miketheman 4 days ago

7 comments:

by david_allison 2 hours ago

`pull_request_target` is being disabled by default on Dec 2:

> On December 2, 2026, GitHub will enforce the default policy for affected repositories that were using the default pull_request_target policy before general availability.

https://docs.github.com/en/actions/reference/security/secure...

by darkamaul an hour ago

That's a great change by Github here. pull_request_target has been the source of numerous security incidents (see the examples listed in the blogpost), with little benefits to the user.

zizmor [0], a linter for GitHub Actions, flags it as part of its default audits. I would also recommend everyone to check the results of the default scan of zizmor on their project:

```

cd <my-project>

uvx zizmor .

```

[0] https://zizmor.sh/

by speakspokespok an hour ago

This needs to be locked down:

continue-on-error

> failure doesn't fail the whole workflow

Thus dev teams can and will use this so a failed security scan won't stop deployment to prod.

by masklinn 43 minutes ago

I don’t disagree that `continue-on-error` is error-prone and should be warned about, but if the team actively wants to bypass the sec scan they can just… remove it, or replace it with an always-passing job/step.

by LtWorf 2 hours ago

I think that having the same infrastructure for running tests, building, signing and publishing is a big mistake.

It causes daily hacks. Like this from last week. https://www.theregister.com/security/2026/11/18/microsofts-o...

by darkamaul an hour ago

It's also the thing that allowed frictionless automated build/test/deployment for many projects, and helped streamline CI.

Sure, there are limitations, but you can use different jobs, with restricted environments for the more sensitive tasks.

by LtWorf an hour ago

> It's also the thing that allowed frictionless automated build/test/deployment for many projects, and helped streamline CI.

I'm stating that allowing frictionless automated build/test/deployment was a mistake.

And PyPI pushing projects in that direction and forbidding PGP signatures was also a mistake.

edit: if they wanted to increase safety they should have pushed for reproducible builds, do their own build and validate that it's the same, rather than allowing binary uploads like they do.

Data from: Hacker News, provided by Hacker News (unofficial) API