exposure

package
v1.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 23, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RepoExposureSummary

type RepoExposureSummary struct {
	Org                         string                      `json:"org" yaml:"org"`
	Repo                        string                      `json:"repo" yaml:"repo"`
	PermissionUnion             []string                    `json:"permission_union" yaml:"permission_union"`
	DataUnion                   []string                    `json:"data_union" yaml:"data_union"`
	HighestAutonomy             string                      `json:"highest_autonomy" yaml:"highest_autonomy"`
	CombinedRiskScore           float64                     `json:"combined_risk_score" yaml:"combined_risk_score"`
	SkillPrivilegeCeiling       []string                    `json:"skill_privilege_ceiling" yaml:"skill_privilege_ceiling"`
	SkillPrivilegeConcentration SkillPrivilegeConcentration `json:"skill_privilege_concentration" yaml:"skill_privilege_concentration"`
	SkillSprawl                 SkillSprawl                 `json:"skill_sprawl" yaml:"skill_sprawl"`
	ExposureFactors             []string                    `json:"exposure_factors" yaml:"exposure_factors"`
}

func Build

func Build(findings []model.Finding, repoRisk map[string]float64) []RepoExposureSummary

type SkillPrivilegeConcentration

type SkillPrivilegeConcentration struct {
	ExecRatio      float64 `json:"exec_ratio" yaml:"exec_ratio"`
	WriteRatio     float64 `json:"write_ratio" yaml:"write_ratio"`
	ExecWriteRatio float64 `json:"exec_write_ratio" yaml:"exec_write_ratio"`
}

type SkillSprawl

type SkillSprawl struct {
	Total int `json:"total" yaml:"total"`
	Exec  int `json:"exec" yaml:"exec"`
	Write int `json:"write" yaml:"write"`
	Read  int `json:"read" yaml:"read"`
	None  int `json:"none" yaml:"none"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL