Skip to main content

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​

  1. In the Guard Cloud dashboard, open Settings > Integrations > GitHub.
  2. Select Install GitHub App and install the HOL Guard app on your account or organization. You can limit it to selected repositories.
  3. Under Choose repository, pick the repository for Guard issues.
  4. If the repository is public, read the notice and tick Allow this public repository for Guard routing. See Public repositories.
  5. Select Validate & save.
  6. 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​

PermissionLevelUse
IssuesWriteCreate issues, add comments, change labels, close and reopen
MetadataReadList 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.

MomentWhat Guard does
First delivery for an investigationOpens 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 investigationAdds a comment that starts with HOL Guard update and the current status
Investigation resolvedComments, then closes the issue
Resolved investigation becomes active againReopens 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:

LabelMeaning
hol-guardAdded to every Guard issue
hol-guard:severity-critical, -high, -medium, -lowInvestigation severity
hol-guard:state-open or hol-guard:state-resolvedInvestigation 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​

SymptomFix
No repositories listedInstall the app on the repository, then select Refresh installation
Public repository is rejectedTick Allow this public repository for Guard routing, or choose a private repository
The test issue failsCheck that the installation still has Issues write access to the repository
An issue is created again instead of updatedThe hidden marker was removed from the issue body. Guard cannot find the earlier issue

NextDirect link to Next​