DEV Community

0 seconds of 1 minute, 47 secondsVolume 90%
Press shift question mark to access a list of keyboard shortcuts
00:00
00:00
01:47
 
Brian Douglas for GitHub

Posted on • Edited on

5

How to Run GitHub Actions on Forks

GitHub provides a label on the user to identify them as a first-time contributor. This label is helpful because it's also exposed in API and provides a path for an excellent first-time contributor experience.

Screen Shot 2021-02-02 at 8.41.11 AM

The GitHub Action team maintains an Action called first-interaction, and it provides some inputs to give a welcome message. Contributors. Now, this is more than just a simple, hello message.

GitHub logo actions / first-interaction

An action for filtering pull requests and issues from first-time contributors

To enable this functionality, we need our workflow to run pull requests originated from forks. We can achieve this with the pull_request_target.

The pull_request_target event runs in the context of the base of the pull request, rather than in the merge commit as the pull_request event does. This prevents executing unsafe workflow code from the head of the pull request that could alter your repository or steal any secrets you use in your workflow.

Now we can welcome first-time contributors into our project on their first interaction.

Learn more GitHub Actions tips in our Community Support Forums.

Billboard image

Deploy and scale your apps on AWS and GCP with a world class developer experience

Coherence makes it easy to set up and maintain cloud infrastructure. Harness the extensibility, compliance and cost efficiency of the cloud.

Learn more

Top comments (0)

Image of Docusign

🛠️ Bring your solution into Docusign. Reach over 1.6M customers.

Docusign is now extensible. Overcome challenges with disconnected products and inaccessible data by bringing your solutions into Docusign and publishing to 1.6M customers in the App Center.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay