Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🌱 migrate token permission check to probes #3816

Merged
merged 30 commits into from
Mar 22, 2024

change 'metadata.defaultBranch' to 'metadata.repository.defaultBranch'

096a1b2
Select commit
Loading
Failed to load commit list.
Merged

🌱 migrate token permission check to probes #3816

change 'metadata.defaultBranch' to 'metadata.repository.defaultBranch'
096a1b2
Select commit
Loading
Failed to load commit list.
Codecov / codecov/patch succeeded Mar 22, 2024 in 1s

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

See this annotation in the file changed.

@codecov 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

See this annotation in the file changed.

@codecov 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

See this annotation in the file changed.

@codecov 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

See this annotation in the file changed.

@codecov 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

See this annotation in the file changed.

@codecov 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

See this annotation in the file changed.

@codecov 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

See this annotation in the file changed.

@codecov 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

See this annotation in the file changed.

@codecov 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

See this annotation in the file changed.

@codecov 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

See this annotation in the file changed.

@codecov 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

See this annotation in the file changed.

@codecov 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

See this annotation in the file changed.

@codecov 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

See this annotation in the file changed.

@codecov 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

See this annotation in the file changed.

@codecov 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

See this annotation in the file changed.

@codecov 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

See this annotation in the file changed.

@codecov 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

See this annotation in the file changed.

@codecov 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

See this annotation in the file changed.

@codecov 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

See this annotation in the file changed.

@codecov 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

See this annotation in the file changed.

@codecov 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

See this annotation in the file changed.

@codecov 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

See this annotation in the file changed.

@codecov 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

See this annotation in the file changed.

@codecov 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

See this annotation in the file changed.

@codecov 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

See this annotation in the file changed.

@codecov codecov / codecov/patch

probes/internal/utils/permissions/permissions.go#L145-L151

Added lines #L145 - L151 were not covered by tests