You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Been out of practice for awhile so apologies for the fairly pedestrian question. I am wanting to use Github Pages to host my public repository (I can't pay for the accounts that offer Github Pages from private repos). I am authenticating to the Github API via Fine-grained PAT in attempt to showcase my Github repositories. This works fine until I run a CI/CD deploy script or push changes - when doing so, my access token is immediately revoked.
It is clear why from the docs: "If a valid OAuth token, GitHub App token, or personal access token is pushed to a public repository or public gist, the token will be automatically revoked."
However, I am passing this token as an environment variable which is not being tracked by git or Github. Would anyone be able to weigh in on why, then, my access continues to be revoked on push or deploy? I've emptied build caches, etc.
PagesHost a static website, right from your repoQuestion
1 participant
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Select Topic Area
Question
Body
Hi everyone,
Been out of practice for awhile so apologies for the fairly pedestrian question. I am wanting to use Github Pages to host my public repository (I can't pay for the accounts that offer Github Pages from private repos). I am authenticating to the Github API via Fine-grained PAT in attempt to showcase my Github repositories. This works fine until I run a CI/CD deploy script or push changes - when doing so, my access token is immediately revoked.
It is clear why from the docs: "If a valid OAuth token, GitHub App token, or personal access token is pushed to a public repository or public gist, the token will be automatically revoked."
However, I am passing this token as an environment variable which is not being tracked by git or Github. Would anyone be able to weigh in on why, then, my access continues to be revoked on push or deploy? I've emptied build caches, etc.
Thanks in advance
Beta Was this translation helpful? Give feedback.
All reactions