Skip to content

Policy as Code

Mathew Payne edited this page Apr 15, 2025 · 2 revisions

Policy as Code

Overview

Example of using Policy as Code

Usage

Simple:

uses: advanced-security/reusable-workflows/.github/workflows/policy-as-code.yml@main
secrets: inherit

Full Example

name: Deploy

on:
  push:
    branches: [ "main" ]

jobs:
  policy-gate:
    uses: advanced-security/reusable-workflows/.github/workflows/policy-as-code.yml@main
    secrets: inherit
    permissions:
      contents: read
      pull-requests: write

  deploy:
    needs: [ policy-gate ]
    # ...

Home


Building / Testing / Publishing:


Linting:


Security:


Repository Management:

Clone this wiki locally