๐Ÿ“—
smiley book
  • Smiley Books
  • AI
    • Readme
    • openai-whisper
      • ์ƒ˜ํ”Œ ์‹คํ–‰ํ•ด๋ณด๊ธฐ
      • GPU ์„œ๋ฒ„ ์ค€๋น„ํ•˜๊ธฐ
      • API๋กœ whisper๋ฅผ ์™ธ๋ถ€์— ์˜คํ”ˆํ•˜๊ธฐ
      • ํ”„๋กฌํ”„ํŠธ ์ง€์›
      • ์‹ค์‹œ๊ฐ„ message chat
      • ํ™”๋ฉด ์ด์˜๊ฒŒ ๋งŒ๋“ค๊ธฐ์™€ ๋กœ๊ทธ์ธ
      • ํŒŒ์ด์ฌ ๊ฐ€์ƒํ™˜๊ฒฝ
      • ์‹ค์‹œ๊ฐ„ voice chat
      • fine tunning(๋ฏธ์„ธ ์กฐ์ •) ์œผ๋กœ ์„ฑ๋Šฅ ์˜ฌ๋ฆฌ๊ธฐ
      • app์—์„œ api๋ฅผ ํ˜ธ์ถœํ•˜์—ฌ ์‹ค์‹œ๊ฐ„์œผ๋กœ ํ…์ŠคํŠธ๋กœ ๋ฐ”๊ฟ”๋ณด๊ธฐ
    • ollama - llm์„ ์‰ฝ๊ฒŒ ๋‚ด์ปด์—์„œ ์‹คํ–‰
      • ollama webui
      • ollama docker
    • stable diffusion
      • SDXL - text to image
      • SD-webui
    • ChatGPT
      • ๋‹ต๋ณ€์ด ๋Š๊ธธ๋•Œ
      • ์—ญํ• ์„ ์ •ํ•˜์ž
      • ๊ตฌ์ฒด์ ์ธ ์งˆ๋ฌธ
      • ๊ฒฐ๊ณผํ˜•ํƒœ๋ฅผ ์ง€์ •
      • ํ”„๋กฌํ”„ํŠธ๋ฅผ ์—ฌ๋Ÿฌ์ค„๋กœ ์‚ฌ์šฉํ•˜์ž.
      • ๋งˆํ‹ด ํŒŒ์šธ๋Ÿฌ ๊ธ€ ๋ฒˆ์—ญ๋ณธ
    • Prompt Engineering
    • Auto-GPT
    • Gemini
      • google ai studio
      • gemini-api
      • embedding guide
    • Huggingface
      • huggingface ์‚ฌ์šฉ๋ฒ•
      • huggingface nlp ๊ณต๋ถ€์ค‘
    • kaggle
      • download dataset
    • langchain
      • langchain์„ ๊ณต๋ถ€ํ•˜๋ฉฐ ์ •๋ฆฌ
      • basic
      • slackbot
      • rag
      • document-loader
      • website-loader
      • confluence
      • memory
      • function-call
      • langsmith
      • agent-toolkit
  • Ansible
    • templates vs files and jinja2
    • dynamic inventory
    • limit ์˜ต์…˜ ๊ฐ•์ œํ•˜๊ธฐ
    • limit ์‚ฌ์šฉํ›„ gather_fact ๋ฌธ์ œ
  • AWS
    • AWS CLI
    • EKS
      • cluster manage
      • ALB Controller
      • external-dns
      • fargate
    • ECR
    • S3
    • Certificate Manager
  • Azure
    • Azure AD OAuth Client Flow
  • Container
    • Registry
    • ๋นŒ๋“œ์‹œ์— env๊ฐ’ ์„ค์ •ํ•˜๊ธฐ
  • DB
    • PXC
      • Operator
      • PMM
      • ์‚ญ์ œ
      • GTID
      • Cross Site Replication
    • Mssql
    • Mysql
  • dotnet
    • Thread Pool
    • Connection Pool
    • Thread Pool2
  • Devops
    • Recommendation
  • GIT
    • Basic
    • Submodule
  • GitHub
    • Repository
    • GitHub Action
    • GitHub PR
    • Self Hosted Runner
    • GitHub Webhook
  • GitLab
    • CI/CD
    • CI/CD Advance
    • Ssl renew
    • CI/CD Pass env to other job
  • Go Lang
    • ๊ฐœ๋ฐœ ํ™˜๊ฒฝ ๊ตฌ์ถ•
    • multi os binary build
    • kubectl๊ฐ™์€ cli๋งŒ๋“ค๊ธฐ
    • azure ad cli
    • embed static file
    • go study
      • pointer
      • module and package
      • string
      • struct
      • goroutine
  • Kubernetes
    • Kubernetes๋Š” ๋ฌด์—‡์ธ๊ฐ€
    • Tools
    • Install with kubespray
    • Kubernetes hardening guidance
    • 11 ways not to get hacked
    • ArgoCD
      • Install
      • CLI
      • Repository
      • Apps
      • AWS ALB ์‚ฌ์šฉ
      • Notification slack
      • Backup / DR
      • Ingress
      • 2021-11-16 Github error
      • Server Config
      • auth0 ์ธ์ฆ ์ถ”๊ฐ€(oauth,OIDC)
    • Extension
      • Longhorn pvc
      • External dns
      • Ingress nginx
      • Cert Manager
      • Kube prometheus
    • Helm
      • Subchart
      • Tip
    • Loki
    • Persistent Volume
    • TIP
      • Job
      • Pod
      • Log
  • KAFKA
    • raft
  • KVM
    • kvm cpu model
  • Linux
    • DNS Bind9
      • Cert-Manager
      • Certbot
      • Dynamic Update
      • Log
    • Export and variable
    • Grep ์‚ฌ์šฉ๋ฒ•
  • Modeling
    • C4 model introduce
    • Mermaid
    • reference
  • Monitoring
    • Readme
    • 0. What is Monitoring
    • 1. install prometheus and grafana
    • 2. grafana provisioning
    • 3. grafana dashboard
    • 4. grafana portable dashboard
    • 5. prometheus ui
    • 6. prometheus oauth2
    • Prometheus
      • Metric type
      • basic
      • rate vs irate
      • k8s-prometheus
    • Grafana
      • Expolorer
    • Node Exporter
      • advance
      • textfile collector
  • Motivation
    • 3 Simple Rule
  • OPENNEBULA
    • Install(ansible)
    • Install
    • Tip
    • Windows vm
  • Reading
    • comfort zone
    • ๋ฐฐ๋ ค
    • elon musk 6 rule for insane productivity
    • Feynman Technique
    • how to interview - elon musk
    • ๊ฒฝ์ฒญ
    • Readme
  • Redis
    • Install
    • Master-slave Architecture
    • Sentinel
    • Redis Cluster
    • Client programming c#
  • SEO
    • Readme
  • Security
    • criminalip.io
      • criminalip.io
  • Stock
    • robinhood-python
  • Terraform
    • moved block
    • output
  • vault
    • Readme
  • VS Code
    • dev container
    • dev container on remote server
  • Old fashione trend
    • curity
    • MAAS
      • Install maas
      • Manage maas
      • Tip
