remove-api-key (#4)

Fix #3

Co-authored-by: Tyler Perkins <tperki17@kent.edu>
Reviewed-on: tyler/site#4
This commit is contained in:
Tyler Perkins 2022-12-02 01:53:04 +00:00
parent 7e8d7eedd2
commit 216090e83b
2 changed files with 7 additions and 2 deletions

View File

@ -23,3 +23,9 @@ Features
* [ ] Posts w/ a tagging system
* [X] Some javascript utilities
Environment Variables
---------------------
| NAME | Notes |
| ----------- | ------------------------- |
| GITEA_TOKEN | API Token to access Gitea |

View File

@ -1,8 +1,7 @@
<?php
$curl = curl_init();
curl_setopt($curl, CURLOPT_URL, "https://git.clortox.com/api/v1/repos/tyler/Resume/releases?per_page=1&access_token=96428d4ddade9a5c0892c9bceb423ce54013bf07");
curl_setopt($curl, CURLOPT_URL, "https://git.clortox.com/api/v1/repos/tyler/Resume/releases?per_page=1&access_token=" . getenv("GITEA_TOKEN"));
curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
$result = curl_exec($curl);