From dc8613e46057f948aafe6bebc2c972b66dee3eee Mon Sep 17 00:00:00 2001 From: zsimjee Date: Tue, 24 Sep 2024 17:26:10 -0700 Subject: [PATCH] Update install_from_hub.yml --- .github/workflows/install_from_hub.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/install_from_hub.yml b/.github/workflows/install_from_hub.yml index 1e6483547..1ae773e92 100644 --- a/.github/workflows/install_from_hub.yml +++ b/.github/workflows/install_from_hub.yml @@ -9,6 +9,8 @@ on: jobs: install_from_hub: runs-on: ubuntu-latest + env: + GUARDRAILS_API_KEY: ${{ secrets.GUARDRAILS_API_KEY }} steps: - name: Set up Python uses: actions/setup-python@v5 @@ -17,6 +19,8 @@ jobs: - name: pip install from main run: pip install git+https://github.com/guardrails-ai/guardrails.git@main - name: Install PII validator - run: guardrails hub install hub://guardrails/detect_pii + run: | + guardrails configure --token $GUARDRAILS_API_KEY --disable-metrics --enable-remote-inferencing; + guardrails hub install hub://guardrails/detect_pii; - name: Verify PII validator is addressable run: echo 'from guardrails.hub import DetectPII' | python