GitHub API:个人访问令牌会自动删除
我需要访问Github GraphQL API,以便每N小时永久发出以下请求:GitHub API:个人访问令牌会自动删除,github,token,access-token,github-api,Github,Token,Access Token,Github Api,我需要访问Github GraphQL API,以便每N小时永久发出以下请求: query($ids: [ID!]!) { rateLimit { cost remaining resetAt } nodes(ids: $ids) { ... on Repository { milestones(last: 100) { nodes { issues(last: 100) {
query($ids: [ID!]!) {
rateLimit {
cost
remaining
resetAt
}
nodes(ids: $ids) {
... on Repository {
milestones(last: 100) {
nodes {
issues(last: 100) {
nodes {
closedAt
closed
}
}
state
dueOn
}
}
}
}
}
您可能会将令牌提交到GitHub repo。如果是这样,Github将立即删除令牌。因此,您需要将令牌设置为系统中的可变环境 您可能将令牌提交给GitHub repo。如果是这样,Github将立即删除令牌。因此,您需要将令牌设置为系统中的可变环境 如何将令牌设置为可变环境?是使用.env吗?如何将令牌设置为可变环境?它是通过使用.env实现的吗?