summaryrefslogtreecommitdiff
path: root/README.md
blob: bb097e5af1e61215765779d8ac9cf18077baa012 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
---
title: Dependabot
author: mo (xlgmokha) (he/him)
date: 2021-11-17
---

# Dependabot

```plaintext
=----------------------------------------------------------------------=
------------------------------------------------------------------------
------------------------------------------------------------------------
------------------------------------------------------------------------
------------------------------------------------------------------------
------------------------------------------------------------------------
---------------------------------*@@@@@@@-------------------------------
--------------------------------:*@@@@@@@-------------------------------
--------------------------------:#@@@@@@@-------------------------------
---------------------------------+%%%%@@@-------------------------------
--------------------------------------*@@=------------------------------
----------------*@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@*----------------
---------------=@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@=---------------
---------------=@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@=---------------
---------------=@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@=---------------
---------------=@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@=---------------
--------------:-@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@-:--------------
-------------+%%@@@@@@@@@@@@%+--+@@@@@@@@@@@@%+--#@@@@@@%%+-------------
-------------#@@@@@@@@%=-=#*-::=*@@@@@@%=-+#+-:-=#@@@@@@@@#-------------
-------------#@@@@@@@@@+-:-:-=#@@@@@@@@%=-:-:-=#@@@@@@@@@@#-------------
-------------#@@@@@@@@@@%+-=#@@@@@@@@@@@@%+-=#@@@@@@@@@@@@#-------------
-------------#@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@#-------------
-------------=+*@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@*+=-------------
--------------:-@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@-:--------------
---------------=@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@=---------------
----------------#@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@#----------------
------------------===============------===============------------------
---------------------------------*####*---------------------------------
--------------------------------#@@@@@@#--------------------------------
--------------------------------@@@@@@@@--------------------------------
-------------------------------+@@@@@@@@+-------------------------------
-------------------------------%@@@@@@@@%-------------------------------
-------------------------------%@@@@@@@@%-------------------------------
--------------------------------+@@@@@@+--------------------------------
--------------------------------:-#@@#-:--------------------------------
=----------------------------------==----------------------------------=
```

                                                  Based on a true story.

# $ whoami

```plaintext
                          mo khan @xlgmokha
                          Senior Software Engineer
                          Dependabot

                    LfCCtt11fffLttftfttt11ttL08888888888
                    tfLCCLLLCLft1tttttttfG8@@@88@@@@@@@8
                    CCCCCCCLtiiiii11111itLG8@8@88888008@
                    CCCCCGf;;;iiiii11tt11i1tLGfttt111ii1
                    CCCCGf;ii;;;;;i1fft1;:,:ift1111iff11
                    CCCGL::;,,,,,,::;1fi:,:;:;Lftt11ffff
                    CCCGi,:,::,:,.,,:itf1:;;:1CL11111tt1
                    CCCGi,::,.:1;,,;iitfCLt11fG0Lffff1tt
                    CCCCf:::;::::;iii1tffLCLftfLGLt1iii1
                    LLLC1::it1t1tt1;i;,,;i,:1i;i1L1,...:
                    LLLLf::;11t11i;;:.,,::;tft;:;tt.   .
                    ffffL1::;;;;::;;;;;;;;i1tti;;1fi;ii1
                    tttttt;:::::,,,,::::;;i1tfffi1fC8088
                    1111tit1::::::::,:::;;::;ttftttiCGG0
                    iiii;;i;i;:,::::::::::;i1tttft1if0G0
                    ti;::;;;i11;,,,::::;;;;;;iiii11;f0G0
                    ffft1fCCCG0Cfi:::::,,::;;;;:;;:;CGG0
                    ;fGGG0000GGCGLi;:::::;;;;::::,:CGCG0
```

# Agenda

1. What is Dependabot?
1. Dependabot on dotcom
1. Dependabot on GHES
1. Community
1. Help Wanted


                                          I talk fast. Try to keep up. 😅


# What is Dependabot?

```yaml
# .github/dependabot.yml
version: 2
updates:
  - package-ecosystem: "bundler"
    directory: "/"
    schedule:
      interval: "daily"
```
              |
              |
              V

```diff
--- a/Gemfile.lock
+++ b/Gemfile.lock
@@ -78,7 +78,7 @@ GEM
     minitest (5.14.4)
-    net-hippie (1.0.0)
+    net-hippie (1.1.1)
     nio4r (2.5.8)
```

