check that collaborators on an organziations repos have mfa enabled. This action fetchs the list of members in an organization that do not have 2fa enabled and creates an issue assigned to those members on any repos that they are collaborators on.
- name: Check that org collaborators have 2fa enabled
uses: 100Automations/action-check-org-members-enable-mfa@main
env:
ORGANIZATION: 'my-org'
ORG_OWNER_TOKEN: ${{ secrets.ORG_OWNER_TOKEN }}
the name of the github organzation.
A token having owner status on the ORGANIZATION
. This action lists
members on an org using the 2fa_disabled
filter which is only available to
org
owners.
👀GITHUB_SECRET
provided to the action
probably will not work and will result in an error message like:
Error: membersMissing2fa; name: HttpError, status: 422, msg: Only owners can
use this filter.
That means you'll need to create the ORG_OWNER_TOKEN
secret explicitly.
GPL-v2.0