mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-17 23:51:30 +00:00
fix(workflow): authenticate git push with GITHUB_TOKEN (persist-credentials: false)
actions/checkout runs with persist-credentials: false, so the previous 'git push origin' would fail with auth error. Push over HTTPS with an x-access-token URL using GITHUB_TOKEN. Addresses Greptile review: 'authenticated Git push configuration'.
This commit is contained in:
parent
937ed96425
commit
cf4ca7ab13
1 changed files with 2 additions and 1 deletions
|
|
@ -38,6 +38,7 @@ jobs:
|
|||
if: steps.monitor.outputs.changed == 'true'
|
||||
env:
|
||||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
GITHUB_TOKEN_FOR_PUSH: ${{ secrets.GITHUB_TOKEN }}
|
||||
run: |
|
||||
BRANCH="monitor-dbx-pricing-$(date +'%Y-%m-%d')"
|
||||
git config user.name "github-actions[bot]"
|
||||
|
|
@ -49,7 +50,7 @@ jobs:
|
|||
Automated daily monitor detected changed DBU rates on
|
||||
https://www.databricks.com/product/pricing/foundation-model-serving
|
||||
Updated entries: databricks/databricks-deepseek-v4-*"
|
||||
git push origin "$BRANCH"
|
||||
git push "https://x-access-token:${GITHUB_TOKEN_FOR_PUSH}@github.com/${GITHUB_REPOSITORY}.git" "$BRANCH"
|
||||
gh pr create --repo "${{ github.repository }}" \
|
||||
--base litellm_internal_staging \
|
||||
--head "$BRANCH" \
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue