remove-api-key #4

Merged
tyler merged 2 commits from remove-api-key into master 2022-12-02 01:53:05 +00:00
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);