Potential fix for code scanning alert no. 2: Workflow does not contain permissions

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
This commit is contained in:
xixu-meandCopilot Autofix powered by AI authored and GitHub committed 2025-06-01 23:22:21 +08:00
1 parent 4b59c6cad5
commit 8e41740e0f
1 file changed
+4
+4
View File
@@ -10,6 +10,8 @@ on:
jobs:
test:
permissions:
contents: read
runs-on: ${{ matrix.os }}
strategy:
matrix:
@@ -50,6 +52,8 @@ jobs:
build:
needs: test
permissions:
contents: read
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4