Visitar URL original
Add username back and fix dependabot usage · SAP/ai-sdk-python@b926bcd · GitHub
Skip to content

Commit b926bcd

Browse files
committed
Add username back and fix dependabot usage
This reverts commit 4ad0b43.
1 parent 4ad0b43 commit b926bcd

7 files changed

Lines changed: 15 additions & 5 deletions

File tree

‎.github/actions/setup/action.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ inputs:
1818
default: '3.13'
1919
index-username:
2020
description: 'Username for the PyPI index'
21-
default: '__token__'
21+
default: ''
2222
index-token:
2323
description: 'Auth token for the PyPI index'
2424
default: ''

‎.github/dependabot.yml‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@ registries:
33
sap-artifactory:
44
type: python-index
55
url: https://common.repositories.cloud.sap/artifactory/api/pypi/build.releases.pypi/
6-
token: ${{secrets.ARTIFACTORY_TOKEN}}
6+
username: ${{secrets.ARTIFACTORY_USERNAME}}
7+
password: ${{secrets.ARTIFACTORY_TOKEN}}
78
replaces-base: true
89
updates:
910
- package-ecosystem: uv

‎.github/workflows/auto-doc.yml‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
runs-on: ubuntu-latest
1010
permissions:
1111
contents: read
12-
if: github.event.pull_request.head.repo.fork == false && github.event.pull_request.user.login != 'dependabot[bot]'
12+
if: github.event.pull_request.head.repo.fork == false
1313

1414
steps:
1515
- name: Generate GitHub App token
@@ -26,6 +26,7 @@ jobs:
2626
token: ${{ steps.app-token.outputs.token }}
2727
persist-credentials: true
2828
ref: ${{ github.head_ref }}
29+
index-username: ${{ secrets.ARTIFACTORY_USERNAME }}
2930
index-token: ${{ secrets.ARTIFACTORY_TOKEN }}
3031

3132
- name: Configure git

‎.github/workflows/ci.yml‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ jobs:
2121
steps:
2222
- uses: SAP/ai-sdk-python/.github/actions/setup@main
2323
with:
24+
index-username: ${{ secrets.ARTIFACTORY_USERNAME }}
2425
index-token: ${{ secrets.ARTIFACTORY_TOKEN }}
2526

2627
- name: Run pylint
@@ -53,6 +54,7 @@ jobs:
5354
- uses: SAP/ai-sdk-python/.github/actions/setup@main
5455
with:
5556
python-version: ${{ matrix.python-version }}
57+
index-username: ${{ secrets.ARTIFACTORY_USERNAME }}
5658
index-token: ${{ secrets.ARTIFACTORY_TOKEN }}
5759

5860
- name: Run unit tests with coverage
@@ -77,6 +79,7 @@ jobs:
7779
steps:
7880
- uses: SAP/ai-sdk-python/.github/actions/setup@main
7981
with:
82+
index-username: ${{ secrets.ARTIFACTORY_USERNAME }}
8083
index-token: ${{ secrets.ARTIFACTORY_TOKEN }}
8184

8285
- name: Run base integration tests
@@ -112,6 +115,7 @@ jobs:
112115
steps:
113116
- uses: SAP/ai-sdk-python/.github/actions/setup@main
114117
with:
118+
index-username: ${{ secrets.ARTIFACTORY_USERNAME }}
115119
index-token: ${{ secrets.ARTIFACTORY_TOKEN }}
116120

117121
- name: Run core integration tests
@@ -152,6 +156,7 @@ jobs:
152156
steps:
153157
- uses: SAP/ai-sdk-python/.github/actions/setup@main
154158
with:
159+
index-username: ${{ secrets.ARTIFACTORY_USERNAME }}
155160
index-token: ${{ secrets.ARTIFACTORY_TOKEN }}
156161

157162
- name: Run gen integration tests

‎.github/workflows/snapshot-release.yml‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,14 @@ jobs:
1515
id-token: write
1616
contents: read
1717
env:
18-
UV_INDEX_ARTIFACTORY_TOKEN: ${{ secrets.ARTIFACTORY_TOKEN }}
18+
UV_INDEX_ARTIFACTORY_USERNAME: ${{ secrets.ARTIFACTORY_USERNAME }}
19+
UV_INDEX_ARTIFACTORY_PASSWORD: ${{ secrets.ARTIFACTORY_TOKEN }}
1920

2021
steps:
2122
- uses: SAP/ai-sdk-python/.github/actions/setup@main
2223
with:
2324
fetch-depth: 0
25+
index-username: ${{ secrets.ARTIFACTORY_USERNAME }}
2426
index-token: ${{ secrets.ARTIFACTORY_TOKEN }}
2527

2628
- name: Bump versions

‎.github/workflows/teardown-integration-env.yml‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ jobs:
1414
steps:
1515
- uses: SAP/ai-sdk-python/.github/actions/setup@main
1616
with:
17+
index-username: ${{ secrets.ARTIFACTORY_USERNAME }}
1718
index-token: ${{ secrets.ARTIFACTORY_TOKEN }}
1819

1920
- name: Tear down integration test environment

‎TODO.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,5 @@ class CredentialsValue:
2121
after os-migration PR is merged:
2222

2323
- [ ] create initial version tags (and delete old incorrect ones)
24-
- [x] use setup action from main not os-migration
24+
- [ ] use setup action from main not os-migration
2525
- [ ] update gen version + release notes after internal version is published

0 commit comments

Comments
 (0)