Create and share your own GitHub Apps and ActionsPROBOT . Access and operate on GitHub resources...
Transcript of Create and share your own GitHub Apps and ActionsPROBOT . Access and operate on GitHub resources...
![Page 1: Create and share your own GitHub Apps and ActionsPROBOT . Access and operate on GitHub resources autonomously as a “bot”. You maintain and operate on your compute. OAuth app Access](https://reader035.fdocuments.us/reader035/viewer/2022071511/612ff9371ecc51586943cb96/html5/thumbnails/1.jpg)
![Page 2: Create and share your own GitHub Apps and ActionsPROBOT . Access and operate on GitHub resources autonomously as a “bot”. You maintain and operate on your compute. OAuth app Access](https://reader035.fdocuments.us/reader035/viewer/2022071511/612ff9371ecc51586943cb96/html5/thumbnails/2.jpg)
![Page 3: Create and share your own GitHub Apps and ActionsPROBOT . Access and operate on GitHub resources autonomously as a “bot”. You maintain and operate on your compute. OAuth app Access](https://reader035.fdocuments.us/reader035/viewer/2022071511/612ff9371ecc51586943cb96/html5/thumbnails/3.jpg)
Create and share your own GitHub Apps and Actions
![Page 4: Create and share your own GitHub Apps and ActionsPROBOT . Access and operate on GitHub resources autonomously as a “bot”. You maintain and operate on your compute. OAuth app Access](https://reader035.fdocuments.us/reader035/viewer/2022071511/612ff9371ecc51586943cb96/html5/thumbnails/4.jpg)
Shashank BansalDirector, Product Management
@shashban
![Page 5: Create and share your own GitHub Apps and ActionsPROBOT . Access and operate on GitHub resources autonomously as a “bot”. You maintain and operate on your compute. OAuth app Access](https://reader035.fdocuments.us/reader035/viewer/2022071511/612ff9371ecc51586943cb96/html5/thumbnails/5.jpg)
Global impact of your solutions
Brand Value Business
![Page 6: Create and share your own GitHub Apps and ActionsPROBOT . Access and operate on GitHub resources autonomously as a “bot”. You maintain and operate on your compute. OAuth app Access](https://reader035.fdocuments.us/reader035/viewer/2022071511/612ff9371ecc51586943cb96/html5/thumbnails/6.jpg)
Let’s Build Something
![Page 7: Create and share your own GitHub Apps and ActionsPROBOT . Access and operate on GitHub resources autonomously as a “bot”. You maintain and operate on your compute. OAuth app Access](https://reader035.fdocuments.us/reader035/viewer/2022071511/612ff9371ecc51586943cb96/html5/thumbnails/7.jpg)
Build artifacts and upload on creation of a Release
https://cli.github.com Sketch out the workflow
![Page 8: Create and share your own GitHub Apps and ActionsPROBOT . Access and operate on GitHub resources autonomously as a “bot”. You maintain and operate on your compute. OAuth app Access](https://reader035.fdocuments.us/reader035/viewer/2022071511/612ff9371ecc51586943cb96/html5/thumbnails/8.jpg)
![Page 9: Create and share your own GitHub Apps and ActionsPROBOT . Access and operate on GitHub resources autonomously as a “bot”. You maintain and operate on your compute. OAuth app Access](https://reader035.fdocuments.us/reader035/viewer/2022071511/612ff9371ecc51586943cb96/html5/thumbnails/9.jpg)
![Page 10: Create and share your own GitHub Apps and ActionsPROBOT . Access and operate on GitHub resources autonomously as a “bot”. You maintain and operate on your compute. OAuth app Access](https://reader035.fdocuments.us/reader035/viewer/2022071511/612ff9371ecc51586943cb96/html5/thumbnails/10.jpg)
![Page 11: Create and share your own GitHub Apps and ActionsPROBOT . Access and operate on GitHub resources autonomously as a “bot”. You maintain and operate on your compute. OAuth app Access](https://reader035.fdocuments.us/reader035/viewer/2022071511/612ff9371ecc51586943cb96/html5/thumbnails/11.jpg)
Owner / Repo
Tag
Input
![Page 12: Create and share your own GitHub Apps and ActionsPROBOT . Access and operate on GitHub resources autonomously as a “bot”. You maintain and operate on your compute. OAuth app Access](https://reader035.fdocuments.us/reader035/viewer/2022071511/612ff9371ecc51586943cb96/html5/thumbnails/12.jpg)
🧪
![Page 13: Create and share your own GitHub Apps and ActionsPROBOT . Access and operate on GitHub resources autonomously as a “bot”. You maintain and operate on your compute. OAuth app Access](https://reader035.fdocuments.us/reader035/viewer/2022071511/612ff9371ecc51586943cb96/html5/thumbnails/13.jpg)
• Created an action `setup-gh`
• It works cross-platform, and uses community tooling, minimizing the amount of code we need to maintain
• Contributed to the community
We did it !!!!
![Page 14: Create and share your own GitHub Apps and ActionsPROBOT . Access and operate on GitHub resources autonomously as a “bot”. You maintain and operate on your compute. OAuth app Access](https://reader035.fdocuments.us/reader035/viewer/2022071511/612ff9371ecc51586943cb96/html5/thumbnails/14.jpg)
ReleaseBuildPlan
Your integration journey with GitHub
![Page 15: Create and share your own GitHub Apps and ActionsPROBOT . Access and operate on GitHub resources autonomously as a “bot”. You maintain and operate on your compute. OAuth app Access](https://reader035.fdocuments.us/reader035/viewer/2022071511/612ff9371ecc51586943cb96/html5/thumbnails/15.jpg)
Plan
![Page 16: Create and share your own GitHub Apps and ActionsPROBOT . Access and operate on GitHub resources autonomously as a “bot”. You maintain and operate on your compute. OAuth app Access](https://reader035.fdocuments.us/reader035/viewer/2022071511/612ff9371ecc51586943cb96/html5/thumbnails/16.jpg)
GitHub ActionOAuth AppGitHub App(this is what we just built)
![Page 17: Create and share your own GitHub Apps and ActionsPROBOT . Access and operate on GitHub resources autonomously as a “bot”. You maintain and operate on your compute. OAuth app Access](https://reader035.fdocuments.us/reader035/viewer/2022071511/612ff9371ecc51586943cb96/html5/thumbnails/17.jpg)
Access and operate on GitHub resources autonomously as a
“bot”.
You maintain and operate on your compute.
OAuth app GitHub actionGitHub App
![Page 19: Create and share your own GitHub Apps and ActionsPROBOT . Access and operate on GitHub resources autonomously as a “bot”. You maintain and operate on your compute. OAuth app Access](https://reader035.fdocuments.us/reader035/viewer/2022071511/612ff9371ecc51586943cb96/html5/thumbnails/19.jpg)
![Page 20: Create and share your own GitHub Apps and ActionsPROBOT . Access and operate on GitHub resources autonomously as a “bot”. You maintain and operate on your compute. OAuth app Access](https://reader035.fdocuments.us/reader035/viewer/2022071511/612ff9371ecc51586943cb96/html5/thumbnails/20.jpg)
Access and operate on GitHub resources autonomously as a
“bot”.
You maintain and operate on your compute.
OAuth appAccess and operate on GitHub resources on behalf of a user.
You maintain and operate on your compute.
GitHub actionGitHub App
![Page 21: Create and share your own GitHub Apps and ActionsPROBOT . Access and operate on GitHub resources autonomously as a “bot”. You maintain and operate on your compute. OAuth app Access](https://reader035.fdocuments.us/reader035/viewer/2022071511/612ff9371ecc51586943cb96/html5/thumbnails/21.jpg)
Access and operate on GitHub resources autonomously as a
“bot”.
You maintain and operate on your compute.
OAuth appAccess and operate on GitHub resources on behalf of a user.
You maintain and operate on your compute.
GitHub actionExpose a discrete unit of work
that executes “headlessly” in the context of developer workflows.
You maintain, we operate on our compute / the customer’s
compute.
GitHub App
![Page 22: Create and share your own GitHub Apps and ActionsPROBOT . Access and operate on GitHub resources autonomously as a “bot”. You maintain and operate on your compute. OAuth app Access](https://reader035.fdocuments.us/reader035/viewer/2022071511/612ff9371ecc51586943cb96/html5/thumbnails/22.jpg)
GitHub AppOAuth app
GitHub action
![Page 23: Create and share your own GitHub Apps and ActionsPROBOT . Access and operate on GitHub resources autonomously as a “bot”. You maintain and operate on your compute. OAuth app Access](https://reader035.fdocuments.us/reader035/viewer/2022071511/612ff9371ecc51586943cb96/html5/thumbnails/23.jpg)
Which one is right for you
GitHub action GitHub Apps
Solution can run completely on GitHub RunnersCommunicate over API/ via a CLI
Solution needs processing beyond GitHub RunnersService hosted by you outside GitHub
Solution runs “headlessly” with no UI Solution requires user interaction
Solution is “stateless” and without data storage Solution needs to persist data
Needs fixed permissionsExecuted with workflows in any repo
Needs fine grained, dynamic permissionsScoped to a repo/ installation
Needs chaining with other executions Standalone
![Page 24: Create and share your own GitHub Apps and ActionsPROBOT . Access and operate on GitHub resources autonomously as a “bot”. You maintain and operate on your compute. OAuth app Access](https://reader035.fdocuments.us/reader035/viewer/2022071511/612ff9371ecc51586943cb96/html5/thumbnails/24.jpg)
Build
![Page 25: Create and share your own GitHub Apps and ActionsPROBOT . Access and operate on GitHub resources autonomously as a “bot”. You maintain and operate on your compute. OAuth app Access](https://reader035.fdocuments.us/reader035/viewer/2022071511/612ff9371ecc51586943cb96/html5/thumbnails/25.jpg)
APIsDocshttps://docs.github.com
SDKshttps://octokit.github.io
Webhooks
Building Blocks
![Page 27: Create and share your own GitHub Apps and ActionsPROBOT . Access and operate on GitHub resources autonomously as a “bot”. You maintain and operate on your compute. OAuth app Access](https://reader035.fdocuments.us/reader035/viewer/2022071511/612ff9371ecc51586943cb96/html5/thumbnails/27.jpg)
Release
![Page 28: Create and share your own GitHub Apps and ActionsPROBOT . Access and operate on GitHub resources autonomously as a “bot”. You maintain and operate on your compute. OAuth app Access](https://reader035.fdocuments.us/reader035/viewer/2022071511/612ff9371ecc51586943cb96/html5/thumbnails/28.jpg)
The MarketplaceWindow to the world for your tools
https://github.com/marketplace
![Page 29: Create and share your own GitHub Apps and ActionsPROBOT . Access and operate on GitHub resources autonomously as a “bot”. You maintain and operate on your compute. OAuth app Access](https://reader035.fdocuments.us/reader035/viewer/2022071511/612ff9371ecc51586943cb96/html5/thumbnails/29.jpg)
Self Serve VerificationApplying for publisher verification for your organization - GitHub Docs
![Page 30: Create and share your own GitHub Apps and ActionsPROBOT . Access and operate on GitHub resources autonomously as a “bot”. You maintain and operate on your compute. OAuth app Access](https://reader035.fdocuments.us/reader035/viewer/2022071511/612ff9371ecc51586943cb96/html5/thumbnails/30.jpg)