Name of the repository, without the `.git` extension (not case-sensitive).
ownerstring
Required
Account owner of the repository (not case-sensitive).
rulesstring
Array of rule objects as a JSON string to be enforced. Each must have `type` and may have `parameters`. Refer to GitHub API docs for available rule types and parameters. Example: '[{"type": "creation"}, {"type": "deletion"}]'
targetstring
The target of the ruleset, whether it applies to branches or tags.
enforcementstring
Required
Enforcement level: `disabled` (ruleset is not enforced), `active` (ruleset is enforced), or `evaluate` (test rules before enforcing; GitHub Enterprise only).
bypass_actorsstring
Actors that can bypass rules in this ruleset as a JSON string. Each actor object requires `actor_id`, `actor_type` (e.g., 'Team', 'Integration'), and `bypass_mode` (e.g., 'always'). Example: '[{"actor_id": 1, "actor_type": "Team", "bypass_mode": "always"}]'
conditions__ref__name__excludearray
Ref names or patterns to exclude. Condition fails if any pattern matches the ref name.
conditions__ref__name__includearray
Ref names/patterns to include. Condition passes if one pattern matches the ref name. Use `~DEFAULT_BRANCH` for default branch, `~ALL` for all branches.
Observable output
data
Required
Data from the action execution
errorstring
Error if any occurred during the execution of the action
successfulboolean
Required
Whether or not the action execution was successful or not