chore: bump version to 1.0.7 and build action

This commit is contained in:
github-actions[bot]
2025-08-15 14:10:13 +00:00
parent 6b9f72594b
commit ada6be523f
3 changed files with 7 additions and 3 deletions

View File

@@ -3,6 +3,7 @@
*/
import { Octokit } from '@octokit/rest';
import { graphql } from '@octokit/graphql';
import * as core from '@actions/core';
const PlatformSettings = {
name: 'GitHub',
};
@@ -82,7 +83,7 @@ export async function collectGithub(repository) {
throw new Error(`Invalid repository format: ${repository}. Expected "owner/repo"`);
}
// Initialize Octokit for REST API calls
const token = process.env.GITHUB_TOKEN || process.env.INPUT_GITHUB_TOKEN || '';
const token = core.getInput('github-token');
const octokit = new Octokit({
auth: token,
userAgent: 'usage-statistics-tracker'