• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

samsmithnz / RepoAutomation / 16592339122

29 Jul 2025 09:34AM UTC coverage: 81.262% (+0.3%) from 80.955%
16592339122

push

github

web-flow
Merge pull request #415 from samsmithnz/copilot/fix-414

Add Dependabot Alerts to GitHub Security Issues Object

387 of 554 branches covered (69.86%)

Branch coverage included in aggregate %.

46 of 51 new or added lines in 2 files covered. (90.2%)

927 of 1063 relevant lines covered (87.21%)

7.42 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

80.52
/src/RepoAutomation.Core/Models/SecurityAlert.cs
1
namespace RepoAutomation.Core.Models;
2

3
public class SecurityAlert : BaseModel
4
{
5
    public int? number { get; set; }
6✔
6
    public SecurityRule? rule { get; set; }
6✔
7
    public string? state { get; set; }
6✔
8
    public string? created_at { get; set; }
4✔
9
    public string? updated_at { get; set; }
1✔
10
    public string? dismissed_at { get; set; }
×
11
    public string? dismissed_by { get; set; }
×
12
    public string? dismissed_reason { get; set; }
×
13
    public string? html_url { get; set; }
1✔
14
    public SecurityTool? tool { get; set; }
4✔
15
    public SecurityMostRecentInstance? most_recent_instance { get; set; }
5✔
16
}
17

18
public class SecurityRule
19
{
20
    public string? id { get; set; }
2✔
21
    public string? description { get; set; }
2✔
22
    public string? severity { get; set; }
2✔
23
}
24

25
public class SecurityTool
26
{
27
    public string? name { get; set; }
2✔
28
    public string? version { get; set; }
1✔
29
}
30

31
public class SecurityMostRecentInstance
32
{
33
    public string? @ref { get; set; }
1✔
34
    public string? analysis_key { get; set; }
×
35
    public string? category { get; set; }
×
36
    public string? environment { get; set; }
×
37
    public SecurityLocation? location { get; set; }
4✔
38
}
39

40
public class SecurityLocation
41
{
42
    public string? path { get; set; }
2✔
43
    public int? start_line { get; set; }
1✔
44
    public int? end_line { get; set; }
1✔
45
    public int? start_column { get; set; }
1✔
46
    public int? end_column { get; set; }
1✔
47
}
48

49
// Secret scanning specific model
50
public class SecretScanningAlert : BaseModel
51
{
52
    public int? number { get; set; }
2✔
53
    public string? secret_type { get; set; }
2✔
54
    public string? secret_type_display_name { get; set; }
2✔
55
    public string? secret { get; set; }
×
56
    public string? state { get; set; }
2✔
57
    public string? created_at { get; set; }
1✔
58
    public string? updated_at { get; set; }
1✔
59
    public string? html_url { get; set; }
1✔
60
    public string? resolution { get; set; }
×
61
    public SecretLocation[]? locations { get; set; }
7✔
62
}
63

64
public class SecretLocation
65
{
66
    public string? type { get; set; }
2✔
67
    public SecretLocationDetails? details { get; set; }
4✔
68
}
69

70
public class SecretLocationDetails
71
{
72
    public string? path { get; set; }
2✔
73
    public int? start_line { get; set; }
1✔
74
    public int? end_line { get; set; }
1✔
75
    public int? start_column { get; set; }
1✔
76
    public int? end_column { get; set; }
1✔
77
    public string? blob_sha { get; set; }
×
78
    public string? blob_url { get; set; }
×
79
    public string? commit_sha { get; set; }
1✔
80
    public string? commit_url { get; set; }
1✔
81
}
82

83
// Dependabot alert specific model
84
public class DependabotAlert : BaseModel
85
{
86
    public int? number { get; set; }
6✔
87
    public string? state { get; set; }
6✔
88
    public DependabotDependency? dependency { get; set; }
14✔
89
    public DependabotSecurityAdvisory? security_advisory { get; set; }
7✔
90
    public DependabotSecurityVulnerability? security_vulnerability { get; set; }
7✔
91
    public string? url { get; set; }
1✔
92
    public string? html_url { get; set; }
1✔
93
    public string? created_at { get; set; }
4✔
94
    public string? updated_at { get; set; }
1✔
NEW
95
    public string? dismissed_at { get; set; }
×
NEW
96
    public string? dismissed_by { get; set; }
×
NEW
97
    public string? dismissed_reason { get; set; }
×
NEW
98
    public string? fixed_at { get; set; }
×
99
}
100

101
public class DependabotDependency
102
{
103
    public string? package { get; set; }
6✔
104
    public string? manifest_path { get; set; }
2✔
105
    public string? scope { get; set; }
2✔
106
}
107

108
public class DependabotSecurityAdvisory
109
{
110
    public string? ghsa_id { get; set; }
2✔
111
    public string? cve_id { get; set; }
2✔
112
    public string? summary { get; set; }
2✔
113
    public string? description { get; set; }
1✔
114
    public string? severity { get; set; }
2✔
115
    public string[]? identifiers { get; set; }
2✔
116
    public string[]? references { get; set; }
2✔
117
    public string? published_at { get; set; }
1✔
118
    public string? updated_at { get; set; }
1✔
NEW
119
    public string? withdrawn_at { get; set; }
×
120
}
121

122
public class DependabotSecurityVulnerability
123
{
124
    public string? package { get; set; }
2✔
125
    public string? severity { get; set; }
2✔
126
    public string? vulnerable_version_range { get; set; }
2✔
127
    public string? first_patched_version { get; set; }
2✔
128
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc