There’s a working test site, but we should document it.
Secret token
Enable tokens to be affiliated with github orgs
In class org repo Settings > Third-party Access > Personal access tokens
- Allow access via fine-grained personal access tokens > Continue
- Require approval of fine-grained personal access tokens
- Require administrator approval > Continue
- Restrict access via personal access tokens:
- Allow access via personal access tokens (classic) > Continue
- Review and click "Enroll" > click Continue
Create token affiliated with github org
Under https://github.com/settings/tokens?type=beta
Personal access tokens > Fine-grained tokens > Generate new token
- Token name: stat555-private-to-public
- Expiration: 30 days
- Description: Enable stat555 private repo to push to public repo
- Resource owner: berkeley-stat555
- Repository access: Only select repositories: berkeley-stat555/spring-2024-public
- Repository permissions: Contents > "Access: Read and write"
Generate token, and save it.
Add token as an Action secret in the private repo
- In private repo > Settings > Secrets and variables > Actions
- Click
New repository secret
- Create variable
MY_GITHUB_ACTIONS_TOKEN, or whatever the variable is named in workflow file.
- Paste in the contents of the token.
There’s a working test site, but we should document it.
Secret token
Enable tokens to be affiliated with github orgs
In class org repo Settings > Third-party Access > Personal access tokens
Create token affiliated with github org
Under https://github.com/settings/tokens?type=beta
Personal access tokens > Fine-grained tokens > Generate new token
Generate token, and save it.
Add token as an Action secret in the private repo
New repository secretMY_GITHUB_ACTIONS_TOKEN, or whatever the variable is named in workflow file.