Powered by GitBook
On this page
  • ๋ชฉํ‘œ
  • create a webhook
  • payload
  • header
  • webapi์„œ๋ฒ„ ๋งŒ๋“ค๊ธฐ
  • test
  • ์ถ”๊ฐ€

Was this helpful?

  1. GitHub

GitHub Webhook

PreviousSelf Hosted RunnerNextCI/CD

Last updated 1 year ago

Was this helpful?

๋ชฉํ‘œ

github์— ํ‘ธ์‹œ๊ฐ€ ๋˜๋ฉด webhook์„ ์‚ฌ์šฉํ•ด์„œ ํŠน์ • ์„œ๋ฒ„์— ํ†ต๋ณดํ•œ๋‹ค.

Settings > webHooks >> Add Webhook

let me select individual events๋ฅผ ์„ ํƒํ•˜๋ฉด ์˜ต์…˜์ด ๋‚˜์˜ค๋Š”๋ฐ ์„ ํƒํ•˜๋ฉด๋œ๋‹ค.

๋‚˜๋Š” ๊ธฐ๋ณธ์ ์œผ๋กœ just the push event๋งŒ ์„ ํƒํ–‡๋‹ค.

create a webhook

content type์€ ๊ทธ๋ฆผ๊ณผ ๋‹ค๋ฅด๊ฒŒ application/json์œผ๋กœ ์„ ํƒํ–ˆ๋‹ค.

