-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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: make greetings on PR First-time Contrib #8885
base: develop
Are you sure you want to change the base?
Conversation
pull_requedt_target
should not be used for security reasons.
By Claude 3 Sonnet. Q: We are running an open source project on GitHub and using GitHub Actions for all pull requests. What are the security considerations when using When using the
To mitigate these risks, consider the following best practices:
By following these best practices, you can mitigate the risks associated with running untrusted code in your GitHub Actions workflows and maintain a secure environment for your open-source project. |
Based on |
@ddevsr Thank you. But did you test this works on pull requests by contributers? |
By ChatGPT. Using 1. Access to Secrets
2. Careful with Untrusted Code
3. Use Limited Scopes
4. Review and Approval
5. Limit Workflow Modifications
6. Consider Alternative Triggers
7. Custom Environment Variables
SummaryUsing |
@@ -1,13 +1,14 @@ | |||
name: Greetings | |||
|
|||
on: [pull_request_target] | |||
on: [pull_request] | |||
|
|||
jobs: | |||
greeting: | |||
runs-on: ubuntu-latest | |||
permissions: | |||
issues: read |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This line does not seem to be needed.
issues: read |
Description
Ref codeigniter4/CodeIgniter4#8878.
Checklist: