remove-api-key #4
@ -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 |
|
||||
|
@ -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);
|
||||
|
Reference in New Issue
Block a user