[PHP-WEBMASTER] [web-master] main: Get config from the environment

Author: Derick Rethans (derickr)
Date: 2025-08-06T16:40:58+01:00

Commit: Get config from the environment · php/web-master@a4dc7c2 · GitHub
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'));