Skip to content

Conversation

AHReccese
Copy link
Member

Reference Issues/PRs

What does this implement/fix? Explain your changes.

Previously, We had deployment on the main domain based on a pull request to the main branch feature in the build.yml.
The issue with this feature is that, since this repository is public, you can easily send a pull request from any branch of any of your own repositories to this branch, or you can fork it and add anything (maybe harmful) and send a pull request from yours to the main branch, with ability to deploy, it may lead to deployment of the random (may malicious and harmful) website on our domain.

We will soon add deployment on the dev domain and also restrict action execution from pull requests from foreign repositories.

Any other comments?

@AHReccese AHReccese requested a review from F-Shahali June 27, 2024 15:26
@AHReccese AHReccese self-assigned this Jun 27, 2024
@AHReccese
Copy link
Member Author

image
I've also enabled a temporary restriction rule on contributions to this repository.

@AHReccese AHReccese added the bug Something isn't working label Jun 27, 2024
@AHReccese
Copy link
Member Author

I've also added a restriction rule for the main (default) branch.

Copy link
Collaborator

@F-Shahali F-Shahali left a comment

Choose a reason for hiding this comment

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

Great job, thanks for your efforts.

@F-Shahali F-Shahali merged commit c050174 into main Jun 27, 2024
@AHReccese AHReccese deleted the fix/github_action_issue branch June 27, 2024 17:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants