GitHub Concepts: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
Line 39: Line 39:
{{External|https://help.github.com/en/articles/creating-a-personal-access-token-for-the-command-line}}
{{External|https://help.github.com/en/articles/creating-a-personal-access-token-for-the-command-line}}


A personal access token is a piece of information that <font color=darkgray>more here... </font>. A personal access token is similar to a password, in that they should be protected carefully. They can (very cautiously) placed in scripts, when building automated CI/CD pipelines. The advantage of using a token instead of a password is that the tokens can be revoked, and then a lot of them can be created.
A personal access token is a piece of information that <font color=darkgray>more here... </font>. GitHub grants access to whoever makes a HTTPS invocation and presents this token. A personal access token is similar to a password, in that they should be protected carefully. They can though placed in scripts, when building automated CI/CD pipelines. The advantage of using a token instead of a password is that the tokens can be revoked, and then a lot of them can be created.


=OAuth Token=
=OAuth Token=

Revision as of 22:28, 13 March 2019

Internal

Webhooks

https://developer.github.com/webhooks/

A webhook is a mechanism that triggers a HTTP POST invocation into the webhook's external URL, every time a specific event occurs.

A webhook can be installed on an organization or on a specific repository. Once installed, it will be triggered each time one or more subscribed events happen in that organization/repository.

Can be set via UI: Repository -> Settings -> Options: Webhooks.

Webhook Secret

Used by OpenShift for its S2I build strategy.

Pull-Request

Usually, a pull request is initiated from a feature branch and indicates the intent to merge with the develop branch. It is possible to initiate pull requests from a previously cloned repository as well.

The pull requests have to be reviewed, approved and explicitly applied by the owner of the parent repository.

Also see Git cloning.

Required Reviews for Pull Requests

Required Reviews for Pull Requests

Code Owners

Code Owners

Protected Branch

Personal Access Token

https://help.github.com/en/articles/creating-a-personal-access-token-for-the-command-line

A personal access token is a piece of information that more here... . GitHub grants access to whoever makes a HTTPS invocation and presents this token. A personal access token is similar to a password, in that they should be protected carefully. They can though placed in scripts, when building automated CI/CD pipelines. The advantage of using a token instead of a password is that the tokens can be revoked, and then a lot of them can be created.

OAuth Token

https://help.github.com/en/articles/git-automation-with-oauth-tokens

OAuth Apps

https://developer.github.com/apps/building-oauth-apps/authorizing-oauth-apps/