Skip to content

Skip permissions step on push events - #2548

Merged
sentrivana merged 1 commit into
masterfrom
ivana/make-check-perms-work-on-master
Nov 30, 2023
Merged

sentrivana merged 1 commit into
masterfrom
ivana/make-check-perms-work-on-master

Conversation

@sentrivana

@sentrivana sentrivana commented Nov 30, 2023 •

Copy link
Copy Markdown
Collaborator

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
@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.

2 participants