-
Notifications
You must be signed in to change notification settings - Fork 33
Expand file tree
/
Copy pathgithub.lr
More file actions
1083 lines (1041 loc) · 27.8 KB
/
github.lr
File metadata and controls
1083 lines (1041 loc) · 27.8 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
// Copyright (c) Mondoo, Inc.
// SPDX-License-Identifier: BUSL-1.1
option provider = "go.mondoo.com/cnquery/v9/providers/github"
option go_package = "go.mondoo.com/mql/v13/providers/github/resources"
private github {}
// Git commit
private git.commit @defaults("sha") {
// Git commit SHA
sha string
// Git commit message
message string
// Git commit author
author git.commitAuthor
// Git commit committer
committer git.commitAuthor
// The GPG signature of the commit if there is one
signatureVerification git.gpgSignature
}
// Git commit author
private git.commitAuthor @defaults("name email") {
// Author shasum
sha string
// Author name
name string
// Author email
email string
// Date of commit
date time
}
// Git GPG signature
private git.gpgSignature @defaults("sha") {
// GPG signature shasum
sha string
// GPG signature reason
reason string
// Whether GPG signature is verified
verified bool
// GPG signature payload
payload string
// GPG signature
signature string
}
// GitHub organization
github.organization @defaults("login name") {
// Organization login
login string
// Organization ID
id int
// Organization global node ID
nodeId string
// Organization name
name string
// Organization company
company string
// Organization blog
blog string
// Organization location
location string
// Organization email
email string
// Organization Twitter handle
twitterUsername string
// Organization profile picture URL
avatarUrl string
// Organization's number of followers
followers int
// Number of organizations the organization is following
following int
// Organization description
description string
// Create time for the organization
createdAt time
// Update time for the organization
updatedAt time
// Number of private repositories
totalPrivateRepos int
// Number of public repositories
totalPublicRepos int
// Number of owned private repositories for the organization
ownedPrivateRepos int
// Number of private gists
privateGists int
// Disk usage for the organization
diskUsage int
// Number of collaborators for the organization
collaborators int
// Organization billing email
billingEmail string
// GitHub plan the organization is subscribed to
plan dict
// Whether two-factor authentication is required for all members. This value will be null if the API token does not have owner access on the organization.
twoFactorRequirementEnabled bool
// Whether the organization is verified by GitHub
isVerified bool
// The default repository permission
defaultRepositoryPermission string
// Whether members can create repositories
membersCanCreateRepositories bool
// Whether members can create public repositories
membersCanCreatePublicRepositories bool
// Whether members can create private repositories
membersCanCreatePrivateRepositories bool
// Whether members can create internal repositories
membersCanCreateInternalRepositories bool
// Whether members can create pages
membersCanCreatePages bool
// Whether members can create public pages
membersCanCreatePublicPages bool
// Whether members can create private pages
membersCanCreatePrivatePages bool
// Whether members can fork private repositories to their own GitHub account
membersCanForkPrivateRepos bool
// Whether Dependabot alerts are enabled for new repositories
dependabotAlertsEnabledForNewRepos bool
// Whether Dependabot security updates are enabled for new repositories
dependabotSecurityUpdatesEnabledForNewRepos bool
// Whether GitHub Advanced Security is enabled for new repositories
advancedSecurityEnabledForNewRepos bool
// Whether secret scanning is enabled for new repositories
secretScanningEnabledForNewRepos bool
// Whether secret scanning push protection is enabled for new repositories
secretScanningPushProtectionEnabledForNewRepos bool
// Whether secret scanning validity checks are enabled
secretScanningValidityChecksEnabled bool
// Whether members can delete repositories
membersCanDeleteRepositories bool
// Whether members can change repository visibility
membersCanChangeRepoVisibility bool
// Whether members can delete issues
membersCanDeleteIssues bool
// Whether readers can create discussions
readersCanCreateDiscussions bool
// List of users that are part of the owners group
owners() []github.user
// List of users that are part of the members group
members() []github.user
// List of users that are part of the teams group
teams() []github.team
// List of repositories
repositories() []github.repository
// List of GitHub installations
installations() []github.installation
// List of webhooks
webhooks() []github.webhook
// List of packages
packages() []github.package
// Whether the organization has projects
hasOrganizationProjects bool
// Whether projects in the organization have projects
hasRepositoryProjects bool
// Organization custom properties
customProperties() []github.organization.customProperty
// Organization audit log entries (requires GitHub Enterprise Cloud)
auditLog() []github.auditLogEntry
// Organization self-hosted runners
runners() []github.runner
}
// GitHub organization-level custom property
private github.organization.customProperty @defaults("name required") {
// The name of the property
name string
// Short description of the property
description string
// Source type of the property (where it was created)
sourceType string
// Type of the value for the property
valueType string
// Whether the property is required
required bool
// Default value of the property
defaultValue string
// An ordered list of the allowed values of the property
allowedValues []string
// Who can edit the values of the property
valuesEditableBy string
}
// GitHub user
private github.user @defaults("login name email company") {
// User ID
id int
// User login
login string
// User name
name string
// User email
email string
// User bio
bio string
// User blog URL
blog string
// User location
location string
// User profile picture URL
avatarUrl string
// User followers
followers int
// User following
following int
// User Twitter handle
twitterUsername string
// User create time in UTC
createdAt time
// Last user update time in UTC
updatedAt time
// When the user was suspended
suspendedAt time
// User's company
company string
// Whether the user is hireable
hireable bool
// Whether the user is a GitHub site admin
siteAdmin bool
// User's repositories
repositories() []github.repository
// User gists
gists() []github.gist
}
// GitHub team
private github.team @defaults("id name") {
// Team ID
id int
// Team name
name string
// Team description
description string
// Team slug
slug string
// Team privacy configuration
privacy string
// Team default permission
defaultPermission string
// Team members
members() []github.user
// Team owned repositories
repositories() []github.repository
// Team organization
organization github.organization
}
// GitHub collaborator
private github.collaborator @defaults("user.login user.name") {
// Collaborator ID
id int
// Collaborator's user information
user github.user
// Collaborator's permissions
permissions []string
}
// GitHub package
private github.package @defaults("name packageType visibility repository.fullName") {
// Package ID
id int
// Package name
name string
// Package type
packageType string
// Package owner
owner github.user
// Package create time
createdAt time
// Package update time
updatedAt time
// Package version numbers
versionCount int
// Package visibility
visibility string
// Package repository information
repository() github.repository
}
// GitHub packages
github.packages {
[]github.package
// Public packages
public() []github.package
// Private packages
private() []github.package
// Internal packages
internal() []github.package
}
// GitHub repository
github.repository @defaults("fullName") {
init(name string) // can only be used when logged in to github as a user
// Repository ID
id int
// Repository name
name string
// Repository full name
fullName string
// Repository description
description string
// Repository clone URL
cloneUrl string
// Repository SSH URL
sshUrl string
// Repository homepage
homepage string
// Repository topics
topics []string
// Repository language
language string
// Number of users watching the repository
watchersCount int
// Number of repository forks
forksCount int
// Number of repository stargazers
stargazersCount int
// Number of open issues in repository
openIssuesCount int
// Repository create time
createdAt time
// Repository update time
updatedAt time
// Repository pushed time
pushedAt time
// Whether the repository is archived
archived bool
// Whether the repository is disabled
disabled bool
// Whether the repository is private
private bool
// Whether the repository is a fork
isFork bool
// Repository visibility
visibility string
// Whether the repository allows auto merging
allowAutoMerge bool
// Whether the repository allows forking
allowForking bool
// Whether the repository allows merge commit
allowMergeCommit bool
// Whether the repository allows rebase merge
allowRebaseMerge bool
// Whether the repository allows squash merge
allowSquashMerge bool
// Whether the repository has open issues
hasIssues bool
// Whether the repository has projects
hasProjects bool
// Whether the repository has a wiki
hasWiki bool
// Whether the repository has pages
hasPages bool
// Whether the repository has downloads
hasDownloads bool
// Whether the repository has discussions
hasDiscussions bool
// Whether the repository is an organization repository template
isTemplate bool
// Repository custom properties
customProperties dict
// List of open merge requests for the repository
openMergeRequests() []github.mergeRequest
// List of closed merge requests for the repository
closedMergeRequests() []github.mergeRequest
// List of all merge requests for the repository
allMergeRequests() []github.mergeRequest
// List of branches for the repository
branches() []github.branch
// Default branch name for the repository
defaultBranchName string
// Default branch
defaultBranch() github.branch
// List of commits for the repository
commits() []github.commit
// List of contributors for the repository
contributors() []github.user
// List of all collaborators for the repository
collaborators() []github.collaborator
// List of admin collaborators for the repository
adminCollaborators() []github.collaborator
// List of files in the repository
files() []github.file
// List of releases for the repository
releases() []github.release
// Repository owner
owner github.user
// List of webhooks for the repository
webhooks() []github.webhook
// List of workflows for the repository
workflows() []github.workflow
// List of repository forks
forks() []github.repository
// List of repository stargazers
stargazers() []github.user
// List of repository open issues
openIssues() []github.issue
// List of repository closed issues
closedIssues() []github.issue
// List of repository milestones
milestones() []github.milestone
// Repository license
license() github.license
// Repository code of conduct
codeOfConductFile() github.file
// Repository support file
supportFile() github.file
// Repository security file
securityFile() github.file
// Dependabot alerts for the repository
dependabotAlerts() []github.dependabotAlert
// Secret scanning alerts for the repository
secretScanningAlerts() []github.secretScanningAlert
// Code scanning alerts for the repository
codeScanningAlerts() []github.codeScanningAlert
// Self-hosted runners for the repository
runners() []github.runner
// Deployment environments for the repository
environments() []github.environment
// Deployments for the repository
deployments() []github.deployment
// Software Bill of Materials (SPDX format) for the repository
spdxSbom() github.repository.sbom
}
// SPDX SBOM for a GitHub repository
private github.repository.sbom @defaults("name spdxVersion") {
// SPDX identifier for the document
spdxId string
// Version of the SPDX specification (e.g., "SPDX-2.3")
spdxVersion string
// Name of the SPDX document (e.g., "owner/repo")
name string
// License under which the SPDX document is released
dataLicense string
// Namespace URI for the document
documentNamespace string
// Optional comment about the document
comment string
// Time when the SBOM was generated
createdAt time
// List of creators of the SBOM
creators []string
// List of packages described in the SBOM
packages []github.repository.sbom.package
// Dependency relationships between packages
relationships []github.repository.sbom.relationship
}
// A package entry in a GitHub repository SBOM
private github.repository.sbom.package @defaults("name versionInfo") {
// Unique SPDX identifier for this package
spdxId string
// Package name
name string
// Package version or version range
versionInfo string
// Download location
downloadLocation string
// Whether file contents were analyzed
filesAnalyzed bool
// Concluded license
licenseConcluded string
// License declared by the package author
licenseDeclared string
// External references (e.g., purl)
externalRefs []github.repository.sbom.externalRef
}
// An external reference for a package in a GitHub repository SBOM
private github.repository.sbom.package.externalRef {
// The category of reference to an external resource this reference refers to. E.g. `PACKAGE-MANAGER`.
referenceCategory string
// A locator for the particular external resource this reference refers to. E.g. `pkg:gem/rails@6.0.1`.
referenceLocator string
// The category of reference to an external resource this reference refers to. E.g. `purl`.
referenceType string
}
// A relationship entry between two SPDX elements
private github.repository.sbom.relationship {
// Type of relationship (e.g., "DEPENDS_ON")
relationshipType string
// SPDX identifier of the source element
spdxElementId string
// SPDX identifier of the target element
relatedSpdxElement string
}
// GitHub license
private github.license @defaults("spdxId") {
// License key
key string
// License name
name string
// License URL
url string
// License spdx ID
spdxId string
}
// GitHub repository file
private github.file @defaults("name type") {
// File path
path string
// File name
name string
// File type
type string
// File shasum
sha string
// Whether the file is a binary
isBinary bool
// List of files in the directory
files() []github.file
// File owner
ownerName string
// File repository name
repoName string
// File content
content() string
// File download URL
downloadUrl string
// Whether the file exists in the repository
exists bool
}
// GitHub release
private github.release @defaults("name tagName") {
// Release URL
url string
// Release name
name string
// Release tag name
tagName string
// Whether the release is a pre-release
preRelease bool
// Release creation time
createdAt time
// Release publish time
publishedAt time
// Release author
author github.user
}
// GitHub webhook
private github.webhook @defaults("id name") {
// Webhook ID
id int
// Webhook name
name string
// Webhook URL
url string
// List of events for the webhook
events []string
// Webhook configuration including content type, secret, and SSL verification settings
config dict
// Whether the webhook is active
active bool
}
// GitHub workflow
private github.workflow @defaults("id name") {
// Workflow ID
id int
// Workflow name
name string
// Workflow path
path string
// Workflow state
state string
// Workflow create time
createdAt time
// Workflow update time
updatedAt time
// Workflow file
file() github.file
// Workflow configuration
configuration() dict
}
// GitHub repository branch
private github.branch @defaults("name") {
// Repository branch name
name string
// Whether branch protection is enabled
isProtected bool
// Repository branch HEAD commit
headCommit() github.commit
// Repository branch HEAD commit SHA sum
headCommitSha string
// Repository branch protection rules
protectionRules() github.branchprotection
// Repository branch repository name
repoName string
// Repository branch owner
owner github.user
// Whether the branch is the default branch
isDefault bool
}
// GitHub repository branch protection
private github.branchprotection @defaults("id") {
// Repository branch protection ID
id string
// Require status checks to pass before merging
requiredStatusChecks dict
// Require a pull request before merging
requiredPullRequestReviews dict
// Require conversation resolution before merging
requiredConversationResolution dict
// Whether signed commits are required
requiredSignatures bool
// Require linear history
requireLinearHistory dict
// Include administrators
enforceAdmins dict
// Restrict who can push to matching branches
restrictions dict
// Allow force pushes
allowForcePushes dict
// Allow deletions
allowDeletions dict
}
// GitHub repository commit
private github.commit @defaults("sha") {
// Commit owner
owner string
// Commit repository
repository string
// Commit SHA
sha string
// Commit URL
url string
// Commit author
author github.user
// Commit committer
committer github.user
// Commit resource object
commit git.commit
// Commit stats
stats dict
// Authored date
authoredDate time
// Committed date
committedDate time
}
// GitHub repository pull request
private github.mergeRequest @defaults("id state") {
// Pull request ID
id int
// Pull request number
number int
// Pull request state
state string
// Pull request creation time (in UTC)
createdAt time
// Pull request labels
labels []dict
// Pull request title
title string
// Pull request owner
owner github.user
// Pull request assignees
assignees []github.user
// Pull request commits
commits() []github.commit
// Pull request reviews
reviews() []github.review
// Pull request repository name
repoName string
// Pull request milestone
milestone github.milestone
// Time when the pull request was merged
mergedAt time
}
// GitHub repository review
private github.review @defaults("url state") {
// Review URL
url string
// Review state
state string
// Author association
authorAssociation string
// Review user information
user github.user
}
// GitHub application installation
private github.installation @defaults("id appId") {
// Application installation ID
id int
// Application configured ID
appId int
// Application configured slug
appSlug string
// Application installation create time
createdAt time
// Application installation update time
updatedAt time
}
// GitHub gist
private github.gist @defaults("description") {
// Gist ID
id string
// Gist description
description string
// Gist create time
createdAt time
// Gist update time
updatedAt time
// Gist owner
owner github.user
// Whether the gist is public
public bool
// Gist files
files []github.gistfile
}
// GitHub gist file
private github.gistfile @defaults("filename") {
// Gist ID
gistId string
// Gist file name
filename string
// Gist file type
type string
// Gist file language
language string
// Gist file raw URL
rawUrl string
// Gist file size
size int
// Gist file content
content() string
}
// GitHub milestone
private github.milestone @defaults("title state") {
// Milestone ID
id int
// Milestone number
number int
// Milestone title
title string
// Milestone description
description string
// Milestone state (open or closed)
state string
// Milestone URL
url string
// Milestone web URL
htmlUrl string
// Milestone creator
creator github.user
// Number of open issues in this milestone
openIssues int
// Number of closed issues in this milestone
closedIssues int
// Milestone creation time
createdAt time
// Milestone update time
updatedAt time
// Milestone closed time
closedAt time
// Milestone due date
dueOn time
}
// GitHub issue
private github.issue @defaults("title") {
// Issue ID
id int
// Issue number
number int
// Issue title
title string
// Issue state
state string
// Issue body
body string
// Issue URL
url string
// Issue create time
createdAt time
// Issue update time
updatedAt time
// Issue closed time
closedAt time
// Users to whom the issue is assigned
assignees []github.user
// User who closed the issue
closedBy github.user
// Whether the issue is a draft
draft bool
// Whether the issue is locked
locked bool
// Issue milestone
milestone github.milestone
}
// GitHub Dependabot alert
private github.dependabotAlert @defaults("number state") {
// Alert number
number int
// Alert state (auto_dismissed, dismissed, fixed, open)
state string
// Vulnerable dependency information
dependency dict
// Security advisory details
securityAdvisory dict
// Specific vulnerability details
securityVulnerability dict
// API URL
url string
// Web URL
htmlUrl string
// Alert creation time
createdAt time
// Last update time
updatedAt time
// When the alert was dismissed
dismissedAt time
// When the vulnerability was fixed
fixedAt time
// When the alert was auto-dismissed
autoDismissedAt time
// User who dismissed the alert
dismissedBy github.user
// Reason for dismissal
dismissedReason string
// Comment on dismissal
dismissedComment string
}
// GitHub secret scanning alert
private github.secretScanningAlert @defaults("number state") {
// Alert number
number int
// Alert state (open, resolved)
state string
// Resolution status (false_positive, wont_fix, revoked, used_in_tests, pattern_deleted)
resolution string
// Type of secret detected
secretType string
// Human-readable name of the secret type
secretTypeDisplayName string
// The secret value (partially redacted)
secret string
// Validity of the secret (active, inactive, unknown)
validity string
// Whether the secret was publicly leaked
publiclyLeaked bool
// Whether the secret was found in multiple repositories
multiRepo bool
// API URL
url string
// Web URL
htmlUrl string
// Alert creation time
createdAt time
// Last update time
updatedAt time
// When the alert was resolved
resolvedAt time
// User who resolved the alert
resolvedBy github.user
// Whether push protection was bypassed
pushProtectionBypassed bool
// User who bypassed push protection
pushProtectionBypassedBy github.user
// When push protection was bypassed
pushProtectionBypassedAt time
// Comment on resolution
resolutionComment string
}
// GitHub code scanning alert
private github.codeScanningAlert @defaults("number state") {
// Alert number
number int
// Alert state (open, closed, dismissed, fixed)
state string
// The security rule that triggered the alert
rule dict
// The tool that generated the alert
tool dict
// API URL
url string
// Web URL
htmlUrl string
// Alert creation time
createdAt time
// Last update time
updatedAt time
// When the alert was fixed
fixedAt time
// When the alert was closed
closedAt time
// User who closed the alert
closedBy github.user
// When the alert was dismissed
dismissedAt time
// User who dismissed the alert
dismissedBy github.user
// Reason for dismissal
dismissedReason string
// Comment on dismissal
dismissedComment string
// Most recent instance of this alert
mostRecentInstance dict
}
// GitHub organization audit log entry
private github.auditLogEntry @defaults("action actor timestamp") {
// Unique document ID
documentId string
// The action that was performed (e.g., user.login, repo.create)
action string
// The actor who performed the action
actor string
// Actor ID
actorId int
// Actor location country code
actorLocation string
// Business name (if applicable)
business string
// Business ID (if applicable)
businessId int
// Organization name
org string
// Organization ID
orgId int
// The user affected by the action
user string
// User ID
userId int
// Event creation time
createdAt time
// Timestamp when the event occurred
timestamp time
// External identity SAML NameID
externalIdentityNameId string
// External identity username
externalIdentityUsername string
// Hashed token (if applicable)
hashedToken string
// Token ID (if applicable)
tokenId int
// Token scopes (if applicable)
tokenScopes string
// Additional event data
data dict
// Additional fields not explicitly defined
additionalFields dict
}
// GitHub Actions self-hosted runner
private github.runner @defaults("id name os status") {
// Runner ID
id int
// Runner name
name string
// Operating system (linux, macos, windows)
os string
// Runner status (online, offline)
status string
// Whether the runner is currently executing a job
busy bool
// Labels assigned to the runner
labels []github.runnerLabel
}
// GitHub Actions runner label
private github.runnerLabel @defaults("name type") {
// Label ID
id int
// Label name
name string
// Label type (read-only or custom)
type string
}
// GitHub deployment environment
private github.environment @defaults("name id") {
// Environment ID
id int
// Environment name
name string
// Environment URL
url string
// Environment web URL
htmlUrl string
// Wait timer in minutes before deployments can proceed
waitTimer int