Skip to content

Workflow Settings

Definition of workflow settings on repository level, the following properties are supported:

Key Value Description Notes
enabled boolean If GitHub actions are enabled for this repository
allowed_actions string Defines which type of GitHub Actions are permitted to run all, local_only or selected
allow_github_owned_actions boolean If GitHub owned actions are permitted to run Only taken into account when allowed_actions is set to selected
allow_verified_creator_actions boolean If GitHub Actions from verified creators are permitted to run Only taken into account when allowed_actions is set to selected
allow_action_patterns list[string] A list of action patterns permitted to run Only taken into account when allowed_actions is set to selected
default_workflow_permissions string The default workflow permissions granted to the GITHUB_TOKEN read or write
actions_can_approve_pull_request_reviews boolean If actions can approve and merge pull requests

Validation rules

  • specifying a non-empty list of allow_action_patterns while allowed_actions is not set to selected, triggers a warning

Example usage

orgs.newRepo('jdk21u') {
    ...
    workflows+: {
        enabled: false,
    },
    ...
}