# Map of Dependabot (dotcom)

```plaintext
   --------------
  ||-------------|
  || $ git push  |-o-o-o-o-
  ||             |        o
   ---------------        |
   \ 000000000000 \       o
    \ 000000000000 \      |
     \   \      \   \     o
      ----------------    |
         o-o-o-o-o-o-o-o-o-
         |
         o
   ------|----------------------------
   |     v        GitHub DC          |
   | ----------                      |
   | | dotcom |                      |
   | ----------                      |
   |  |                -----------   |
   |  |- webhooks, --> | 🤖-api  |   |
   |     hyro          -----|-----   |
   -------------------------|---------
                            |
   -------------------------|---------      ---------------
   |     AWS                |        |  |->-|...          |
   |                --------|------  |  |   ---------------
   |     ----------|     SQS Queue | |  |   ---------------
   |     |V        |(o,x,o,o,x,...)| |  |>--| pypi.org    |
   |     V|         ---------------  |  |   ---------------
   |     ||                          |  |   ---------------
   |  --------                       |  |-->| rubygems.org|
   | |🤖-updater|\                   |  |   ---------------
   |  --------\||\  <- The           |  |   ---------------
   |  \________\|||   ~magic~ danger |  |->-| npmjs.org   |
   |   \        \||    happens       |  |   ---------------
   |    \-----|---|    here.         |  |
   |----------|----------------------|  |
              |                         |
              |--------------------------
```

# Dependabot - Runtime (dotcom)

```plaintext
                       |
                       V
                     __|___
                |-<-() SQS )
                V    ------
                |
 ---------------V----------------------------------
 | ec2-metal    |                                 |
 |              V                                 |
 |       -------|------                           |
 |       | job runner |                           |      --------------
 |       --------------                           |   |->|...         |
 |     /                \-----------------------  |   |  --------------
 |     |                | docker               |  |   |->|pypi.org    |
 |     |                | -------------------- |  |   |  --------------
 | (export env)         | |  🤖-proxy        ->->->->-|->|rubygems.org|
 |     |                | -|------------------ |  |   |  --------------
 |     |                ---|-------------------   |   |->|npmjs.org   |
 |     |                   A                      |      --------------
 |  -----------------------|-----                 |
 |  | firecracker vm       A     |\               |
 |  |                      |     ||\              |
 |  | -------------        A     |||\             |
 |  | | job guest |        |     ||||             |
 |  | -------------        A     ||||             |
 |  |    |     |           |     ||||             |
 |  | ---------------------A---- ||||             |
 |  | | docker             |   | ||||             |
 |  | | -------------------|-- | ||||             |
 |  | | | 🤖-updater         | | ||||             |
 |  | | ---------------------- | ||||             |
 |  | |------------------------- ||||             |
 |  ------------------------------|||             |
 --------------------------------------------------
```

# Map of Dependabot (GHES)

```plaintext
   --------------
  ||-------------|
  || $ git push  |-o-o-o-o-
  ||             |        o
   ---------------        |
   \ 000000000000 \       o
    \ 000000000000 \      |
     \   \      \   \     o
      ----------------    |
         o-o-o-o-o-o-o-o-o-
         |
         o
   ------|----------------------------
   |     v        GitHub DC          |
   | ----------        ----------    |
   | | dotcom |        | Actions |   |
   | ----------        -----A-----   |
   |  |                -----|-----   |
   |  |- webhooks, --> | 🤖-api  |   |
   |     hyro          -----------   |
   -----------------------------------
```

# Dependabot - Runtime (GHES)

```plaintext
 -----------------------
 | dependabot/action   |
 |                     |
 | -----------------   |
 | | docker         |  |
 | |                |  |    --------------
 | | -------------- |  | |->|...         |
 | | | 🤖-updater | |  | |  --------------
 | | ----------|--- |  | |->|pypi.org    |
 | | ----------V--- |  | |  --------------
 | | | 🤖-proxy --|-------->|rubygems.org|
 | | -------------- |  | |  --------------
 | -----------------|  | |->|npmjs.org   |
 |---------------------     --------------
```

# Dependabot - Community

