Skip to content

GitHub actions hardening#696

Merged
gueniai merged 1 commit intomainfrom
gh-hardening
Apr 14, 2026
Merged

GitHub actions hardening#696
gueniai merged 1 commit intomainfrom
gh-hardening

Conversation

@alexott
Copy link
Copy Markdown
Collaborator

@alexott alexott commented Apr 12, 2026

No description provided.

@alexott alexott requested review from a team, gueniai and nfx as code owners April 12, 2026 07:26
@@ -1,14 +1,19 @@
name: Check signed commits in PR
on: pull_request_target
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@alexott I believe this has to be changed to pull_request

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's safer than on: pull_request. From blog post:

instead of running against the workflow and code from the merge commit, the event runs against the workflow and code from the base of the pull request. This means the workflow is running from a trusted source and is given access to a read/write token as well as secrets enabling the maintainer to safely comment on or label a pull request. This event can be used in combination with the private repository settings as well.

Maybe we should consider using it in other places, so people won't modify github actions in their PRs

@gueniai gueniai merged commit 5f8c7b7 into main Apr 14, 2026
1 check passed
@gueniai gueniai deleted the gh-hardening branch April 14, 2026 13:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants