🌱 migrate token permission check to probes #3816
78.93% of diff hit (target 74.87%)
View this Pull Request on Codecov
78.93% of diff hit (target 74.87%)
Annotations
Check warning on line 47 in checks/evaluation/permissions.go
codecov / codecov/patch
checks/evaluation/permissions.go#L45-L47
Added lines #L45 - L47 were not covered by tests
Check warning on line 94 in checks/evaluation/permissions.go
codecov / codecov/patch
checks/evaluation/permissions.go#L93-L94
Added lines #L93 - L94 were not covered by tests
Check warning on line 105 in checks/evaluation/permissions.go
codecov / codecov/patch
checks/evaluation/permissions.go#L105
Added line #L105 was not covered by tests
Check warning on line 142 in checks/evaluation/permissions.go
codecov / codecov/patch
checks/evaluation/permissions.go#L142
Added line #L142 was not covered by tests
Check warning on line 157 in checks/evaluation/permissions.go
codecov / codecov/patch
checks/evaluation/permissions.go#L156-L157
Added lines #L156 - L157 were not covered by tests
Check warning on line 164 in checks/evaluation/permissions.go
codecov / codecov/patch
checks/evaluation/permissions.go#L161-L164
Added lines #L161 - L164 were not covered by tests
Check warning on line 169 in checks/evaluation/permissions.go
codecov / codecov/patch
checks/evaluation/permissions.go#L168-L169
Added lines #L168 - L169 were not covered by tests
Check warning on line 207 in checks/evaluation/permissions.go
codecov / codecov/patch
checks/evaluation/permissions.go#L206-L207
Added lines #L206 - L207 were not covered by tests
Check warning on line 226 in checks/evaluation/permissions.go
codecov / codecov/patch
checks/evaluation/permissions.go#L226
Added line #L226 was not covered by tests
Check warning on line 232 in checks/evaluation/permissions.go
codecov / codecov/patch
checks/evaluation/permissions.go#L228-L232
Added lines #L228 - L232 were not covered by tests
Check warning on line 283 in checks/evaluation/permissions.go
codecov / codecov/patch
checks/evaluation/permissions.go#L282-L283
Added lines #L282 - L283 were not covered by tests
Check warning on line 302 in checks/evaluation/permissions.go
codecov / codecov/patch
checks/evaluation/permissions.go#L302
Added line #L302 was not covered by tests
Check warning on line 57 in checks/permissions.go
codecov / codecov/patch
checks/permissions.go#L56-L57
Added lines #L56 - L57 were not covered by tests
Check warning on line 36 in probes/hasNoGitHubWorkflowPermissionUnknown/impl.go
codecov / codecov/patch
probes/hasNoGitHubWorkflowPermissionUnknown/impl.go#L35-L36
Added lines #L35 - L36 were not covered by tests
Check warning on line 47 in probes/hasNoGitHubWorkflowPermissionUnknown/impl.go
codecov / codecov/patch
probes/hasNoGitHubWorkflowPermissionUnknown/impl.go#L46-L47
Added lines #L46 - L47 were not covered by tests
Check warning on line 61 in probes/hasNoGitHubWorkflowPermissionUnknown/impl.go
codecov / codecov/patch
probes/hasNoGitHubWorkflowPermissionUnknown/impl.go#L60-L61
Added lines #L60 - L61 were not covered by tests
Check warning on line 71 in probes/hasNoGitHubWorkflowPermissionUnknown/impl.go
codecov / codecov/patch
probes/hasNoGitHubWorkflowPermissionUnknown/impl.go#L70-L71
Added lines #L70 - L71 were not covered by tests
Check warning on line 36 in probes/internal/utils/permissions/permissions.go
codecov / codecov/patch
probes/internal/utils/permissions/permissions.go#L35-L36
Added lines #L35 - L36 were not covered by tests
Check warning on line 70 in probes/internal/utils/permissions/permissions.go
codecov / codecov/patch
probes/internal/utils/permissions/permissions.go#L69-L70
Added lines #L69 - L70 were not covered by tests
Check warning on line 79 in probes/internal/utils/permissions/permissions.go
codecov / codecov/patch
probes/internal/utils/permissions/permissions.go#L78-L79
Added lines #L78 - L79 were not covered by tests
Check warning on line 98 in probes/internal/utils/permissions/permissions.go
codecov / codecov/patch
probes/internal/utils/permissions/permissions.go#L97-L98
Added lines #L97 - L98 were not covered by tests
Check warning on line 106 in probes/internal/utils/permissions/permissions.go
codecov / codecov/patch
probes/internal/utils/permissions/permissions.go#L105-L106
Added lines #L105 - L106 were not covered by tests
Check warning on line 123 in probes/internal/utils/permissions/permissions.go
codecov / codecov/patch
probes/internal/utils/permissions/permissions.go#L122-L123
Added lines #L122 - L123 were not covered by tests
Check warning on line 131 in probes/internal/utils/permissions/permissions.go
codecov / codecov/patch
probes/internal/utils/permissions/permissions.go#L130-L131
Added lines #L130 - L131 were not covered by tests
Check warning on line 151 in probes/internal/utils/permissions/permissions.go
codecov / codecov/patch
probes/internal/utils/permissions/permissions.go#L145-L151
Added lines #L145 - L151 were not covered by tests