- Click “Generate new token” → “Fine-grained token”
- Name the token and set an expiration (recommended).
- Select the repository you want it to access (this repo).
- Permissions: Under Repository Permissions: Actions → Read and Write Contents → Read-only (or Read & Write if needed)
- Generate the token and copy it immediately (you won’t see it again).
A. Generate the Fine-Grained PAT (only works if you select the repo with the container registry)
-
Go to https://github.com/settings/personal-access-tokens → Fine-grained tokens
-
Repository access: Select the specific repository where the image lives. Permissions: Packages → ✅ Read access Contents → ✅ (optional if cloning is needed) 🔐 This token can now access GHCR images built from that one repo.
B. Use a classic token, with packages:read and repo
Same as above, but give access to CoolProp instead
curl -X POST https://api.github.com/repos/CoolProp/devdocs/dispatches \
-H "Accept: application/vnd.github+json" \
-H "Authorization: token github_pat_11AAOh" \
-d '{"event_type":"triggered-by-CoolProp-main","client_payload":{"example":"data"}}'