-
Notifications
You must be signed in to change notification settings - Fork 5
Policy as Code
Mathew Payne edited this page Apr 15, 2025
·
2 revisions
Example of using Policy as Code
Simple:
uses: advanced-security/reusable-workflows/.github/workflows/policy-as-code.yml@main
secrets: inherit
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 ]
# ...