Use env vars

This commit is contained in:
schroda
2025-08-02 23:13:50 +02:00
parent 4f5754399b
commit 5543e134fa
16 changed files with 63 additions and 46 deletions

View File

@@ -6,7 +6,7 @@
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
*/
import tokens from '../tokens.json';
import 'dotenv/config';
type GithubAuthor = {
name: string;
@@ -115,7 +115,7 @@ const fetchCommits = async (
method: 'POST',
headers: {
'Content-Type': 'application/json',
Authorization: `Bearer ${tokens.githubToken}`,
Authorization: `Bearer ${process.env.GITHUB_TOKEN}`,
},
body: JSON.stringify({ query, variables }),
})