Skip to content

Commit 660056e

Browse files
Potential fix for code scanning alert no. 9: Workflow does not contain permissions
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
1 parent 032329f commit 660056e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.github/workflows/test.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,8 @@ jobs:
196196
# - Uploads HTML coverage report as an artifact (if coverage is enabled).
197197
phpunit:
198198
name: Test PHP ${{ matrix.php }} WP ${{ matrix.wp }}${{ matrix.coverage && ' with coverage' || '' }}
199+
permissions:
200+
contents: read
199201
runs-on: ubuntu-24.04
200202
strategy:
201203
fail-fast: false

0 commit comments

Comments
 (0)