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

Update workflow to protextfrom but run external PRs #2440

Merged
merged 2 commits into from
Oct 9, 2024

Conversation

MrHinsh
Copy link
Member

@MrHinsh MrHinsh commented Oct 9, 2024

🔧 (workflows): update GitHub Actions workflows for improved PR handling

Comment out the labeler workflow to temporarily disable it, possibly for debugging or performance reasons. Modify the main workflow to use pull_request_target instead of pull_request for better security and add specific event types to trigger the workflow. Introduce conditional logic to ensure the workflow only runs under safe conditions, such as when a PR is labeled 'safe-to-build'. Add steps to remove the 'safe-to-build' label from PRs originating from forks, ensuring that only trusted code is built. Update the checkout steps to handle both push and pull request events correctly, ensuring the correct repository and ref are checked out. These changes enhance the security and flexibility of the CI/CD pipeline by ensuring that only safe and intended code is built and deployed.

Comment out the labeler workflow to temporarily disable it, possibly for debugging or performance reasons. Modify the main workflow to use `pull_request_target` instead of `pull_request` for better security and add specific event types to trigger the workflow. Introduce conditional logic to ensure the workflow only runs under safe conditions, such as when a PR is labeled 'safe-to-build'. Add steps to remove the 'safe-to-build' label from PRs originating from forks, ensuring that only trusted code is built. Update the checkout steps to handle both push and pull request events correctly, ensuring the correct repository and ref are checked out. These changes enhance the security and flexibility of the CI/CD pipeline by ensuring that only safe and intended code is built and deployed.
@nkdagility-actions-bot nkdagility-actions-bot bot added bug build-action Edits to the build system labels Oct 9, 2024
@MrHinsh MrHinsh merged commit 9728790 into main Oct 9, 2024
6 checks passed
@MrHinsh MrHinsh deleted the fix/workflow-for-external-support branch October 9, 2024 08:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug build-action Edits to the build system
Projects
Development

Successfully merging this pull request may close these issues.

1 participant