HN.zip

De-fanging dangerous triggers in GitHub Actions across an organization

14 points by - 7 comments
[3 hidden]5 mins 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/

[3 hidden]5 mins 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...

[3 hidden]5 mins 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.

[3 hidden]5 mins 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.
[3 hidden]5 mins 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...

[3 hidden]5 mins 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.

[3 hidden]5 mins 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.