MCPcopy Create free account
hub / github.com/github/gh-aw / isPermissionError

Function isPermissionError

pkg/cli/audit.go:290–295  ·  view source on GitHub ↗

isPermissionError checks if an error is related to permissions/authentication.

(err error)

Source from the content-addressed store, hash-verified

288
289// isPermissionError checks if an error is related to permissions/authentication.
290func isPermissionError(err error) bool {
291 if err == nil {
292 return false
293 }
294 return isPermissionErrorStr(err.Error())
295}
296
297type auditRunConfig struct {
298 runID int64

Callers 5

downloadWorkflowRunLogsFunction · 0.85
downloadRunArtifactsFunction · 0.85
TestIsPermissionErrorFunction · 0.85
fetchAuditRunWithCacheFunction · 0.85

Calls 2

isPermissionErrorStrFunction · 0.85
ErrorMethod · 0.45

Tested by 1

TestIsPermissionErrorFunction · 0.68