Skip to content

Update remote denylist #498

Update remote denylist

Update remote denylist #498

name: Update remote denylist
on:
workflow_dispatch:
inputs:
url:
required: true
description: URL of the file to use to update denylist
type: string
operation:
required: true
description: Operation to be performed in the remote denylist. Default is add
options:
- add
- delete
default: add
jobs:
update:
name: Update remote denylist
runs-on: ubuntu-latest
strategy:
matrix:
env: ['staging', 'production']
timeout-minutes: 20
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
with:
version: 9
- uses: actions/setup-node@v4
with:
node-version: 20
cache: 'pnpm'
- run: pnpm install
- name: Run job
env:
CF_API_TOKEN: ${{ secrets.CF_TOKEN }}
run: node packages/denylist/scripts/cli.js denylist update-remote ${{ toJSON(github.event.inputs.url) }} --env ${{ matrix.env }} --operation ${{ github.event.inputs.operation }}