From 1f90f07e3c748c3bb9d9a97138bc6ba5aac4d5bf Mon Sep 17 00:00:00 2001 From: Mat Date: Mon, 18 Nov 2024 10:21:10 +0000 Subject: [PATCH] Reminder to check for MOJ IP address updates (#1060) Reminder to check for MOJ ip address updates Co-authored-by: Mitch Dawson <86007219+mitchdawson1982@users.noreply.github.com> --- .github/workflows/ip-check-create-issue.yml | 23 +++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/ip-check-create-issue.yml diff --git a/.github/workflows/ip-check-create-issue.yml b/.github/workflows/ip-check-create-issue.yml new file mode 100644 index 00000000..d86c1bf3 --- /dev/null +++ b/.github/workflows/ip-check-create-issue.yml @@ -0,0 +1,23 @@ +name: Create issue to check for updates to the MOJ IP address list +on: + schedule: + # Every 6 months + - cron: "0 0 1 5,11 *" + +jobs: + create_issue: + runs-on: ubuntu-latest + env: + GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} + steps: + - uses: actions/checkout@v4 + + - name: Create issue + env: + label: "housekeeping" + run: | + now=$(date +'%Y-%m-%d') + title="Check for updates to the MOJ IP Address list" + body="Internal IPs are exempted from rate limiting. See https://github.com/ministryofjustice/moj-ip-addresses" + + gh issue create --title "${title}" --body "${body}" --label "${label}"