Skip to content

Documentation for the Screenful GitHub integration

License

Notifications You must be signed in to change notification settings

Screenful/GitHubDocs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 

Repository files navigation

GitHubDocs

Documentation for the Screenful GitHub integration

How to: authorise GitHub so that Screenful has only read-only access

Pre-requisites:

How-to

  1. Create a new bot/service-account github user via github signup.

    • note: the bot/service-account should have only pull access to repositories. If you have an existing bot you can re-use, you can. Be aware of privilege escalation for that user.
  2. Set up https://registry.terraform.io/providers/integrations/github/latest/docs terraform/github.

  3. Configure terraform github_membership to invite the bot to the org:

    resource "github_membership" "bot" {
      username = "robot-github-username-customize-this"
      role     = "member"
    }
  4. Configure terraform github_team to make a new bots-readonly team (teams permission-assignment is lower maintenance than managing individual users):

    resource "github_team" "bots-readonly" {
      name       = "bots-readonly"
    }
  5. Configure terraform github_team_membership to place the user in the team:

    resource "github_team_membership" "bot-is-member-of-bots-readonly" {
      team_id  = github_team.bots-readonly.id
      username = github_membership.bot.username
      role     = "member"
    }
  6. Configure n github_repository resources to grant access to via team/repo linkage (in next step):

    resource "github_repository" "some-repo" {
      name = "..."
      # ...
    }
  7. Configure terraform github_team_repository to grant read-only access to the team to the repositories you want to wire up:

    resource "github_team_repository" "bots-readonly-can-pull-from-some-repo" {
      team_id    = github_team.bots-readonly.id
      repository = github_repository.some-repo.name
      permission = "pull"
    }
    # ... n times, 1 per repo
  8. terraform apply, and yes if the changes look good to you.

  9. as the bot, sign up to screenful.com

  10. as a github org-admin, accept the invite - https://github.com/organizations/ORG_NAME/settings/oauth_application_policy

  11. as the bot in screenful, add github data source(s)

Caveats

  1. The user (like all users in your org) will inherit the org's Member privileges > Base permissions.

About

Documentation for the Screenful GitHub integration

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published