/sheriff-plan-action

Primary LanguageJavaScriptGNU General Public License v3.0GPL-3.0

Sheriff logo

Sheriff Plan Action

About

This is a Github Action that provides an interface to the plan action for Sheriff, a command line tool to manage Microsoft Entra Privileged Identity Management (Microsoft Entra PIM) using desired state configuration.

Usage

This task runs the plan action of Sheriff CLI on the agent. The configDir input will point to the location of the configuration files. The mode input describes whether Sheriff will perform the plan action on groups or resources. The subscriptionId input is the Azure subscription ID.

steps:
steps:
  - name: Setup Sheriff
    uses: gofrontier-com/sheriff-setup-action@main

  - name: Log in with Azure
    uses: azure/login@v1
    with:
      creds: '${{ secrets.AZURE_CREDENTIALS }}'

  - name: Sheriff Plan
    uses: gofrontier-com/sheriff-plan-action@v1
    with:
      configDir: config/resources
      mode: resources
      subscriptionId: '${{ secrets.SUBSCRIPTION_ID }}'

Contributing

We welcome contributions to this repository. Please see CONTRIBUTING.md for more information.