Skip to content

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

Merged
bluwy merged 1 commit intomainfrom
pkg-pr-new-perm
Jun 14, 2024
Merged

chore: check permission for pkg-pr-new comment#17461
bluwy merged 1 commit intomainfrom
pkg-pr-new-perm

Conversation

@bluwy
Copy link
Copy Markdown
Member

@bluwy bluwy commented Jun 13, 2024

Description

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

@bolt-new-by-stackblitz
Copy link
Copy Markdown

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

runs-on: ubuntu-latest

steps:
- if: github.event.issue.pull_request
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
Member Author

bluwy commented Jun 14, 2024

Merging this in for now before we get compromised 😬

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