Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
赵月辉
/
fastgpt-migrated
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Unverified
Commit
ff92dced
authored
Apr 03, 2025
by
Finley Ge
Committed by
GitHub
Apr 03, 2025
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore: security update (#4447)
parent
7a074794
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
65 additions
and
78 deletions
+65
-78
.github/gh-bot.yml
+0
-30
.github/workflows/docs-preview.yml
+12
-15
.github/workflows/docs-sync_imgs.yml
+2
-10
.github/workflows/fastgpt-build-image-personal.yml
+6
-1
.github/workflows/fastgpt-build-image.yml
+18
-3
.github/workflows/fastgpt-preview-image.yml
+15
-17
.github/workflows/helm-release.yaml
+6
-1
.github/workflows/sandbox-build-image.yml
+6
-1
No files found.
.github/gh-bot.yml
deleted
100644 → 0
View file @
7a074794
version
:
v1
debug
:
true
action
:
printConfig
:
false
release
:
retry
:
15s
actionName
:
Release
allowOps
:
-
cuisongliu
bot
:
prefix
:
/
spe
:
_
allowOps
:
-
sealos-ci-robot
-
sealos-release-robot
email
:
sealos-ci-robot@sealos.io
username
:
sealos-ci-robot
repo
:
org
:
false
message
:
success
:
|
🤖 says: Hooray! The action {{.Body}} has been completed successfully. 🎉
format_error
:
|
🤖 says: ‼️ There is a formatting issue with the action, kindly verify the action's format.
permission_error
:
|
🤖 says: ‼️ The action doesn't have permission to trigger.
release_error
:
|
🤖 says: ‼️ Release action failed.
Error details: {{.Error}}
.github/workflows/docs-preview.yml
View file @
ff92dced
name
:
Preview FastGPT docs
name
:
Preview FastGPT docs
on
:
on
:
pull_request
_target
:
pull_request
:
paths
:
paths
:
-
'
docSite/**'
-
'
docSite/**'
workflow_dispatch
:
workflow_dispatch
:
...
@@ -72,6 +72,8 @@ jobs:
...
@@ -72,6 +72,8 @@ jobs:
alias-domains
:
|
#Optional
alias-domains
:
|
#Optional
fastgpt-staging.vercel.app
fastgpt-staging.vercel.app
docsOutput
:
docsOutput
:
permissions
:
pull-requests
:
write
needs
:
[
deploy-preview
]
needs
:
[
deploy-preview
]
runs-on
:
ubuntu-latest
runs-on
:
ubuntu-latest
steps
:
steps
:
...
@@ -79,18 +81,13 @@ jobs:
...
@@ -79,18 +81,13 @@ jobs:
with
:
with
:
ref
:
${{ github.event.pull_request.head.ref }}
ref
:
${{ github.event.pull_request.head.ref }}
repository
:
${{ github.event.pull_request.head.repo.full_name }}
repository
:
${{ github.event.pull_request.head.repo.full_name }}
-
name
:
Write md
-
uses
:
actions/github-script@v7
run
:
|
echo "# 🤖 Generated by deploy action" > report.md
echo "[👀 Visit Preview](${{ needs.deploy-preview.outputs.url }})" >> report.md
cat report.md
-
name
:
Gh Rebot for Sealos
uses
:
labring/gh-rebot@v0.0.6
if
:
${{ (github.event_name == 'pull_request_target') }}
with
:
with
:
version
:
v0.0.6
github-token
:
${{secrets.GITHUB_TOKEN}}
env
:
script
:
|
GH_TOKEN
:
'
${{
secrets.GH_PAT
}}'
github.rest.issues.createComment({
SEALOS_TYPE
:
'
pr_comment'
issue_number: context.issue.number,
SEALOS_FILENAME
:
'
report.md'
owner: context.repo.owner,
SEALOS_REPLACE_TAG
:
'
DEFAULT_REPLACE_DEPLOY'
repo: context.repo.repo,
body: '[👀 Visit Preview](${{ needs.deploy-preview.outputs.url }})'
})
.github/workflows/docs-sync_imgs.yml
View file @
ff92dced
name
:
Sync images
name
:
Sync images
on
:
on
:
pull_request
_target
:
pull_request
:
branches
:
branches
:
-
main
-
main
paths
:
paths
:
...
@@ -17,13 +17,6 @@ jobs:
...
@@ -17,13 +17,6 @@ jobs:
steps
:
steps
:
-
name
:
Checkout
-
name
:
Checkout
uses
:
actions/checkout@v3
uses
:
actions/checkout@v3
if
:
${{ (github.event_name == 'pull_request_target') }}
with
:
ref
:
${{ github.event.pull_request.head.ref }}
repository
:
${{ github.event.pull_request.head.repo.full_name }}
-
name
:
Checkout
uses
:
actions/checkout@v3
-
name
:
Run GitHub File Sync
-
name
:
Run GitHub File Sync
uses
:
BetaHuhn/repo-file-sync-action@v1.21.0
uses
:
BetaHuhn/repo-file-sync-action@v1.21.0
...
@@ -32,4 +25,4 @@ jobs:
...
@@ -32,4 +25,4 @@ jobs:
CONFIG_PATH
:
.github/sync_imgs.yml
CONFIG_PATH
:
.github/sync_imgs.yml
ORIGINAL_MESSAGE
:
true
ORIGINAL_MESSAGE
:
true
SKIP_PR
:
true
SKIP_PR
:
true
COMMIT_EACH_FILE
:
false
COMMIT_EACH_FILE
:
false
\ No newline at end of file
.github/workflows/fastgpt-build-image-personal.yml
View file @
ff92dced
...
@@ -9,6 +9,11 @@ on:
...
@@ -9,6 +9,11 @@ on:
-
'
main'
-
'
main'
jobs
:
jobs
:
build-fastgpt-images
:
build-fastgpt-images
:
permissions
:
packages
:
write
contents
:
read
attestations
:
write
id-token
:
write
runs-on
:
ubuntu-20.04
runs-on
:
ubuntu-20.04
if
:
github.repository != 'labring/FastGPT'
if
:
github.repository != 'labring/FastGPT'
steps
:
steps
:
...
@@ -32,7 +37,7 @@ jobs:
...
@@ -32,7 +37,7 @@ jobs:
with
:
with
:
registry
:
ghcr.io
registry
:
ghcr.io
username
:
${{ github.repository_owner }}
username
:
${{ github.repository_owner }}
password
:
${{ secret
s.GH_PAT
}}
password
:
${{ secret
.GITHUB_TOKEN
}}
-
name
:
Set DOCKER_REPO_TAGGED based on branch or tag
-
name
:
Set DOCKER_REPO_TAGGED based on branch or tag
run
:
|
run
:
|
echo "DOCKER_REPO_TAGGED=ghcr.io/${{ github.repository_owner }}/fastgpt:latest" >> $GITHUB_ENV
echo "DOCKER_REPO_TAGGED=ghcr.io/${{ github.repository_owner }}/fastgpt:latest" >> $GITHUB_ENV
...
...
.github/workflows/fastgpt-build-image.yml
View file @
ff92dced
...
@@ -9,6 +9,11 @@ on:
...
@@ -9,6 +9,11 @@ on:
-
'
v*'
-
'
v*'
jobs
:
jobs
:
build-fastgpt-images
:
build-fastgpt-images
:
permissions
:
packages
:
write
contents
:
read
attestations
:
write
id-token
:
write
runs-on
:
ubuntu-20.04
runs-on
:
ubuntu-20.04
steps
:
steps
:
# install env
# install env
...
@@ -39,7 +44,7 @@ jobs:
...
@@ -39,7 +44,7 @@ jobs:
with
:
with
:
registry
:
ghcr.io
registry
:
ghcr.io
username
:
${{ github.repository_owner }}
username
:
${{ github.repository_owner }}
password
:
${{ secret
s.GH_PAT
}}
password
:
${{ secret
.GITHUB_TOKEN
}}
-
name
:
Login to Ali Hub
-
name
:
Login to Ali Hub
uses
:
docker/login-action@v2
uses
:
docker/login-action@v2
with
:
with
:
...
@@ -91,6 +96,11 @@ jobs:
...
@@ -91,6 +96,11 @@ jobs:
-t ${Docker_Hub_Latest} \
-t ${Docker_Hub_Latest} \
.
.
build-fastgpt-images-sub-route
:
build-fastgpt-images-sub-route
:
permissions
:
packages
:
write
contents
:
read
attestations
:
write
id-token
:
write
runs-on
:
ubuntu-20.04
runs-on
:
ubuntu-20.04
steps
:
steps
:
# install env
# install env
...
@@ -121,7 +131,7 @@ jobs:
...
@@ -121,7 +131,7 @@ jobs:
with
:
with
:
registry
:
ghcr.io
registry
:
ghcr.io
username
:
${{ github.repository_owner }}
username
:
${{ github.repository_owner }}
password
:
${{ secret
s.GH_PAT
}}
password
:
${{ secret
.GITHUB_TOKEN
}}
-
name
:
Login to Ali Hub
-
name
:
Login to Ali Hub
uses
:
docker/login-action@v2
uses
:
docker/login-action@v2
with
:
with
:
...
@@ -174,6 +184,11 @@ jobs:
...
@@ -174,6 +184,11 @@ jobs:
-t ${Docker_Hub_Latest} \
-t ${Docker_Hub_Latest} \
.
.
build-fastgpt-images-sub-route-gchat
:
build-fastgpt-images-sub-route-gchat
:
permissions
:
packages
:
write
contents
:
read
attestations
:
write
id-token
:
write
runs-on
:
ubuntu-20.04
runs-on
:
ubuntu-20.04
steps
:
steps
:
# install env
# install env
...
@@ -204,7 +219,7 @@ jobs:
...
@@ -204,7 +219,7 @@ jobs:
with
:
with
:
registry
:
ghcr.io
registry
:
ghcr.io
username
:
${{ github.repository_owner }}
username
:
${{ github.repository_owner }}
password
:
${{ secret
s.GH_PAT
}}
password
:
${{ secret
.GITHUB_TOKEN
}}
-
name
:
Login to Ali Hub
-
name
:
Login to Ali Hub
uses
:
docker/login-action@v2
uses
:
docker/login-action@v2
with
:
with
:
...
...
.github/workflows/fastgpt-preview-image.yml
View file @
ff92dced
name
:
Preview FastGPT images
name
:
Preview FastGPT images
on
:
on
:
pull_request
_target
:
pull_request
:
workflow_dispatch
:
workflow_dispatch
:
jobs
:
jobs
:
preview-fastgpt-images
:
preview-fastgpt-images
:
permissions
:
packages
:
write
contents
:
read
attestations
:
write
id-token
:
write
runs-on
:
ubuntu-20.04
runs-on
:
ubuntu-20.04
steps
:
steps
:
-
name
:
Checkout
-
name
:
Checkout
...
@@ -48,20 +53,13 @@ jobs:
...
@@ -48,20 +53,13 @@ jobs:
--cache-to=type=local,dest=/tmp/.buildx-cache \
--cache-to=type=local,dest=/tmp/.buildx-cache \
-t ${DOCKER_REPO_TAGGED} \
-t ${DOCKER_REPO_TAGGED} \
.
.
# Add write md step after build
-
uses
:
actions/github-script@v7
-
name
:
Write md
run
:
|
echo "# 🤖 Generated by deploy action" > report.md
echo "📦 Preview Image: \`${DOCKER_REPO_TAGGED}\`" >> report.md
cat report.md
-
name
:
Gh Rebot for Sealos
uses
:
labring/gh-rebot@v0.0.6
if
:
${{ (github.event_name == 'pull_request_target') }}
with
:
with
:
version
:
v0.0.6
github-token
:
${{secrets.GITHUB_TOKEN}}
env
:
script
:
|
GH_TOKEN
:
'
${{
secrets.GH_PAT
}}'
github.rest.issues.createComment({
SEALOS_TYPE
:
'
pr_comment'
issue_number: context.issue.number,
SEALOS_FILENAME
:
'
report.md'
owner: context.repo.owner,
SEALOS_REPLACE_TAG
:
'
DEFAULT_REPLACE_DEPLOY'
repo: context.repo.repo,
body: 'Preview Image: ${{ env.DOCKER_REPO_TAGGED }}'
})
.github/workflows/helm-release.yaml
View file @
ff92dced
...
@@ -8,6 +8,11 @@ on:
...
@@ -8,6 +8,11 @@ on:
jobs
:
jobs
:
helm
:
helm
:
permissions
:
packages
:
write
contents
:
read
attestations
:
write
id-token
:
write
runs-on
:
ubuntu-20.04
runs-on
:
ubuntu-20.04
steps
:
steps
:
-
name
:
Checkout
-
name
:
Checkout
...
@@ -20,7 +25,7 @@ jobs:
...
@@ -20,7 +25,7 @@ jobs:
run
:
echo "tag=$(git describe --tags)" >> $GITHUB_OUTPUT
run
:
echo "tag=$(git describe --tags)" >> $GITHUB_OUTPUT
-
name
:
Release Helm
-
name
:
Release Helm
run
:
|
run
:
|
echo ${{ secrets.G
H_PAT
}} | helm registry login ghcr.io -u ${{ github.repository_owner }} --password-stdin
echo ${{ secrets.G
ITHUB_TOKEN
}} | helm registry login ghcr.io -u ${{ github.repository_owner }} --password-stdin
export APP_VERSION=${{ steps.vars.outputs.tag }}
export APP_VERSION=${{ steps.vars.outputs.tag }}
export HELM_VERSION=${{ steps.vars.outputs.tag }}
export HELM_VERSION=${{ steps.vars.outputs.tag }}
export HELM_REPO=ghcr.io/${{ github.repository_owner }}
export HELM_REPO=ghcr.io/${{ github.repository_owner }}
...
...
.github/workflows/sandbox-build-image.yml
View file @
ff92dced
...
@@ -8,6 +8,11 @@ on:
...
@@ -8,6 +8,11 @@ on:
-
'
v*'
-
'
v*'
jobs
:
jobs
:
build-fastgpt-sandbox-images
:
build-fastgpt-sandbox-images
:
permissions
:
packages
:
write
contents
:
read
attestations
:
write
id-token
:
write
runs-on
:
ubuntu-20.04
runs-on
:
ubuntu-20.04
steps
:
steps
:
# install env
# install env
...
@@ -38,7 +43,7 @@ jobs:
...
@@ -38,7 +43,7 @@ jobs:
with
:
with
:
registry
:
ghcr.io
registry
:
ghcr.io
username
:
${{ github.repository_owner }}
username
:
${{ github.repository_owner }}
password
:
${{ secrets.G
H_PAT
}}
password
:
${{ secrets.G
ITHUB_TOKEN
}}
-
name
:
Login to Ali Hub
-
name
:
Login to Ali Hub
uses
:
docker/login-action@v2
uses
:
docker/login-action@v2
with
:
with
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment