You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The **GitHub Gist** source plugin uses GitHub's `gist API`_ to find new gists created by a user, and create a :ref:`Task artifact <task-artifact>` for each.
7
+
8
+
Configuration Options
9
+
~~~~~~~~~~~~~~~~~~~~~
10
+
11
+
* ``module`` (required): ``github_gist``
12
+
* ``user`` (required): Username of the gist owner.
13
+
* ``username`` (optional): Username for authentication.
14
+
* ``token`` (optional): Token or password for authentication.
15
+
16
+
Example Configuration
17
+
~~~~~~~~~~~~~~~~~~~~~
18
+
19
+
The following examples all assume GitHub credentials have already been
20
+
configured in the ``credentials`` section of the config, like this:
21
+
22
+
.. code-block:: yaml
23
+
24
+
credentials:
25
+
- name: github-auth
26
+
username: myuser
27
+
token: MYTOKEN
28
+
29
+
.. note::
30
+
31
+
GitHub credentials are optional, but increase the rate limit for API
32
+
requests *significantly*. If you are doing more than one or two low-
33
+
volume searches, you should set up the credentials.
34
+
35
+
Inside the ``sources`` section of your configuration file:
36
+
37
+
.. code-block:: yaml
38
+
39
+
- name: github-gist-search
40
+
credentials: github-auth
41
+
module: github_gist
42
+
user: InQuest
43
+
44
+
.. _github gist user API: https://docs.github.com/en/rest/gists/gists#list-gists-for-a-user
0 commit comments