Skip to content

Enforce Rotation Policy #5

Enforce Rotation Policy

Enforce Rotation Policy #5

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