Package io.typeflows.github.workflow
Enum Permission
-
- All Implemented Interfaces:
-
io.typeflows.util.TfEnum,java.io.Serializable,kotlin.Comparable
public enum Permission extends Enum<Permission> implements TfEnum
Represents the available permission scopes for GitHub Actions workflows.
Permissions control what GitHub API access and repository operations a workflow can perform. They can be set at the workflow or job level to enforce the principle of least privilege and secure workflow execution with appropriate access controls.
-
-
Field Summary
Fields Modifier and Type Field Description private final StringplatformValueprivate final Stringnameprivate final Integerordinalprivate final EnumEntries<Permission>entries
-
Enum Constant Summary
Enum Constants Enum Constant Description ActionsAttestationsChecksContentsDeploymentsDiscussionsIdTokenIssuesModelsPackagesPagesPullRequestsSecurityEventsStatuses
-
Method Summary
Modifier and Type Method Description final Array<Permission>values()Returns an array containing the constants of this enum type, in the order they're declared. final PermissionvalueOf(String value)Returns the enum constant of this type with the specified name. StringgetPlatformValue()final StringgetName()final IntegergetOrdinal()final EnumEntries<Permission>getEntries()-
-
Method Detail
-
values
final Array<Permission> values()
Returns an array containing the constants of this enum type, in the order they're declared.
This method may be used to iterate over the constants.
-
valueOf
final Permission valueOf(String value)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
-
getPlatformValue
String getPlatformValue()
-
getOrdinal
final Integer getOrdinal()
-
getEntries
final EnumEntries<Permission> getEntries()
-
-
-
-