René's URL Explorer Experiment


Title: Add method to set secret after Webhook.__init__ by mtreinish · Pull Request #19 · bloomberg/python-github-webhook · GitHub

Open Graph Title: Add method to set secret after Webhook.__init__ by mtreinish · Pull Request #19 · bloomberg/python-github-webhook

X Title: Add method to set secret after Webhook.__init__ by mtreinish · Pull Request #19 · bloomberg/python-github-webhook

Description: Currently a secret can only be set when the Webhook object is initialized. However, this limits your options for how you can load in the secret. For example, if a user's flask app parses a config file using the flask before_first_request decorator and they wanted to store the secret in that config file, then the only way to edit the value of the secret is by directly setting a private attribute of the object after initialization. This commit attemps to address this issue and support the use case where the config is after the Webhook object is initialized. It does this by adding a new public method, set_secret(), which can be used to set the set secret value for the webhook object just as if it was passed in as a kwarg to init(). Signed-off-by: Matthew Treinish mtreinish@kortar.org

Open Graph Description: Currently a secret can only be set when the Webhook object is initialized. However, this limits your options for how you can load in the secret. For example, if a user's flask app parses a conf...

X Description: Currently a secret can only be set when the Webhook object is initialized. However, this limits your options for how you can load in the secret. For example, if a user's flask app parses a ...

Opengraph URL: https://github.com/bloomberg/python-github-webhook/pull/19

X: @github

direct link

Domain: github.com

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:98a5e0dc-1a2e-7b7d-9f08-e806a1aa2d06
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idD44A:B0D00:A83534:E43DCE:6AFE6717
html-safe-noncee41032ab59302d4b91364f1c2c7a63aa589fa30a61fbd5597e132c6314aee108
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENDRBOkIwRDAwOkE4MzUzNDpFNDNEQ0U6NkFGRTY3MTciLCJ2aXNpdG9yX2lkIjoiNzk1ODAwNTI4ODA1MTU2NjM1OSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacef4c569f37c16112e89663e1e19542dfb35be1025e734f47ada82d8478df336f
hovercard-subject-tagpull_request:313813071
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/bloomberg/python-github-webhook/pull/19/files
twitter:imagehttps://avatars.githubusercontent.com/u/2447371?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/2447371?s=400&v=4
og:image:altCurrently a secret can only be set when the Webhook object is initialized. However, this limits your options for how you can load in the secret. For example, if a user's flask app parses a conf...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
Noneb3c0f155eafc27e60db6e254d1ffff0e072e9ab3b4018a5ee518797c19d89f86
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/bloomberg/python-github-webhook git https://github.com/bloomberg/python-github-webhook.git
octolytics-dimension-user_id1416818
octolytics-dimension-user_loginbloomberg
octolytics-dimension-repository_id50692237
octolytics-dimension-repository_nwobloomberg/python-github-webhook
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id50692237
octolytics-dimension-repository_network_root_nwobloomberg/python-github-webhook
turbo-body-classeslogged-out env-production page-responsive
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release4a10310af51a1bfffbedc4fd81cb582acf0cb0ff
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/bloomberg/python-github-webhook/pull/19/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fbloomberg%2Fpython-github-webhook%2Fpull%2F19%2Ffiles
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fbloomberg%2Fpython-github-webhook%2Fpull%2F19%2Ffiles
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=bloomberg%2Fpython-github-webhook
Reloadhttps://github.com/bloomberg/python-github-webhook/pull/19/files
Reloadhttps://github.com/bloomberg/python-github-webhook/pull/19/files
Reloadhttps://github.com/bloomberg/python-github-webhook/pull/19/files
bloomberghttps://github.com/bloomberg
python-github-webhookhttps://github.com/bloomberg/python-github-webhook
Codehttps://github.com/bloomberg/python-github-webhook
Issues8 (8)https://github.com/bloomberg/python-github-webhook/issues
Pull requests6 (6)https://github.com/bloomberg/python-github-webhook/pulls
Actionshttps://github.com/bloomberg/python-github-webhook/actions
Security and qualityhttps://github.com/bloomberg/python-github-webhook/security
Insightshttps://github.com/bloomberg/python-github-webhook/insights
mtreinishhttps://github.com/mtreinish
bloomberg:masterhttps://github.com/bloomberg/python-github-webhook/tree/master
mtreinish:add-method-to-set-secret-post-inithttps://github.com/mtreinish/python-github-webhook/tree/add-method-to-set-secret-post-init
Conversation 1 https://github.com/bloomberg/python-github-webhook/pull/19
Commits 1 https://github.com/bloomberg/python-github-webhook/pull/19/commits
Checks 0 https://github.com/bloomberg/python-github-webhook/pull/19/checks
Files changed https://github.com/bloomberg/python-github-webhook/pull/19/files
Please reload this pagehttps://github.com/bloomberg/python-github-webhook/pull/19/files
Add method to set secret after Webhook.__init__ https://github.com/bloomberg/python-github-webhook/pull/19/files#top
Show all changes 1 commit https://github.com/bloomberg/python-github-webhook/pull/19/files
69026a0 Add method to set secret after Webhook.__init__ mtreinish Sep 4, 2019 https://github.com/bloomberg/python-github-webhook/pull/19/commits/69026a06e66152f2d21370a0ba4f131966c6847f
Clear filters https://github.com/bloomberg/python-github-webhook/pull/19/files
Please reload this pagehttps://github.com/bloomberg/python-github-webhook/pull/19/files
Please reload this pagehttps://github.com/bloomberg/python-github-webhook/pull/19/files
github_webhook/webhook.pyhttps://github.com/bloomberg/python-github-webhook/pull/19/files#diff-a1685606f294a81cc2f1824a86b25d653eb2c0d3084ca57fb75d2f40072a56e2
View file https://github.com/mtreinish/python-github-webhook/blob/69026a06e66152f2d21370a0ba4f131966c6847f/github_webhook/webhook.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/bloomberg/python-github-webhook/pull/19/{{ revealButtonHref }}
https://github.com/bloomberg/python-github-webhook/pull/19/files#diff-a1685606f294a81cc2f1824a86b25d653eb2c0d3084ca57fb75d2f40072a56e2
https://github.com/bloomberg/python-github-webhook/pull/19/files#diff-a1685606f294a81cc2f1824a86b25d653eb2c0d3084ca57fb75d2f40072a56e2
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.