Open5

terraform-aws-github-runner導入メモ

dehio3dehio3

作られるSSMパラメーター

  • gh-ci-cloudwatch_agent_config_runner
  • /gh-ci/runner/agent-mode
  • /gh-ci/runner/run-as
  • /gh-ci/runner/enable-cloudwatch
  • /actions_runner/gh-ci/github_app_id
    • 作成したGitHubAPPのID
  • /actions_runner/gh-ci/github_app_key_base64
  • /actions_runner/gh-ci/github_app_webhook_secret
dehio3dehio3

GitHubAPI

setup gh

https://github.com/cli/cli
https://cli.github.com/manual/

### install
$ brew install gh
$ gh --version
gh version 2.11.3 (2022-05-25)
https://github.com/cli/cli/releases/tag/v2.11.3
### auth
$ gh auth login 
? What account do you want to log into? GitHub.com
? What is your preferred protocol for Git operations? HTTPS
? Authenticate Git with your GitHub credentials? Yes
? How would you like to authenticate GitHub CLI? Login with a web browser

! First copy your one-time code: ****-****
Press Enter to open github.com in your browser... 
✓ Authentication complete.
- gh config set -h github.com git_protocol https
✓ Configured git protocol
✓ Logged in as dehio3

List self-hosted runners for an organization

https://docs.github.com/ja/rest/actions/self-hosted-runners#list-self-hosted-runners-for-an-organization