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

Skip permissions step on push events #2548

Merged
merged 1 commit into from Nov 30, 2023

Conversation

sentrivana
Copy link
Contributor

@sentrivana sentrivana commented Nov 30, 2023

The AWS Lambda test suite is failing on master. It runs a script to check whether a PR author has the right permissions to run the test suite, but the event that triggers the workflow is not a PR being opened/updated, but rather pushing to a repo branch.

In the patch here we treat the two possible event types differently:

  • on push, we skip the permissions check entirely since the push event is only emitted on changes to repo branches (and we only limit it to master and release/ branches), which can only be triggered by people with write permissions
  • on pull_request_target, we run the permissions check as before

@sentrivana sentrivana merged commit e9b5855 into master Nov 30, 2023
469 checks passed
@sentrivana sentrivana deleted the ivana/make-check-perms-work-on-master branch November 30, 2023 11:34
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.

None yet

2 participants