```plaintext
--------------------------      ------------------------
| 🤖-updater (private)   |      |  🤖-core (public OSS)|
--------------------------      ------------------------
| /bin                   |      | /bin                 |
|  - run.sh fetch|update |      |  - dry-run.rb        |
| /lib                   |      | /bundler             |
|  - fetch.rb            |      |  - file_fetcher      |
|  - update.rb           |      |  - file_parser       |
| Gemfile                |      |  - file_updater      |
|  - dependabot-omnibus  |----> |  - update_checker    |
|  - dependabot-bundler  |      | /npm                 |
|  - dependabot-npm      |      | /python              |
|  - dependabot-python   |      | /...                 |
|  - dependabot-...      |      |                      |
--------------------------      ------------------------
```

**dependabot/dependabot-core** is a public repo that accepts community
contributions.

*  50+ Open Pull Requests
* 700+ Open Issues
* 140+ Contributors
* Supports:
  * Azure
  * BitBucket
  * GitHub
  * GitLab
* 15+ supported eco-systems
* Used by 56 Public Repos
* Oldest Open PR (2018)

https://github.com/dependabot/dependabot-core

# Dependabot - Community Contributions

```bash
モ gh repo clone dependabot/dependabot-core
モ cd dependabot-core
モ ./bin/docker-dev-shell
 > image dependabot/dependabot-core-development already exists

=> running docker development shell
[dependabot-core-dev] $
```

# Dependabot - Community Contributions

```bash
モ gh repo clone dependabot/dependabot-core
モ cd dependabot-core
モ ./bin/docker-dev-shell
 > image dependabot/dependabot-core-development already exists

=> running docker development shell
[dependabot-core-dev] $ ./bin/dry-run.rb go_modules cli/cli
```

# Dependabot - Community Contributions

```bash
モ gh repo clone dependabot/dependabot-core
モ cd dependabot-core
モ ./bin/docker-dev-shell
 > image dependabot/dependabot-core-development already exists

=> running docker development shell
[dependabot-core-dev] $ ./bin/dry-run.rb go_modules cli/cli
=> cloning into /home/dependabot/dependabot-core/tmp/cli/cli
=> parsing dependency files
=> updating 34 dependencies: github.com/AlecAivazis/survey/v2, github.com/MakeNowJust/heredoc, github.com/briandowns/spinner, github.com/charmbracelet/glamour, github.com/cli/browser, github.com/cli/oauth, github.com/cli/safeexec, github.com/cpuguy83/go-md2man/v2, github.com/creack/pty, github.com/gabriel-vasile/mimetype, github.com/google/go-cmp, github.com/google/shlex, github.com/gorilla/websocket, github.com/hashicorp/go-version, github.com/henvic/httpretty, github.com/itchyny/gojq, github.com/kballard/go-shellquote, github.com/mattn/go-colorable, github.com/mattn/go-isatty, github.com/mgutz/ansi, github.com/muesli/reflow, github.com/muesli/termenv, github.com/muhammadmuzzammil1998/jsonc, github.com/opentracing/opentracing-go, github.com/shurcooL/githubv4, github.com/skratchdot/open-golang, github.com/sourcegraph/jsonrpc2, github.com/spf13/cobra, github.com/spf13/pflag, github.com/stretchr/testify, golang.org/x/sync, golang.org/x/sys, golang.org/x/term, gopkg.in/yaml.v3

=== github.com/AlecAivazis/survey/v2 (2.3.2)
 => checking for updates 1/34
 => latest available version is 2.3.2
 => latest allowed version is 2.3.2
    (no update needed as it's already up-to-date)

=== github.com/MakeNowJust/heredoc (1.0.0)
 => checking for updates 2/34
 => latest available version is 1.0.0
 => latest allowed version is 1.0.0
    (no update needed as it's already up-to-date)
```

# Dependabot - Debugging Private Registries

Debugging issues related to private registries is difficult.

We're working on it. [github/dependabot-updates/pull/1956](https://github.com/github/dependabot-updates/pull/1956)

# Dependabot - Gimme some mo'

* [Rewatch: Life of  Dependabot Job](https://github.rewatch.com/video/nnat4r6492aj3bvf-life-of-a-dependabot-job)
* [0001-firecracker ADR](https://github.com/github/dependabot-updates/blob/main/docs/adrs/0001-firecracker.md)
* [Kickoff Doc: Dependabot Runtime on GHES](https://github.com/github/dependabot-updates/blob/main/docs/kickoff/2021-06-24-ghes-runtime.md)