Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace github.actor with github.event.pull_request.user.login #565

Merged
merged 1 commit into from
Aug 22, 2024

Conversation

onodera0314
Copy link
Contributor

概要

github.actor は細工をすることで詐称でき、auto mergeなどしている場合に悪意のあるコードをマージさせる脆弱性があることがわかりました。
https://www.synacktiv.com/publications/github-actions-exploitation-dependabot

https://github.com/dependabot/fetch-metadata を使用している場合はこの影響を受けません。
このワークフロー内でのチェックにより詐称されている場合は落ちるためです。
そのため現状では影響を受けませんが、より安全な記述に置き換えることで攻撃を受ける可能性を減らします。

やったこと

github.actorgithub.event.pull_request.user.login に置き換えました。
READMEでもこの記述が使われています。

Copy link
Contributor

@ginozakiyotaka ginozakiyotaka left a comment

Choose a reason for hiding this comment

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

修正内容良いように思います!
Approveして、マージします。

@ginozakiyotaka ginozakiyotaka merged commit fb6d917 into main Aug 22, 2024
6 checks passed
@ginozakiyotaka ginozakiyotaka deleted the replace-github-actor branch August 22, 2024 10:30
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.

3 participants