
Enterprise Actions policy: scope and main options
You can apply an Actions policy to all organizations in the enterprise or narrow it to specific organizations. There are three main approaches to control which actions and reusable workflows are permitted:- Allow all actions and reusable workflows (any author).
- Allow only actions and reusable workflows that belong to the enterprise.
- Allow a restricted set, for example:
- Only GitHub-created actions.
- Marketplace actions from publishers with the verified creator badge.
What the verified creator badge means

Use the verified‑creator option when you want to reduce risk from third‑party actions and only allow Marketplace actions whose publishers have been validated by GitHub.
Allow / block lists: patterns and syntax
You can specify a comma-separated list of actions or reusable workflows to explicitly allow or to explicitly block. Important syntax points:- Use the
!prefix to block an action. - Wildcards, tags, and SHAs are supported.
- Reusable workflow references must include the workflow path and ref.
Testing the policy in a repository
To validate the enterprise Actions policy, test it against a repository workflow. For this demo I used the GHAS schedules demo repository and updated its CI workflow to include:- A local composite action (
./composite-action) — allowed - A random, non‑Marketplace action (
some-random/action@v2) — expected to be blocked - A verified Marketplace action (Super-Linter) — expected to be allowed
.github/workflows/using-composite-workflow.yml:
some-random/action@v2 — an action not allowed by the enterprise policy — the run will fail during startup.
If a workflow references any action that the enterprise policy disallows, the workflow fails immediately at startup. Use this behavior to validate your allow/block settings before deploying changes widely.
some-random/action@v2 is not allowed because actions must be from an approved or verified source.

Additional validation: third‑party PR‑Agent action
To further test the policy, I added a PR‑Agent step (a third‑party action) to the workflow. This can be in a separate workflow file such as.github/workflows/pr-agent.yml:

Other Actions policy settings
Enterprise Actions policy also provides additional controls you can manage from the Actions settings area:- Artifact and log retention periods — control how long artifacts and logs are kept.
- Approval requirements for workflows from forks or external contributors — require explicit approval before such workflows run.
- Runner groups, custom runner images, and OIDC configurations — configure runner access and identity provider options.

Summary and recommendations
- Enterprise Actions policies let you centrally control which actions and reusable workflows can run across your organizations.
- Use the verified‑creator Marketplace option and explicit allow/block lists to reduce exposure to untrusted third‑party actions.
- Always test policies in a controlled repository and confirm disallowed actions are blocked during workflow startup.
- When rolling out stricter policies, communicate changes to repo maintainers and provide guidance on approved Marketplace actions or how to publish verified actions through your enterprise.
- GitHub Marketplace badges: https://docs.github.com/en/marketplace/marketplace/badges/about-marketplace-badges
- GitHub Actions policy documentation: https://docs.github.com/en/enterprise/administration/enterprise-settings/using-actions-in-your-enterprise