-
Notifications
You must be signed in to change notification settings - Fork 11.1k
rikkahub默认可查询余额,gemini格式获取模型列表修复 #5899
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
b98b958
12b3f9a
f84b70d
62882eb
ed0de85
ba2c254
43f0f1a
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
| Original file line number | Diff line number | Diff line change | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -0,0 +1,46 @@ | ||||||||||||||
| name: Publish user Docker Hub image | ||||||||||||||
|
|
||||||||||||||
| on: | ||||||||||||||
| push: | ||||||||||||||
| branches: | ||||||||||||||
| - main | ||||||||||||||
| workflow_dispatch: | ||||||||||||||
|
|
||||||||||||||
| jobs: | ||||||||||||||
| build: | ||||||||||||||
| name: Build and push | ||||||||||||||
| runs-on: ubuntu-latest | ||||||||||||||
| permissions: | ||||||||||||||
| contents: read | ||||||||||||||
|
|
||||||||||||||
| steps: | ||||||||||||||
| - name: Check out | ||||||||||||||
| uses: actions/checkout@v4 | ||||||||||||||
|
Comment on lines
+17
to
+18
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🔒 Security & Privacy | 🟠 Major | ⚡ Quick win Disable persisted checkout credentials before building the Docker context.
Proposed fix - name: Check out
uses: actions/checkout@v4
+ with:
+ persist-credentials: false📝 Committable suggestion
Suggested change
🧰 Tools🪛 zizmor (1.26.1)[warning] 17-18: credential persistence through GitHub Actions artifacts (artipacked): does not set persist-credentials: false (artipacked) 🤖 Prompt for AI AgentsSource: Linters/SAST tools |
||||||||||||||
|
|
||||||||||||||
| - name: Write VERSION | ||||||||||||||
| run: echo "main-${GITHUB_SHA::7}" > VERSION | ||||||||||||||
|
|
||||||||||||||
| - name: Set up QEMU | ||||||||||||||
| uses: docker/setup-qemu-action@v3 | ||||||||||||||
|
|
||||||||||||||
| - name: Set up Docker Buildx | ||||||||||||||
| uses: docker/setup-buildx-action@v3 | ||||||||||||||
|
|
||||||||||||||
| - name: Log in to Docker Hub | ||||||||||||||
| uses: docker/login-action@v3 | ||||||||||||||
| with: | ||||||||||||||
| username: yeranshuanghua | ||||||||||||||
| password: ${{ secrets.DOCKER_HUB }} | ||||||||||||||
|
|
||||||||||||||
| - name: Build and push | ||||||||||||||
| uses: docker/build-push-action@v6 | ||||||||||||||
| with: | ||||||||||||||
| context: . | ||||||||||||||
| file: ./Dockerfile | ||||||||||||||
| platforms: linux/amd64,linux/arm64 | ||||||||||||||
| push: true | ||||||||||||||
| tags: | | ||||||||||||||
| yeranshuanghua/shuanghua-api:latest | ||||||||||||||
| yeranshuanghua/shuanghua-api:${{ github.sha }} | ||||||||||||||
| cache-from: type=gha | ||||||||||||||
| cache-to: type=gha,mode=max | ||||||||||||||
This file was deleted.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🗄️ Data Integrity & Integration | 🟠 Major | ⚡ Quick win
Align the pushed Docker image with the documented deployment image.
The repo docs and compose examples consume
calciumion/new-api:latest, but this push-on-main workflow only publishesyeranshuanghua/shuanghua-api. Main builds will not update the image users are instructed to deploy; if this is only a personal mirror, make it manual/fork-scoped instead.Proposed fix if this workflow is meant to publish the documented image
username: yeranshuanghua password: ${{ secrets.DOCKER_HUB }} @@ tags: | - yeranshuanghua/shuanghua-api:latest - yeranshuanghua/shuanghua-api:${{ github.sha }} + calciumion/new-api:latest + calciumion/new-api:${{ github.sha }}Also applies to: 29-44
🤖 Prompt for AI Agents