Skip to content

Commit

Permalink
fix: ADDON-67588 internal repo installation (#215)
Browse files Browse the repository at this point in the history
Fix for reported
[ADDON-67588](https://splunk.atlassian.net/browse/ADDON-67588) problem
with installation of internal repositories.
In `reusable-build-test-release.yml` GH_TOKEN_ADMIN is used for
authentication against https://github.com
In `test-addon.sh` GITHUB_USERNAME and GITHUB_PASSWORD are used for
authentication against https://github.com

Related PR:
splunk/ta-automation-k8s-manifests#75

Tested on:

https://github.com/splunk/splunk-add-on-for-microsoft-cloud-services/actions/runs/7468842506/job/20340167700
  • Loading branch information
mkolasinski-splunk authored Jan 11, 2024
1 parent 30976db commit be557b5
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/reusable-build-test-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -443,6 +443,7 @@ jobs:
poetry export --without-hashes --dev -o requirements_dev.txt
fi
if [ ! -f requirements_dev.txt ]; then echo no requirements;exit 0 ;fi
git config --global url."https://${{ secrets.GH_TOKEN_ADMIN }}@github.com".insteadOf https://github.com
pip install -r requirements_dev.txt
- name: Create directories
run: |
Expand Down Expand Up @@ -491,6 +492,7 @@ jobs:
poetry export --without-hashes --dev -o requirements_dev.txt
fi
if [ ! -f requirements_dev.txt ]; then echo no requirements;exit 0 ;fi
git config --global url."https://${{ secrets.GH_TOKEN_ADMIN }}@github.com".insteadOf https://github.com
pip install -r requirements_dev.txt
- name: Create directories
run: |
Expand Down Expand Up @@ -571,7 +573,9 @@ jobs:
${{ runner.os }}-pip-
- name: Install deps
if: ${{ steps.checklibs.outputs.ENABLED == 'true' }}
run: pip install -r requirements_dev.txt
run: |
git config --global url."https://${{ secrets.GH_TOKEN_ADMIN }}@github.com".insteadOf https://github.com
pip install -r requirements_dev.txt
- name: Semantic Release Get Next
id: semantic
if: github.event_name != 'pull_request'
Expand Down Expand Up @@ -701,7 +705,9 @@ jobs:
key: ${{ runner.os }}-pip-python3_9-${{ hashFiles('requirements_dev.txt') }}
restore-keys: |
${{ runner.os }}-pip-python3_9
- run: pip install -r requirements_dev.txt
- run: |
git config --global url."https://${{ secrets.GH_TOKEN_ADMIN }}@github.com".insteadOf https://github.com
pip install -r requirements_dev.txt
- id: semantic
if: github.event_name != 'pull_request'
uses: splunk/[email protected]
Expand Down

0 comments on commit be557b5

Please sign in to comment.