Skip to content

Commit

Permalink
Fix CI password
Browse files Browse the repository at this point in the history
  • Loading branch information
nhairs committed Feb 4, 2024
1 parent 0a78bed commit c90614e
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/python-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ jobs:
with:
python-version: "3.8"
- name: Install system dependencies
env:
ES_PASSWORD_INPUT
run: |
sudo apt-get update
sudo apt-get install -y libemail-outlook-message-perl
Expand All @@ -33,7 +35,13 @@ jobs:
# Note: We set a static password as ES8 requires that a password is set.
# We can't use the randomly generateds one in our CI script so we set one here
# For real world applications you should NOT commit passwords to git like this.
echo "y\nWFXvAZ6xvcAhx\nWFXvAZ6xvcAhx" | sudo /usr/share/elasticsearch/bin/elasticsearch-reset-password --interactive -u elastic
# Note Syntax: https://github.com/orgs/community/discussions/25469#discussioncomment-3248006
sudo /usr/share/elasticsearch/bin/elasticsearch-reset-password --interactive -u elastic <<'EOF'
y
WFXvAZ6xvcAhx
WFXvAZ6xvcAhx
EOF
- name: Install Python dependencies
run: |
python -m pip install --upgrade pip
Expand Down

0 comments on commit c90614e

Please sign in to comment.