[web-master] main: Get config from the environment
| From: | Derick Rethans | Date: | Wed, 06 Aug 2025 15:55:10 +0000 |
| Subject: | [web-master] main: Get config from the environment | ||
| Groups: | php.webmaster | ||
| Request: | Send a blank email to php-webmaster+get-33083@lists.php.net to get a copy of this message | ||
Author: Derick Rethans (derickr)
Date: 2025-08-06T16:40:58+01:00
Commit: https://github.com/php/web-master/commit/a4dc7c24da439c04cf77d3f71a56905ad1d549f7
Raw diff: https://github.com/php/web-master/commit/a4dc7c24da439c04cf77d3f71a56905ad1d549f7.diff
Get config from the environment
Changed paths:
A github-config.php
M .gitignore
Diff:
diff --git a/.gitignore b/.gitignore
index 70faa0d..e52e2ee 100644
--- a/.gitignore
+++ b/.gitignore
@@ -2,4 +2,3 @@
.token
.token_flickr
tags
-github-config.php
diff --git a/github-config.php b/github-config.php
new file mode 100644
index 0000000..000dde0
--- /dev/null
+++ b/github-config.php
@@ -0,0 +1,3 @@
+<?php
+define('GITHUB_CLIENT_ID', getenv('GITHUB_CLIENT_ID'));
+define('GITHUB_CLIENT_SECRET', getenv('GITHUB_CLIENT_SECRET'));