Work with GitHub Actions.
For example, actions = "write" permits an action to cancel a workflow run.
actions = "write"
For more information, see Permissions required for GitHub Apps.
Work with artifact attestations.
For example, attestations = "write" permits an action to generate an artifact attestation for a build.
attestations = "write"
For more information, see Using artifact attestations to establish provenance for builds.
Work with check runs and check suites.
For example, checks = "write" permits an action to create a check run.
checks = "write"
Work with the contents of the repository.
For example, contents: read permits an action to list the commits, and contents = "write" allows the action to create a release.
contents = "write"
Work with deployments.
For example, deployments: write permits an action to create a new deployment.
Work with GitHub Discussions.
For example, discussions = "write" permits an action to close or delete a discussion.
discussions = "write"
For more information, see Using the GraphQL API for Discussions.
Fetch an OpenID Connect (OIDC) token.
This requires id-token = "write".
id-token = "write"
For more information, see OpenID Connect.
Work with issues.
For example, issues: write permits an action to add a comment to an issue.
Generate AI inference responses with GitHub Models.
For example, models = "read" permits an action to use the GitHub Models inference API.
models = "read"
See Prototyping with AI models.
Work with GitHub Packages.
For example, packages = "write" permits an action to upload and publish packages on GitHub Packages.
packages = "write"
For more information, see About permissions for GitHub Packages.
Work with GitHub Pages.
For example, pages = "write" permits an action to request a GitHub Pages build.
pages = "write"
Work with pull requests.
For example, pull-requests = "write" permits an action to add a label to a pull request.
pull-requests = "write"
Work with GitHub code scanning alerts.
For example, security-events = "read" permits an action to list the code scanning alerts for the repository, and security-events = "write" allows an action to update the status of a code scanning alert.
security-events = "read"
security-events = "write"
For more information, see Repository permissions for 'Code scanning alerts'.
Dependabot and secret scanning alerts cannot be read with this permission and require a GitHub App or a personal access token. For more information, see Repository permissions for 'Dependabot alerts' and Repository permissions for 'Secret scanning alerts' in "Permissions required for GitHub Apps."
Work with commit statuses.
For example, statuses = "read" permits an action to list the commit statuses for a given reference.
statuses = "read"
Returns the class of this.
this
Returns a string representation of this.
This method is used to convert the values of string interpolation expressions to strings.
Returns this |> transform if this is non-null, and null otherwise.
this |> transform
null
This method is the complement of the ?? operator and the equivalent of an Option type's map and flatMap methods.
??
Option
map
flatMap
Tells if this object has a property with the given name.
name
Returns the value of the property with the given name.
Throws if a property with this name does not exist.
Returns null if a property with this name does not exist.
Converts this object to a Dynamic object.
Dynamic
Converts this object to a Map.
Map
Work with GitHub Actions.