Skip to content

Commit

Permalink
fix: 补全工作流 PR 权限
Browse files Browse the repository at this point in the history
  • Loading branch information
DuckDuckStudio committed Feb 11, 2025
1 parent fbc7184 commit 3dcb73a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/SitemapCreatorStable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ on:
# 相关文档: https://docs.github.com/zh/actions/writing-workflows/choosing-what-your-workflow-does/controlling-permissions-for-github_token
permissions:
contents: write
pull-requests: write

jobs:
generate_sitemap:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/branch-clean.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ on:
# 相关文档: https://docs.github.com/zh/actions/writing-workflows/choosing-what-your-workflow-does/controlling-permissions-for-github_token
permissions:
contents: write
pull-requests: read

jobs:
delete-branch:
Expand Down

0 comments on commit 3dcb73a

Please sign in to comment.