Skip to content

BUG: GitHub Actions Permissions do not allow emptying a once-set allowlist #4359

Description

@deiga

Originating finding: integrations/terraform-provider-github#2680

It seems that there isn't currently a way to set PatternsAllowed of ActionsAllowed to an empty list to override any previous additions to the allowlist since it uses omitempty 1

The API doesn't look it has any limitation on sending an empty Array: https://docs.github.com/en/rest/actions/permissions?apiVersion=2022-11-28#set-allowed-actions-and-reusable-workflows-for-an-organization--parameters

I can try to submit a patch for this in the next few weeks, if nobody gets to it faster ^^

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions