Skip to content

Document private-to-public publishing #3

@ryanlovett

Description

@ryanlovett

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

  1. Allow access via fine-grained personal access tokens > Continue
  2. Require approval of fine-grained personal access tokens
  3. Require administrator approval > Continue
  4. Restrict access via personal access tokens:
  5. Allow access via personal access tokens (classic) > Continue
  6. 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

  1. In private repo > Settings > Secrets and variables > Actions
  2. Click New repository secret
  3. Create variable MY_GITHUB_ACTIONS_TOKEN, or whatever the variable is named in workflow file.
  4. Paste in the contents of the token.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions