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

Retrieve PR-SHA from Slash Command Arg #177

Merged
merged 1 commit into from
Dec 19, 2024

Conversation

suzhoum
Copy link
Contributor

@suzhoum suzhoum commented Dec 19, 2024

Description

This PR fixes a security concern that /platform_tests might pick up a malicious commit sent within the very brief timing gap between when a maintainer sends out /platform_tests comment, and when the action dequeues and picks up the new malicious commit sha because it currently checks out the PR sha automatically. With this PR, it requires the maintainer to supply the commit sha in the slash command, and avoids the potential risk of running a malicious commit.

How Has This Been Tested?

  • Unit tests (pytest tests/)
  • Integration tests (if applicable)

Configuration Changes

  • No config changes
  • Config changes (please describe):

Type of Change

  • Bug fix
  • New feature
  • Documentation update
  • Performance improvement
  • Code cleanup/refactor

@suzhoum suzhoum force-pushed the use_slash_command_arg branch from 4e64555 to fb7b96f Compare December 19, 2024 00:41
@suzhoum suzhoum changed the title use command arg for pr-sha Retrieve PR-SHA from Slash Command Arg Dec 19, 2024
@suzhoum suzhoum merged commit 9c9985c into autogluon:main Dec 19, 2024
3 checks passed
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