์ด์ œ ํ‘ธ์‹œ๊ฐ€ ๋“ค์–ด์˜ค๋ฉด ์›นํ›…์ด ํ˜ธ์ถœ๋œ๋‹ค.

payload

ํŽ˜์ด๋กœ๋“œ๋Š” 25MB๋กœ ์ œํ•œ๋ฉ๋‹ˆ๋‹ค. ์ด๋ฒคํŠธ๊ฐ€ ๋” ํฐ ํŽ˜์ด๋กœ๋“œ๋ฅผ ์ƒ์„ฑํ•˜๋Š” ๊ฒฝ์šฐ, GitHub๋Š” ํ•ด๋‹น ์›นํ›… ์ด๋ฒคํŠธ์— ๋Œ€ํ•œ ํŽ˜์ด๋กœ๋“œ๋ฅผ ์ œ๊ณตํ•˜์ง€ ์•Š์Šต๋‹ˆ๋‹ค.

header

  • X-GitHub-Hook-ID: The unique identifier of the webhook.

  • X-GitHub-Event: The name of the event that triggered the delivery.

  • X-GitHub-Delivery: A globally unique identifier (GUID) to identify the delivery.

  • X-Hub-Signature: This header is sent if the webhook is configured with a secret. This is the HMAC hex digest of the request body, and is generated using the SHA-1 hash function and the secret as the HMAC key. X-Hub-Signature is provided for compatibility with existing integrations. We recommend that you use the more secure X-Hub-Signature-256 instead.

  • X-Hub-Signature-256: This header is sent if the webhook is configured with a secret. This is the HMAC hex digest of the request body, and is generated using the SHA-256 hash function and the secret as the HMAC key. For more information, see "Validating webhook deliveries."

  • User-Agent: This header will always have the prefix GitHub-Hookshot/.

  • X-GitHub-Hook-Installation-Target-Type: The type of resource where the webhook was created.

  • X-GitHub-Hook-Installation-Target-ID: The unique identifier of the resource where the webhook was created.

webapi์„œ๋ฒ„ ๋งŒ๋“ค๊ธฐ

๊ฐ„๋‹จํžˆ webapi์„œ๋ฒ„๋ฅผ ๋งŒ๋“ค๊ณ  ๋””๋น„๋ฅผ ๋งŒ๋“ค์–ด์„œ ๋ฆฌํ€˜์ŠคํŠธ๋ฅผ ๋ฐ›์•„๋ณด๋ฉด ๋ ๊ฑฐ๊ฐ™๋‹ค.

test

git push๋ฅผ ํ•ด๋ณด์ž.

์‹ค์„œ๋ฒ„์—์„œ ๋ฆฌํ€˜์ŠคํŠธ๊ฐ€ ๋“ค์–ด์˜จ๊ฒƒ์„ ์•Œ์ˆ˜์žˆ๋‹ค.

payload๋ฅผ ํ™•์ธํ•˜์—ฌ ๋””๋น„์— ์ €์žฅํ•˜๋ฉด ๋

์—ฌ๊ธฐ์„œ ์‹คํ–‰๋œ ๊ฒฐ๊ณผ๋ฅผ ๋ณผ์ˆ˜ ์žˆ๊ณ  ์‹ค์ œ payload๋ฅผ ํ™•์ธํ• ์ˆ˜ ์žˆ๋‹ค.

์‹คํŒจํ•˜๋ฉด ์•Œ๋ฆผ๋งˆํฌ๊ฐ€ ๋ณด์ธ๋‹ค.

์ถ”๊ฐ€

์ฐธ๊ณ ๋กœ webhook๋ฅผ ๋ฐ”๋กœ ์“ฐ์ง€ ์•Š๊ณ  action์„ ์จ์„œ webhook์„ ๋ฐœ์ƒ์‹œํ‚ฌ์ˆ˜ ์žˆ๋‹ค.

์ด๊ฑธ yaml์— ์‚ฌ์šฉํ•˜๋ฉด ๋œ๋‹ค.

https://github.com/marketplace/actions/workflow-webhook-action
alt text
alt text
alt text
alt text
alt text
alt text
alt text