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

chore: check permission for pkg-pr-new comment #17461

Merged
merged 1 commit into from
Jun 14, 2024
Merged

chore: check permission for pkg-pr-new comment #17461

merged 1 commit into from
Jun 14, 2024

Conversation

bluwy
Copy link
Member

@bluwy bluwy commented Jun 13, 2024

Description

We should check permissions before publishing the PR commit. Copied from ecosystem-ci-trigger.

Copy link

stackblitz bot commented Jun 13, 2024

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

@@ -18,8 +18,46 @@ jobs:
runs-on: ubuntu-latest

steps:
- if: github.event.issue.pull_request
Copy link
Contributor

Choose a reason for hiding this comment

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

I wonder if we can check the role in the previous step? using github.event.comment.author_association == 'MEMBER' ?

Copy link
Member Author

Choose a reason for hiding this comment

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

Perhaps that works too, but I won't able to test it now 😅

@bluwy
Copy link
Member Author

bluwy commented Jun 14, 2024

Merging this in for now before we get compromised 😬

@bluwy bluwy merged commit b4b4acf into main Jun 14, 2024
11 checks passed
@bluwy bluwy deleted the pkg-pr-new-perm branch June 14, 2024 13:58
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