GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing alchemy.run — What is GitHub? What is GitHub?GitHub hosts your code, and it’s also part of how your code reaches production. Actions builds, tests and deploys on every push. Its secrets hold the credentials those deploys use. Webhooks tell your services when something happens in a repository. All of that is configuration, and Alchemy lets you declare it in the same Stack as the infrastructure it deploys. Take one setup: a repository whose Actions workflow deploys to a cloud with a credential the Stack created, and comments each preview’s URL on its pull request. The Stack stores a cloud role in the repository’s Actions secrets. A workflow run uses it to deploy, a production environment keeps its own secret for production jobs, and the run comments on the pull request. my-orgorganization my-org/apirepository DEPLOY_ROLEActions secret · every job workflow runon push or pull request
productionenvironment PROD_ROLEenvironment secret · deploy job only Accounts and organizationsSection titled “Accounts and organizations”Repositories belong to an account: a person, or an organization that many people share, with teams and permissions. Alchemy acts as whoever its GitHub token belongs to, so the token decides which repositories it can change. Connect a token once, in Setup. RepositoriesSection titled “Repositories”A repository holds code and its history, and settings: visibility, the default branch, which merge strategies are allowed, and who may push. In Alchemy, a repository is a resource that converges those settings on every deploy: Destroying the Stack keeps the repository by default. Its history is worth more than any one deploy. See Repositories. Actions: workflows that run on eventsSection titled “Actions: workflows that run on events”GitHub Actions runs workflows, YAML files in See CI for the workflows Alchemy projects use. Secrets, variables and environmentsSection titled “Secrets, variables and environments”A workflow reads its configuration from variables and its credentials from secrets, set on the repository or the organization. Secrets are encrypted and hidden in logs. An environment, like Alchemy sets them from values your Stack produces, so a credential goes from the cloud to CI without anyone copying it: See Actions secrets & variables. OIDC: credentials without secretsSection titled “OIDC: credentials without secrets”A workflow can prove which repository and branch it’s running for with an OIDC token GitHub signs. A cloud that trusts GitHub’s tokens, like an AWS role with GitHub as its identity provider, hands that one repository short-lived credentials. Nothing long-lived is stored anywhere. The AWS CI tutorial sets this up as code. WebhooksSection titled “Webhooks”A webhook sends an HTTP request to a URL whenever an event happens in a repository: a push, a pull request opened, an issue commented on. Each request is signed with a secret, so the receiver can tell it came from GitHub. In Alchemy, a Worker can subscribe to a repository’s events directly, and receive each one typed: See Webhooks & events. Pull request commentsSection titled “Pull request comments”A comment on a pull request is how CI reports back: the preview URL, a plan, a test summary. Alchemy’s How @alchemy.run/github models these conceptsSection titled “How @alchemy.run/github models these concepts”Each of these concepts is something your Stack declares. Your token picks the account, and Next, read the concepts in depth, starting with Repositories. |
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |