Maintainer notes
Renewing SCREENSHOT_UPLOAD_TOKEN
The workflow that comments on PRs (.github/workflows/publish-pr-screenshot.yml) uses this repository secret to upload screenshots as GitHub attachments. When the token expires or is revoked, nothing breaks: screenshots go to the ci-screenshots release instead, and the log of the “Upload images” step shows Attachment upload failed (HTTP 401 ...). GitHub emails the token’s owner about a week before it expires.
To renew, create a new token of the same kind as before, with the same account.
Fine-grained token
- github.com/settings/personal-access-tokens/new
- Token name:
appimage.github.io screenshot upload. Expiration: e.g. 1 year. - Resource owner:
AppImage. Repository access: Only select repositories →AppImage/appimage.github.io. - Repository permissions, set to Read and write: Contents, Issues, Pull requests.
- Generate token, then copy it.
- If the organization requires approval: github.com/organizations/AppImage/settings/personal-access-token-requests → approve.
Classic token
- Sign in as the account used before, ideally a bot account with Write access to this repository only.
- github.com/settings/tokens/new
- Note:
appimage.github.io screenshot upload. Expiration: e.g. 1 year. Scopes: onlypublic_repo. - Generate token, then copy it.
Store it
- github.com/AppImage/appimage.github.io/settings/secrets/actions
SCREENSHOT_UPLOAD_TOKEN→ edit (pencil icon) → paste the new token → Update secret.- Delete the old token in the account’s token settings.
Check it: after the next PR test, the comment’s image URL starts with https://github.com/user-attachments/assets/, and the “Upload images” log says Uploaded ... as a GitHub attachment. To check right away, close and reopen an open PR whose test passes.