From 74019a2a8c0d332604515a6f5e3a1871235133ba Mon Sep 17 00:00:00 2001 From: Feanil Patel Date: Tue, 26 Sep 2023 10:08:33 -0400 Subject: [PATCH] feat: Add automation to create quarterly tasks. We want to remember to do an audit of all members of the Openedx GitHub org every quarter so that we don't accidentally have users with access that they should not have. This workflow creates a new GitHub request ticket every quarter so that the Axim On-call person can perform the audit. --- .../workflows/add-quarterly-gh-requests.yml | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .github/workflows/add-quarterly-gh-requests.yml diff --git a/.github/workflows/add-quarterly-gh-requests.yml b/.github/workflows/add-quarterly-gh-requests.yml new file mode 100644 index 0000000..0063637 --- /dev/null +++ b/.github/workflows/add-quarterly-gh-requests.yml @@ -0,0 +1,21 @@ +name: Create quarterly issues +on: + schedule: + - cron: 0 0 * 1,4,7,10 * + workflow_dispatch: {} + +jobs: + create_issue: + name: Create quarterly issues + runs-on: ubuntu-latest + permissions: + issues: write + steps: + - run: | + # Audit GitHub Users + gh issue create --repo "openedx/axim-engineering" \ + --title "Quarterly Audit of Github Users" \ + --label "github-request" \ + --body "It is time to perform the quartely audit of GitHub users in the \`openedx\` org. The playbook for performing the audit can be found [here](https://openedx.atlassian.net/wiki/spaces/COMM/pages/3438903337/On-call+Playbooks#%F0%9F%94%8D-Audit-Github-Users)." + env: + ${{ secrets.GITHUB_TOKEN }}