Skip to content

Latest commit

 

History

History
46 lines (30 loc) · 1.31 KB

README.md

File metadata and controls

46 lines (30 loc) · 1.31 KB

Monitor authorized requestors for the HTAN dbGap study

This project contains a Python script called dbgapmonitor.py that monitors changes in the authorized requestor for the HTAN dbGaP study, accession phs002371.v5.p1

Prerequisites

Before running the script, make sure you have the following installed:

  • Python 3.x
  • Required Python packages (specified in requirements.txt)

Installation

  1. Clone the repository:

    git clone https://github.com/your-username/af-dbgapmonitor.git
  2. Navigate to the project directory:

    cd af-dbgapmonitor
  3. Install the required packages:

    pip install -r requirements.txt
  4. Setup a Slack incomming webhook that posts to your target channe. Your webhook URL will look something like this:

    https://hooks.slack.com/services/T00000000/B00000000/XXXXXXXXXXXXXXXXXXXXXXXX

Usage

To run the dbgapmonitor.py script, use the following command:

export SLACK_WEBHOOK_URL='<your-webhook-url>'
python dbgapmonitor.py

This repoistory also contains a workflow that runs weekly at 0800 GMT. The webhook url is set througn a Github repository secret.