Skip to content

Commit

Permalink
πŸ” try using a credential helper
Browse files Browse the repository at this point in the history
  • Loading branch information
juanesarango committed Oct 21, 2024
1 parent 1dd2ee9 commit e1e5515
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions .github/workflows/run-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,14 @@ jobs:
- name: Checkout code
uses: actions/checkout@v2

- name: Configure credential helper to clone private repos
run: |
echo '#!/bin/bash' > ~/.git-credential-helper.sh
echo 'echo username=${{ secrets.GH_USERNAME }}' >> ~/.git-credential-helper.sh
echo 'echo password=${{ secrets.GH_PAT }}' >> ~/.git-credential-helper.sh
chmod +x ~/.git-credential-helper.sh
git config --global credential.helper "/bin/bash ~/.git-credential-helper.sh"
- name: Set up Python
uses: actions/setup-python@v2
with:
Expand All @@ -34,10 +42,7 @@ jobs:
- name: Install dependencies
run: pip install -r requirements.txt

- name: Add GitHub credentials to clone private repos on tests
run: echo -e "machine github.com\n login ${{ secrets.GH_USERNAME }}\npassword ${{ secrets.GH_PAT }}" > ~/.netrc


- name: Run tests
run: bash tests/test-with-compose.sh

Expand Down

0 comments on commit e1e5515

Please sign in to comment.