Enforce Rotation Policy #5
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
| name: Enforce Rotation Policy | |
| on: | |
| schedule: | |
| - cron: '0 9 * * 1' # Every Monday at 9am UTC | |
| workflow_dispatch: | |
| jobs: | |
| check-rotation: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.12' | |
| - name: Check key rotation compliance | |
| run: | | |
| python fleet/rotate.py --signers .auths/allowed_signers --max-age 90 --json > rotation-report.json || true | |
| cat rotation-report.json | |
| - name: Upload report | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: rotation-report | |
| path: rotation-report.json |