Skip to content

Commit fdd7698

Browse files
Potential fix for code scanning alert no. 4: Workflow does not contain permissions (#18)
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
1 parent 59d2186 commit fdd7698

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.github/workflows/deploy-pages.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ jobs:
1313
# 构建和测试作业
1414
build-and-test:
1515
runs-on: ubuntu-latest
16+
permissions:
17+
contents: read
1618
env:
1719
NODE_VERSION: "20"
1820
defaults:

0 commit comments

Comments
 (0)