Skip to content

Commit dc8613e

Browse files
authored
Update install_from_hub.yml
1 parent ea90816 commit dc8613e

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/install_from_hub.yml

+5-1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ on:
99
jobs:
1010
install_from_hub:
1111
runs-on: ubuntu-latest
12+
env:
13+
GUARDRAILS_API_KEY: ${{ secrets.GUARDRAILS_API_KEY }}
1214
steps:
1315
- name: Set up Python
1416
uses: actions/setup-python@v5
@@ -17,6 +19,8 @@ jobs:
1719
- name: pip install from main
1820
run: pip install git+https://github.com/guardrails-ai/guardrails.git@main
1921
- name: Install PII validator
20-
run: guardrails hub install hub://guardrails/detect_pii
22+
run: |
23+
guardrails configure --token $GUARDRAILS_API_KEY --disable-metrics --enable-remote-inferencing;
24+
guardrails hub install hub://guardrails/detect_pii;
2125
- name: Verify PII validator is addressable
2226
run: echo 'from guardrails.hub import DetectPII' | python

0 commit comments

Comments
 (0)