ahmadnassri / action-template-repository-sync

Keep projects in sync with the template repository they came from
MIT License
10 stars 5 forks source link

fix(octokit): trying a diff auth method for octokit #159

Closed ruxandrafed closed 3 months ago

ruxandrafed commented 3 months ago

@actions/github uses @octokit/core https://github.com/actions/toolkit/blob/main/packages/github/src/utils.ts#L5

@octokit/core docs mention this way of authentication https://github.com/octokit/core.js?tab=readme-ov-file#authentication

if we pass it this way it should be picked up instead of token https://github.com/actions/toolkit/blob/main/packages/github/src/internal/utils.ts#L16