feat(policy): reusable runner-policy gate that works on the Team plan… #23
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Self-audit for this repository only. | |
| # | |
| # Renamed 2026-08-03. This workflow was previously called "Organization | |
| # workflow policy audit", but it checks out only this repository and runs the | |
| # audit against `.`, so it has never inspected any other repository. Its own | |
| # workflows are compliant, so it reported green while three repositories in the | |
| # organization ran on GitHub-hosted runners. | |
| # | |
| # Organization-wide enforcement is `enforce-runner-policy.yml`, attached to | |
| # every repository through an organization ruleset so it runs in each target | |
| # repository's own context. Keep this file scoped to this repository. | |
| name: Policy repository self-audit | |
| on: | |
| pull_request: | |
| push: | |
| branches: [main] | |
| schedule: | |
| - cron: "23 3 * * *" | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| jobs: | |
| audit: | |
| runs-on: [self-hosted, node-b, linux, x64] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Audit this repository's workflows and exception expiry | |
| run: bash scripts/audit-workflows.sh . |