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
7a074794
authored
Apr 03, 2025
by
Carson Yang
Committed by
GitHub
Apr 03, 2025
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Enhance GitHub Actions workflows security and permissions (#4445)
Signed-off-by: Carson Yang <yangchuansheng33@gmail.com>
parent
5ad383bc
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
4 deletions
+17
-4
.github/workflows/docs-deploy-kubeconfig.yml
+9
-2
.github/workflows/docs-deploy-vercel.yml
+8
-2
No files found.
.github/workflows/docs-deploy-kubeconfig.yml
View file @
7a074794
...
@@ -10,6 +10,13 @@ on:
...
@@ -10,6 +10,13 @@ on:
jobs
:
jobs
:
build-fastgpt-docs-images
:
build-fastgpt-docs-images
:
runs-on
:
ubuntu-latest
runs-on
:
ubuntu-latest
permissions
:
contents
:
read
packages
:
write
attestations
:
write
id-token
:
write
steps
:
steps
:
-
name
:
Checkout
-
name
:
Checkout
uses
:
actions/checkout@v4
uses
:
actions/checkout@v4
...
@@ -50,8 +57,8 @@ jobs:
...
@@ -50,8 +57,8 @@ jobs:
uses
:
docker/login-action@v3
uses
:
docker/login-action@v3
with
:
with
:
registry
:
ghcr.io
registry
:
ghcr.io
username
:
${{ github.
repository_owne
r }}
username
:
${{ github.
acto
r }}
password
:
${{ secrets.G
H_PAT
}}
password
:
${{ secrets.G
ITHUB_TOKEN
}}
-
name
:
Login to Aliyun
-
name
:
Login to Aliyun
uses
:
docker/login-action@v3
uses
:
docker/login-action@v3
...
...
.github/workflows/docs-deploy-vercel.yml
View file @
7a074794
...
@@ -20,6 +20,11 @@ jobs:
...
@@ -20,6 +20,11 @@ jobs:
# The type of runner that the job will run on
# The type of runner that the job will run on
runs-on
:
ubuntu-22.04
runs-on
:
ubuntu-22.04
permissions
:
contents
:
write
concurrency
:
group
:
${{ github.workflow }}-${{ github.ref }}
# Job outputs
# Job outputs
outputs
:
outputs
:
docs
:
${{ steps.filter.outputs.docs }}
docs
:
${{ steps.filter.outputs.docs }}
...
@@ -71,7 +76,8 @@ jobs:
...
@@ -71,7 +76,8 @@ jobs:
working-directory
:
docSite/public
working-directory
:
docSite/public
-
name
:
Deploy to GitHub Pages
-
name
:
Deploy to GitHub Pages
uses
:
peaceiris/actions-gh-pages@v3
uses
:
peaceiris/actions-gh-pages@v4
if
:
github.ref == 'refs/heads/main'
with
:
with
:
github_token
:
${{ secrets.G
H_PAT
}}
github_token
:
${{ secrets.G
ITHUB_TOKEN
}}
publish_dir
:
docSite/public
publish_dir
:
docSite/public
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