GitHub integration
The GitHub integration opens an issue in a repository you choose and keeps it up to date while the investigation changes. The service is available for a connection and a test. In routing workflows it is preview only, so a publish that includes a GitHub action is refused. See Test, publish, and roll back.
Connect GitHubDirect link to Connect GitHub
- In the Guard Cloud dashboard, open Settings > Integrations > GitHub.
- Select Install GitHub App and install the HOL Guard app on your account or organization. You can limit it to selected repositories.
- Under Choose repository, pick the repository for Guard issues.
- If the repository is public, read the notice and tick Allow this public repository for Guard routing. See Public repositories.
- Select Validate & save.
- Select Create test issue to confirm Guard can write to the repository.
If the repository list is empty, confirm the app is installed on the repository you want, then select Refresh installation.
App permissionsDirect link to App permissions
| Permission | Level | Use |
|---|---|---|
| Issues | Write | Create issues, add comments, change labels, close and reopen |
| Metadata | Read | List the repositories the installation can access |
Public repositoriesDirect link to Public repositories
Guard blocks a public repository by default. An issue in a public repository is visible to everyone, and it can carry investigation details such as a title, a summary, and a link to evidence. The checkbox Allow this public repository for Guard routing turns the block off for that repository. Prefer a private repository.
What Guard createsDirect link to What Guard creates
Guard keeps one durable issue for each investigation.
| Moment | What Guard does |
|---|---|
| First delivery for an investigation | Opens an issue titled [HOL Guard][SEVERITY] title, with a table of title, severity, investigation ID, optional root cause, and an evidence link, followed by the summary |
| Later delivery for the same investigation | Adds a comment that starts with HOL Guard update and the current status |
| Investigation resolved | Comments, then closes the issue |
| Resolved investigation becomes active again | Reopens the issue |
The issue body ends with a hidden HTML comment that holds the investigation ID. Guard searches the repository for that marker so a repeat delivery finds the same issue. Do not remove the comment from the issue body.
LabelsDirect link to Labels
Guard creates labels when the repository does not have them yet:
| Label | Meaning |
|---|---|
hol-guard | Added to every Guard issue |
hol-guard:severity-critical, -high, -medium, -low | Investigation severity |
hol-guard:state-open or hol-guard:state-resolved | Investigation state |
hol-guard:harness-<name> | The agent harness the investigation came from, when known |
If the app cannot manage labels in the repository, Guard still creates the issue, without labels.
TroubleshootingDirect link to Troubleshooting
| Symptom | Fix |
|---|---|
| No repositories listed | Install the app on the repository, then select Refresh installation |
| Public repository is rejected | Tick Allow this public repository for Guard routing, or choose a private repository |
| The test issue fails | Check that the installation still has Issues write access to the repository |
| An issue is created again instead of updated | The hidden marker was removed from the issue body. Guard cannot find the earlier issue |