Skip to content

Commit bb84e72

Browse files
committed
ci: drop the PAT — this account has no private work
github_token defaults to the workflow's own GITHUB_TOKEN, which reads every public contribution. The only field a PAT adds is restrictedContributionsCount, and there is none to read here. Running the default path also means this repo exercises exactly what a first-time user gets, so it notices if that ever breaks.
1 parent 527e15b commit bb84e72

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

.github/workflows/mainquest.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,12 @@ jobs:
2222

2323
- uses: Codestz/mainquest@v1
2424
with:
25-
# A PAT with read:user. GITHUB_TOKEN's scope for user-level
26-
# contribution queries is inconsistent and will not return
27-
# restrictedContributionsCount, so private work would vanish from the
28-
# card. Falls back to GITHUB_TOKEN so the first run still works
29-
# before the secret exists — the card will just show 0 sealed.
30-
github_token: ${{ secrets.MAINQUEST_PAT || secrets.GITHUB_TOKEN }}
25+
# No github_token. It defaults to this workflow's own GITHUB_TOKEN,
26+
# which reads every public contribution. The only thing it cannot
27+
# read is restrictedContributionsCount — and this account has no
28+
# private work, so there is nothing for a PAT to add. Running the
29+
# same path a first-time user gets also means this repo notices if
30+
# that path ever breaks.
3131
username: Codestz
3232
outputs: public/stats
3333
cards: status,abilities

0 commit comments

Comments
 (0)