Integrations
GitHub Actions
Deploy gate, on request.
Overview
On request: a GitHub Actions job can run the Zof deploy gate, which asks Zof whether a commit may ship. Zof switches the gate on for your company. The repository must be on GitHub, which Zof works with today.
Zof answers from the checks on the commit's pull request. The step passes only when Zof allows the deploy. When Zof cannot answer, the step fails and the deploy stops.
Prerequisites
- A company admin in the Zof console
- The repository connected to Zof through the Zof GitHub App
- The deploy gate switched on for your company: Settings › Pipeline tokens appears in the console once it is
Step-by-step procedure
Create a pipeline token
In Settings › Pipeline tokens, choose Create token, pick where it can deploy, and copy it. Zof shows it only once.
Save the token in your CI
Save it as a secret named ZOF_GATE_TOKEN. Never paste it into a pipeline file.
Add the gate step before your deploy
Outside GitHub Actions, pass the GitHub repository Zof checks with --repo.
Gate step
- uses: zof-ai/gate@v1
with:
environment: production
token: ${{ secrets.ZOF_GATE_TOKEN }}Was this page helpful?