mirror of
https://github.com/iptv-org/iptv
synced 2026-11-29 12:35:07 -05:00
fix: authenticate the GitHub requests made by loadIssues
loadIssues created its Octokit client without a token, so the daily update workflow lists the open issues anonymously, with the 60 requests per hour quota shared by the runner's IP. When that quota is used up, playlist:update dies with "API rate limit exceeded" before processing any approved request (runs 45297945861 and 44426790374). Pass GITHUB_TOKEN to the client, as loadDiscussions already does, and give the update step the app token, as validate_discussion.yml does.
This commit is contained in:
2 files changed
+5
-1
No files matched your search
+3
-1
@@ -243,7 +243,9 @@ export function parseStreamInfo(url: string, data: string): StreamInfo | undefin
|
||||
|
||||
export async function loadIssues(props?: { labels: string | string[] }) {
|
||||
const CustomOctokit = Octokit.plugin(paginateRest, restEndpointMethods)
|
||||
const octokit = new CustomOctokit()
|
||||
const octokit = new CustomOctokit({
|
||||
auth: process.env.GITHUB_TOKEN
|
||||
})
|
||||
|
||||
let labels = ''
|
||||
if (props && props.labels) {
|
||||
|
||||
Reference in new issue
Block a user