Skip to content

Rotate bot keys

Rotate bot keys #1

name: Rotate bot keys
on:
schedule:
# https://crontab.guru/#0_0_1_*/3_*
# "At 00:00 on day-of-month 1 in every 3rd month."
- cron: "0 0 1 */3 *"
jobs:
rotate_private_key:
if: github.repository_owner == 'ibis-project'
runs-on: ubuntu-latest
steps:
- name: Generate a GitHub token
uses: actions/[email protected]
id: generate_token
with:
app-id: ${{ secrets.SQUAWK_BOT_APP_ID }}
private-key: ${{ secrets.SQUAWK_BOT_APP_PRIVATE_KEY }}
- name: checkout
uses: actions/checkout@v4
- name: create issue to rotate key
uses: peter-evans/create-issue-from-file@v5
with:
token: ${{ steps.generate_token.outputs.token }}
title: "chore: rotate ibis bot keys"
content-filepath: .github/rotate-key-template.md
labels: ci
assignees: cpcloud